get https://api.staging.deliverect.com/locations/channels//holidays
The Get Holiday Hours endpoint allows partners to retrieve information about the holiday hours for a specific location and channels.
It is possible to GET Holidays for specific channel links by calling the following endpoint:
"id": "<locationId1>",
"holidays": [{"startTime": "2021-12-19T15:53:00Z", "endTime": "2021-12-19T16:10:00Z"}],
"channels": [
{
"id": "<channelId1>",
"holidays": [
{"startTime": "2021-12-19T15:53:00Z", "endTime": "2021-12-19T16:10:00Z"},
{"startTime": "2022-05-18T04:00:00Z", "endTime": "2022-05-18T05:00:00Z"},
{"startTime": "2022-05-17T17:37:00Z", "endTime": "2022-05-17T17:39:00Z"},
{"startTime": "2023-08-04T09:00:00Z", "endTime": "2023-08-04T19:00:00Z"},
]
}
]
}
Key | Description | Type |
---|---|---|
id | locationId | string |
channels | An array of channel link objects within the location with specific holiday hours set | array |
channels.id | channelLinkId | string |
channels.holidays | Array containing an object list | array of objects |
channels.holidays.startTime | The start time of the holiday period in ISO 8601 date-time format (e.g., "2023-12-19T15:53:00Z") | timestamp |
channels.holidays.endTime | The endTime of the holiday period in ISO 8601 date-time format (e.g., "2023-12-19T16:10"00Z") | timestamp |