Products
List all products of an administration
Returns a paginated list of products in the administration. Each page contains 10 products. You can use the page
parameter to fetch the next page of products.
Parameters
Parameter | Type | Description |
---|---|---|
query |
String |
Allows filtering by product name. |
page |
Integer |
The page to fetch, starting at 1. |
currency |
String |
ISO three-character currency code, e.g. EUR or USD. |
Example: returns a list of active products
Request
Response
Example: allows filtering by query
Request
Response
Example: handles empty search result
Request
Response
Example: returns a paginated response for page 2
Request
Response
Returns information about a product
Example: returns a single product
Request
Response
Example: returns 404 when product does not exist
Request
Response
Returns information about a product based on the identifier
Example: returns a single product based on the identifier
Request
Response
Example: returns a single product based on the identifier with dot
Request
Response
Example: returns 404 when product does not exist
Request
Response
Creates a new product
Parameters
Parameter | Type | Description |
---|---|---|
product[title] |
String |
|
product[description] |
String |
|
product[checkout_description] |
String |
|
product[price] |
Decimal |
Required Both a decimal and a string ‘10,95’ are accepted. |
product[document_style_id] |
Integer |
Should be a valid document style id. |
product[ledger_account_id] |
Integer |
Required Should be a valid ledger account id. |
product[tax_rate_id] |
Integer |
Should be a valid tax rate id. |
product[workflow_id] |
Integer |
Should be a valid workflow id. |
product[currency] |
String |
Required ISO three-character currency code, e.g. EUR or USD. |
product[checkout_type] |
String |
Can be |
product[frequency_type] |
String |
Can be |
product[frequency] |
Integer |
Should be an integer >= 1. |
product[product_type] |
String |
Can be |
product[vat_rate_type] |
String |
Can be |
product[max_amount_per_order] |
Integer |
Should be an integer 0 <= n < 2. |
product[identifier] |
String |
Should be unique for the administration. |
product[image_hash] |
String |
|
product[frequency_preset] |
String |
Example: creates a new product
Request
Response
Example: returns an error when information is missing
Request
Response
Updates a product
Parameters
Parameter | Type | Description |
---|---|---|
product[title] |
String |
|
product[description] |
String |
|
product[checkout_description] |
String |
|
product[price] |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. |
product[tax_rate_id] |
Integer |
Should be a valid tax rate id. |
product[ledger_account_id] |
Integer |
Should be a valid ledger account id. |
product[currency] |
String |
ISO three-character currency code, e.g. EUR or USD. |
product[frequency_type] |
String |
Can be |
product[frequency] |
Integer |
Should be an integer >= 1. |
product[product_type] |
String |
Can be |
product[vat_rate_type] |
String |
Can be |
product[checkout_type] |
String |
Can be |
product[max_amount_per_order] |
Integer |
Should be an integer 0 <= n < 2. |
product[document_style_id] |
Integer |
Should be a valid document style id. |
product[workflow_id] |
Integer |
Should be a valid workflow id. |
product[identifier] |
String |
Should be unique for the administration. |
product[image_hash] |
String |
|
product[frequency_preset] |
String |
|
validation_context |
Symbol |
Can be |