OfferItem.simple

Specificies where a discount should get appllied. A shop can give a complete category a discount, or only a certain product, or only a fixed product price. When calculating the discount, always round the price to 1 cent before multiplying it with an amount, persons or kilograms.

Field Type Description
type String String enumarion of 'product', 'product_price'
item_id Int ID of the category, product or product price where the discount should get applied (depends on the type).
percentage Int Discount per ten thousand. E.g. 1‱ equals 0.01% discount, 100‱ equals 1% discount. Could be zero when there is no discount, but the products should get added to the offer for display.
minimum Int? Nullable. Minimum amount / weight or persons needed to order

Examples

Example 1

{
    "type": "product",
    "item_id": 17,
    "percentage": 14,
    "minimum": 13
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.0.0 stable