API Reference
Dining Tables
/api/v1/console/pos/dining-tables JWT API KeyThe branch's dining tables
The QR token is present on a row only for a caller holding `manage_tables`; `hasQrToken` is unconditional, so a screen can show that a table is QR-enabled without the credential itself reaching a principal that could not mint one.
- Capability
view_floor- API key scope
cap:view_floor(the key's owner must also hold the capability)
Query parameters
| AreaId string (uuid) | — |
| Active boolean | Null lists both. See Panoptes.Application.DTOs.Requests.Pos.ListDiningAreasRequest.Active. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/pos/dining-tables JWT API KeyCreate a table
Writes one `CREATE_DINING_TABLE` audit row.
The code is unique per branch among live rows: the index carries `WHERE deleted_at IS NULL`, so retiring table A3 frees the code A3 for the table that replaces it rather than reserving it forever.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Request body
{
"code": "string",
"name": "string",
"areaId": "00000000-0000-0000-0000-000000000000",
"seats": 0,
"sortOrder": 0
}| code string | — |
| name string | An optional friendlier label — "Window 3". The floor board and the KDS chit prefer it and fall back to Panoptes.Application.DTOs.Requests.Pos.CreateDiningTableRequest.Code (FR-KDS-036). |
| areaId string (uuid) | The grouping area. Null is legal and lands the table in the floor board's "unassigned" catch-all (SRS §5.4.7). |
| seats integer (int32) | Covers. Optional; when given it must be positive. |
| sortOrder integer (int32) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"areaId": "00000000-0000-0000-0000-000000000000",
"seats": 0,
"sortOrder": 0
}'Request body (JSON)
Headers
/api/v1/console/pos/dining-tables/{id} JWT API KeyEdit a table's code, name, area, covers and sort order
Deliberately not the place to take a table out of service: that act has its own guard — it is refused while the table carries a live order — and folding it into a general edit is how a rename silently strands a seated party.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"code": "string",
"name": "string",
"areaId": "00000000-0000-0000-0000-000000000000",
"seats": 0,
"sortOrder": 0
}| code string | — |
| name string | — |
| areaId string (uuid) | — |
| seats integer (int32) | — |
| sortOrder integer (int32) | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"code": "string",
"name": "string",
"areaId": "00000000-0000-0000-0000-000000000000",
"seats": 0,
"sortOrder": 0
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/pos/dining-tables/{id} JWT API KeyRetire a table
A tombstone with a required reason, never a hard delete.
Refused while the table holds a live order. Unlike a retired KDS station — whose orphaned chits fall to the unrouted lane — a retired table takes its order off the floor entirely, leaving a party invisible with the bill still open.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/pos/dining-tables/{id}/active JWT API KeyTake a table out of service, or put it back
A reason is required when disabling and is cleared on re-enable — a stale "leg broken" against a table that is back in service is worse than no reason at all. Disabling a table that currently holds a live order is a `CONFLICT`: ranks `disabled` above `occupied`, so it would hide the party rather than close the table.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Required when Panoptes.Application.DTOs.Requests.Pos.SetDiningTableActiveRequest.Active is false; ignored and cleared when it is true. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables/{id}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false,
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/pos/dining-tables/{id}/qr-token JWT API KeyMint — or rotate — the table's QR self-order token., item 11
This closes a named gap in the reference. The column, its global unique index, the public `/order/{qrToken}` route, the guest rate limit and the whole self-order flow all shipped and were tested — and nothing could generate a token. It had to be inserted by hand in the database, which also meant a sticker that walked out of the building could never be rotated.
A table carries at most one token, so minting is rotation: issuing a new one invalidates every sticker printed from the old one. The token is returned once in this response and on the manage-gated read, and is never written to the audit log.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables/{id}/qr-token" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/pos/dining-tables/{id}/qr-token JWT API KeyRevoke the table's QR token, closing the guest route for it
Idempotent: revoking a table that has no token succeeds. A revoke is what an operator reaches for when a sticker is compromised, and answering "there was nothing to revoke" as a failure would invite a second attempt at exactly the wrong moment.
- Capability
manage_tables- API key scope
cap:manage_tables(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/pos/dining-tables/{id}/qr-token" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers