Location Opening Hours Run in API Explorer
Ask AI
This endpoint allows you to retrieve opening hours for a specific location. The response includes location opening hours and, if applicable, channel link opening hours. Please note that if channel link doesn't have its own opening hours defined, it inherits location opening hours.
GET
/location/{locationId}/openingHours
curl \
--request GET 'https://api.staging.deliverect.com/location/{locationId}/openingHours' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"_id": "633d62de0f1565acdf**3bdf",
"status": "ACTIVE",
"locationName": "Location 1",
"tags": [],
"openingHours": [
{
"dayOfWeek": 1,
"startTime": "00:00",
"endTime": "23:59"
},
{
"dayOfWeek": 2,
"startTime": "00:00",
"endTime": "23:59"
},
{
"dayOfWeek": 3,
"startTime": "00:00",
"endTime": "23:59"
}
],
"channels": [
{
"_id": "633d6******565acdf893bf1",
"status": 2,
"channelName": "Channel 1",
"channel": 1,
"tags": [],
"openingHours": []
},
{
"_id": "6476183fe******c858de0b0",
"status": 2,
"channelName": "Channel 2",
"channel": 10057,
"tags": [],
"openingHours": []
},
{
"_id": "669519a1fe******040bdaf2",
"status": 2,
"channelName": "Channel 3",
"channel": 10000,
"tags": [],
"openingHours": []
}
]
}
Response examples (400)
{}