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": 17,
    "name": "Black Friday",
    "from_date": "2019-01-31",
    "until_date": "2019-01-31",
    "valid_for": "order",
    "recurring": 19,
    "recurring_on": {
        "day_1": 11,
        "day_2": 11,
        "day_3": 12,
        "day_4": 14,
        "day_5": 17,
        "day_6": 11,
        "day_7": 11
    },
    "items": [
        {
            "type": "percentage",
            "x": 11,
            "y": 11,
            "percentage": 12,
            "minimum": 13,
            "applies_to": "category",
            "item_id": 16
        },
        {
            "type": "percentage",
            "x": 13,
            "y": 11,
            "percentage": 14,
            "minimum": 10,
            "applies_to": "category",
            "item_id": 16
        },
        {
            "type": "percentage",
            "x": 11,
            "y": 17,
            "percentage": 12,
            "minimum": 14,
            "applies_to": "category",
            "item_id": 13
        }
    ]
}
This is a development version Do not use this version in production
1.10.0 development