Offer.detailed

A special discount for one or multiple products of the shop

Field Type Description
id Int An integer value
name String A String value
from_date Date Date in YYYY-MM-DD
until_date Date Date in YYYY-MM-DD
valid_for String String enumarion of 'order', 'acquire'
recurring Int An integer value
recurring_on Dictionary A dictionary with fields
items [OfferItem.simple] Array of OfferItem.simple

Examples

Example 1

{
    "id": 16,
    "name": "Black Friday",
    "from_date": "2019-01-31",
    "until_date": "2019-01-31",
    "valid_for": "order",
    "recurring": 12,
    "recurring_on": {
        "day_1": 13,
        "day_2": 10,
        "day_3": 15,
        "day_4": 17,
        "day_5": 14,
        "day_6": 19,
        "day_7": 10
    },
    "items": [
        {
            "type": "percentage",
            "x": 14,
            "y": 13,
            "percentage": 13,
            "minimum": 12,
            "applies_to": "category",
            "item_id": 18
        },
        {
            "type": "percentage",
            "x": 15,
            "y": 18,
            "percentage": 15,
            "minimum": 17,
            "applies_to": "category",
            "item_id": 19
        },
        {
            "type": "percentage",
            "x": 17,
            "y": 12,
            "percentage": 16,
            "minimum": 18,
            "applies_to": "category",
            "item_id": 17
        }
    ]
}
1.9.0 stable