This endpoint returns all the tables of a given location. It is possible to apply filters to the tables being fetched.
The following locationId=tc-cool-3000&openSales=true
will return all tables with open sales for location tc-cool-3000
.
The list of tables
When you don't have the right permissions to fetch the tables for the provided location
When the provided locationId
does not exist in our system
curl -i -X GET \ 'https://api.tyro.com/connect/tables?locationId=string&openSales=true' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "results": [
- {
- "id": "2688fcf2-44dd-4c72-88ac-79d0910f2983",
- "locationId": "tc-iscool-3000",
- "section": {
- "id": "section-id",
- "name": "awesome section1"
}, - "openSales": [
- "3288fcf2-44dd-4c72-88ac-79d0910f1234",
- "8788fcf2-44dd-8c72-88ac-79d0910f1678"
]
}, - {
- "id": "432423f3-54dd-6c72-88ac-79d0910f2984",
- "locationId": "tc-iscool-3000",
- "openSales": [
- "6969fcf2-44dd-4c72-88ac-79d0910f6969"
]
}
]
}