Offer
Retrieve availability for the given offer
Retrieve the availability for a restaurant's offer over a given date range. Every date in the range is returned; one without availability comes back closed with no timeslots. Dates in the past are omitted.
get/api/v1/restaurants/{restaurant_id}/offers/{offer_id}/availability
Request
- Base URL: https://gotable.app
- URL: https://gotable.app/api/v1/restaurants/{restaurant_id}/offers/{offer_id}/availability
- Auth: HTTP bearer
Path parameters
restaurant_idinteger required
offer_idinteger required
Query parameters
fromstring
Start date for availability (format: YYYY-MM-DD)
tillstring
End date for availability (format: YYYY-MM-DD). Capped at three months after from.
Response
With a valid API token
Example response
{
"from": "2026-09-15",
"till": "2026-09-16",
"dates": [
{
"date": "2026-09-15",
"closed": false,
"timeslots": [
{
"time": "18:00",
"minimum": 0,
"maximum": 20
},
{
"time": "20:00",
"minimum": 0,
"maximum": 20
}
]
},
{
"date": "2026-09-16",
"closed": true,
"timeslots": []
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.