OfferItem

Request

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.

Response

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.

Examples

Request

When used inside a request.

Example 1

{
    "applies_to": "category",
    "item_id": 10,
    "type": "percentage",
    "percentage": 18,
    "minimum_amount": 19,
    "free_amount": 16
}

Response

When returned in a response.

Example 1

{
    "applies_to": "category",
    "item_id": 16,
    "type": "percentage",
    "id": 17,
    "percentage": 19,
    "minimum_amount": 16,
    "free_amount": 17
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable