Fields when send to the api inside a request.
Field | Type | Description |
---|---|---|
applies_to | String | String enumarion of 'category', 'product', 'product-price' |
item_id | Int | ID of the category, product or product price where the offer applies to. |
type | String | String enumarion of 'percentage', 'volume' |
percentage | Int? | Optional. Nullable. Only required when "type" is percentage. e.g. 10,53% = 1053 |
minimum_amount | Int? | Optional. Nullable. Minimum amount required for the offer to apply. |
free_amount | Int? | Optional. Nullable. Only required when "type" is volume. |
Fields when returned by the api in a response.
Field | Type | Description |
---|---|---|
applies_to | String | String enumarion of 'category', 'product', 'product-price' |
item_id | Int | ID of the category, product or product price where the offer applies to. |
type | String | String enumarion of 'percentage', 'volume' |
id | Int | An integer value |
percentage | Int? | Optional. Nullable. Only required when "type" is percentage. e.g. 10,53% = 1053 |
minimum_amount | Int? | Optional. Nullable. Minimum amount required for the offer to apply. |
free_amount | Int? | Optional. Nullable. Only required when "type" is volume. |
When used inside a request.
{
"applies_to": "category",
"item_id": 10,
"type": "percentage",
"percentage": 18,
"minimum_amount": 19,
"free_amount": 16
}
When returned in a response.
{
"applies_to": "category",
"item_id": 16,
"type": "percentage",
"id": 17,
"percentage": 19,
"minimum_amount": 16,
"free_amount": 17
}