Skip to main content
GET
/
Bookings
/
tables
GET /Bookings/tables
curl --request GET \
  --url https://{base_url}/Bookings/tables \
  --header 'X-API-KEY: <x-api-key>'
Retrieve available tables for a given date and duration.
X-API-KEY
string
required
Your API key
Date
string
Date to check availability. Formats: yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss.fffZ
Duration
integer
Availability duration in minutes. Default: 90
curl --location '[BASE_URL]/Bookings/tables?Date=2024-03-20&Duration=90' \
--header 'X-API-KEY: your_api_key_here'
Response is an array of section objects, each containing a list of tables. Section object
FieldTypeDescription
sectionNamestringSection name
sectionIdstringSection ID
layoutIdstringLayout ID
layoutNamestringLayout name
tablesarrayAvailable tables in this section
Table object
FieldTypeDescription
_idstringTable ID — use when creating or updating bookings
namestringTable name
capacityintegerMaximum guests
minCapacityintegerMinimum guests
sharedbooleanCan be shared between bookings
onlinebooleanAvailable for online bookings
walkinOnlybooleanWalk-in only table
sectionIdstringParent section ID
sectionNamestringParent section name
Example 200 Response
[
  {
    "sectionName": "Main",
    "sectionId": "sec-1",
    "layoutId": "lay-1",
    "layoutName": "Main Layout",
    "tables": [
      {
        "_id": "tbl-5",
        "name": "Table 5",
        "capacity": 6,
        "minCapacity": 2,
        "shared": false,
        "online": true,
        "walkinOnly": false,
        "sectionId": "sec-1",
        "sectionName": "Main"
      }
    ]
  }
]
StatusDescription
200Tables returned
400loggedInAppId
400No Venue Subscribed to your App.
400Invalid Date passed.
401X-API-KEY missing or invalid
429Rate limit exceeded