The API allows the APP and POS to send and receive information about tables. Currently the API supports creating, updating and retrieving tables.
Table API (1.0)
Request
This endpoint is used to create a table within Tyro Connect.
The id that is returned as a part of the response should be used to identify the table for subsequent events or retrieving the details.
This value must be unique and represents the table number or table id. This field accepts alphanumeric characters e.g MAIN-33.
- Productionhttps://api.tyro.com/connect/tables
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.tyro.com/connect/tables \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"number": "table-1",
"locationId": "tc-cool-3000",
"section": {
"id": "section-id",
"name": "awesome section"
}
}'{ "id": "2688fcf2-44dd-4c72-88ac-79d0910f2983", "number": "table-1", "locationId": "tc-cool-3000", "section": { "id": "section-id", "name": "awesome section" }, "openSales": [] }
- Productionhttps://api.tyro.com/connect/tables
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.tyro.com/connect/tables?locationId=2688fcf2-44dd-4c72-88ac-79d0910f2983&openSales=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The list of tables
The results for the location that satisfy the filtering criteria
The id of the table in the Tyro Connect system
This value must be unique and represents the table number or table id. This field accepts alphanumeric characters e.g MAIN-33
- openSales=true&locationId=tc-cool-300
- openSales=false&locationId=tc-cool-300
- locationId=tc-cool-300
{ "results": [ { … }, { … } ] }
- Productionhttps://api.tyro.com/connect/tables/{tableId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.tyro.com/connect/tables/2688fcf2-44dd-4c72-88ac-79d0910f2983 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "2688fcf2-44dd-4c72-88ac-79d0910f2983", "number": "table-1", "locationId": "tc-iscool-3000", "section": { "id": "section-id", "name": "awesome section" }, "openSales": [] }
Request
This endpoint is for updating a table. Please note table update will not be allowed if the table has open sales.
This value must be unique and represents the table number or table id. This field accepts alphanumeric characters e.g MAIN-33
- Productionhttps://api.tyro.com/connect/tables/{tableId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- Update table number
- Update table section
curl -i -X PATCH \
https://api.tyro.com/connect/tables/2688fcf2-44dd-4c72-88ac-79d0910f2983 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"number": "new-table-id"
}'Request
This endpoint is for deleting a table. Please note table delete will not be allowed if the table has open sales.
- Productionhttps://api.tyro.com/connect/tables/{tableId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://api.tyro.com/connect/tables/2688fcf2-44dd-4c72-88ac-79d0910f2983 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'