Blackout period specifications
Blackout periods allow retailers to temporarily disable product availability for a specific interval of time.
note
When a customer attempts to reserve a time slot containing products that are within a blackout period, they are prompted to either remove the item or continue shopping at a later time.
Request
Field | Data type | Example |
---|---|---|
blackout_times | JSON | See Example. |
JSON data
Field Definitions | Required | Type | Description | Example |
---|---|---|---|---|
weekday | Yes | string | The day the blackout is in effect. Possible values: monday tuesday wednesday thursday friday saturday sunday | monday |
start_hour | Yes | timestamp | The blackout start time. Timestamps are inclusive.1 | 19:00:00:00+0000 |
end_hour | Yes | timestamp | The blackout end time. Timestamps are inclusive.1 | 24:00:00:00+0000+0000 |
start_date | Yes | date (no timestamp) | The date the blackout period begins, in the format MM/DD/YYYY . | 02/01/2019 |
end_date | No | date (no timestamp) | The date the blackout rule ends, in the format MM/DD/YYYY . | 02/28/2019 |
message | Yes | string | The message displayed when a customer attempts to purchase the item during the blackout period. | Our fresh Rotisserie Chickens are available starting at 10 am. |
Footnotes
Example
In this example, a deli item is unavailable for purchase between 6 AM to 10 AM, and 9 PM to midnight.
[
{
"weekday": "monday",
"start_hour": "6:00:00:00+0000",
"end_hour": "10:00:00:00+0000",
"start_date": "02/01/2019",
"end_date": "05/31/2019",
"message": "Our deli is closed during these hours. This item is not available for delivery at this time."
},
{
"weekday": "monday",
"start_hour": "21:00:00:00+0000",
"end_hour": "24:00:00:00+0000",
"start_date": "02/01/2019",
"end_date": "05/31/2019",
"message": "Our deli is closed during these hours. This item is not available for delivery at this time."
},
{
"weekday": "tuesday",
"start_hour": "6:00:00:00+0000",
"end_hour": "10:00:00:00+0000",
"start_date": "02/01/2019",
"end_date": "05/31/2019",
"message": "Our deli is closed during these hours. This item is not available for delivery at this time."
},
{
"weekday": "tuesday",
"start_hour": "21:00:00:00+0000",
"end_hour": "24:00:00:00+0000",
"start_date": "02/01/2019",
"end_date": "05/31/2019",
"message": "Our deli is closed during these hours. This item is not available for delivery at this time."
}
]