ProductPrice.detailed

Field Type Description
id Int Id of the product price
name String Name of the product price (translated)
price Price Price of this product price (cents). Please also check if the shop where you want to order has an offer with a discount for this product price available.
offer OfferItem.detailed? Nullable. 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.

Examples

Example 1

{
    "id": 18,
    "name": "...",
    "price": {
        "value": 15,
        "currency": "EUR"
    },
    "offer": {
        "type": "percentage",
        "x": 10,
        "y": 14,
        "percentage": 18,
        "minimum": 17,
        "offer": {
            "id": 14,
            "name": "Black Friday",
            "from_date": "2019-01-31",
            "until_date": "2019-01-31",
            "valid_for": "order",
            "recurring": 11,
            "recurring_on": {
                "day_1": 13,
                "day_2": 18,
                "day_3": 11,
                "day_4": 11,
                "day_5": 15,
                "day_6": 14,
                "day_7": 18
            }
        },
        "applies_to": "category",
        "item_id": 19
    }
}
1.9.0 stable