API Reference
Receipts
/api/v1/console/pos/orders/{id}/kitchen-chits JWT API KeyOne chit per station, in station-list order, with a trailing station-less catch-all
No prices on any of them. A station with no lines gets no chit, and a branch with no stations configured still gets exactly one — so no line is ever dropped.
- Capability
create_sale- API key scope
cap:create_sale(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/orders/{id}/kitchen-chits" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/pos/orders/{id}/receipt JWT API KeyThe print-friendly customer receipt.,
Returns the document as data, not as markup: branch header, code, Baghdad-rendered timestamp, channel, optional table, itemised lines, discount and tax rows only when non-zero, the grand total, the per-tender breakdown off the payment spine, cash change, and a bilingual footer. The dashboard owns the RTL layout and the `@media print` chrome; the server owns the numbers and the fixed Arabic/English strings, so the browser receipt and the thermal one cannot drift.
- Capability
create_sale- API key scope
cap:create_sale(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/orders/{id}/receipt" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/pos/orders/{id}/receipt/document JWT API KeyGet document
The same document as `receipt/escpos`, for the same selector, as a layout model for the print bridge's raster path.,,.
`?station_id=…`, `?kitchen=true` and `?drawer=true` mean exactly what they mean on the byte stream, with the same refusals. The dashboard hands the document, signed, to a bridge that advertises the `document` capability; the bridge shapes the Arabic with the Windows text engine and prints it as `GS v 0` raster. The byte stream stays for bridges and printers that predate it.
- Capability
create_sale- API key scope
cap:create_sale(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Query parameters
| StationId string (uuid) | Print one station's chit instead of the receipt. <br>An unknown or foreign station id is `NOT_FOUND`, not an empty document: a print job is a physical act, and handing a printer zero bytes for a station that does not exist in this branch would look to the line like a chit that simply never arrived. |
| Kitchen boolean | Print the station-less catch-all chit — every line this branch's routing sends nowhere (FR-POS-053). Ignored when Panoptes.Application.DTOs.Requests.Pos.EscPosReceiptRequest.StationId names a station. |
| Drawer boolean | Append the cash-drawer kick (`ESC p 0 25 250`) after the customer receipt's cut — the drawer opens as the receipt finishes printing. Honoured only on the receipt itself and only when the sale took a cash tender: the server, not the till, decides whether there is cash to put away, so a card or on-account sale never pops the drawer. Ignored on a chit. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/orders/{id}/receipt/document" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/pos/orders/{id}/receipt/escpos JWT API KeyThe raw ESC/POS byte stream for a thermal printer
`?station_id=…` selects one station's chit, `?kitchen=true` the station-less catch-all, neither the customer receipt. Streamed as `application/octet-stream` through the shared `FilePayload` shape, so a refusal still comes back as the coded envelope rather than as a zero-byte download a client would happily send to a printer.
The application never opens a socket to a printer. These bytes are handed to the caller; the transport is the browser, a WebSerial port, or a paired local bridge — all of them outside this process.
- Capability
create_sale- API key scope
cap:create_sale(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Query parameters
| StationId string (uuid) | Print one station's chit instead of the receipt. <br>An unknown or foreign station id is `NOT_FOUND`, not an empty document: a print job is a physical act, and handing a printer zero bytes for a station that does not exist in this branch would look to the line like a chit that simply never arrived. |
| Kitchen boolean | Print the station-less catch-all chit — every line this branch's routing sends nowhere (FR-POS-053). Ignored when Panoptes.Application.DTOs.Requests.Pos.EscPosReceiptRequest.StationId names a station. |
| Drawer boolean | Append the cash-drawer kick (`ESC p 0 25 250`) after the customer receipt's cut — the drawer opens as the receipt finishes printing. Honoured only on the receipt itself and only when the sale took a cash tender: the server, not the till, decides whether there is cash to put away, so a card or on-account sale never pops the drawer. Ignored on a chit. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/pos/orders/{id}/receipt/escpos" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers