Skip to main content

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

FieldData typeExample
blackout_timesJSONSee Example.

JSON data

Field DefinitionsRequiredTypeDescriptionExample
weekdayYesstringThe day the blackout is in effect. Possible values:
monday
tuesday
wednesday
thursday
friday
saturday
sunday
monday
start_hourYestimestampThe blackout start time. Timestamps are inclusive.119:00:00:00+0000
end_hourYestimestampThe blackout end time. Timestamps are inclusive.124:00:00:00+0000+0000
start_dateYesdate (no timestamp)The date the blackout period begins, in the format MM/DD/YYYY.02/01/2019
end_dateNodate (no timestamp)The date the blackout rule ends, in the format MM/DD/YYYY.02/28/2019

Footnotes

  1. Time zone must be in local time (not UTC). The period must be within store hours. For example, if a store's operating hours are 7AM - 5PM, the blackout period could be 7AM - 10AM, but not 12AM - 10AM. 2

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."
}
]