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": 19,
"type": "percentage",
"percentage": 11,
"minimum_amount": 11,
"free_amount": 15
}
When returned in a response.
{
"applies_to": "category",
"item_id": 16,
"type": "percentage",
"id": 15,
"percentage": 14,
"minimum_amount": 14,
"free_amount": 17
}