Tills and cashiers
What a till, a cashier profile and the current order are, and what the till reports about its network, its queue and its card reader.
On this page
Orders are rung up at a till. A till belongs to a company, serves one cashier at a time and holds one current order, one card reader and a queue of sales it stored while the network was lost.
Company, till and cashier
| Term | Meaning |
|---|---|
| Company | The legal company whose sales these are. In the examples it is Brumar Retail SRL. Its id is legalCompanyId in every event. |
| Till | A counter where orders are rung up: Till 1 (till-1) in the examples. Its business days follow one another. See Business day. |
| Cashier | The person signed in at the till. cashier on the till and on every order carries the name: Cristina Lungu in the examples. |
Cashier profile and discount limit
The profile of the cashier sets the largest discount a line can take: 10% in the examples. A discount is a whole percentage of a line, from 0 up to the limit, and Change a line sets it. A discount above the limit is refused with discount_limit, and one that is not a whole percentage from 0 to 100 with invalid_discount.
The current order
currentOrderIdis the order being rung up. It is empty until the first line is added.- When the order is paid, put on hold or voided, the till opens a new empty order with the next number.
- A held order comes back with
resumeOrder, and only while the current order is empty: otherwise the answer issale_in_progress. - While no business day is open,
currentOrderIdandbusinessDayIdarenulland a change is refused withday_closed.
What getTill reports
| Field | Meaning |
|---|---|
network | online, or offline while the till has no network. |
queue.count | Sales stored on the till and not posted yet. |
queue.oldestAt | When the oldest stored sale finished, or null. |
queue.ageSeconds | Age of the oldest stored sale, in seconds. |
reader.state | The state of the card reader. See Order and payment states. |
reader.orderId | The order the reader is working for, or null. |
reader.amount | The amount the reader was started with. |
reader.attempt | Cards presented for this order so far, declined ones included. |
While network is offline, a cash sale finishes and waits in the queue. A card payment, a refund and the close of the day are refused with network_lost. When the network is back, the till posts the queue one sale at a time, oldest first, and a sale finished meanwhile joins the queue. See Work without network.
{
"id": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
"code": "till-1",
"name": "Till 1",
"cashier": "Cristina Lungu",
"businessDayId": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"currentOrderId": "7bcf7203-923f-428a-acbc-c6faf8821433",
"network": "offline",
"queue": {
"count": 1,
"oldestAt": "2026-11-23T07:14:04Z",
"ageSeconds": 596
},
"reader": {
"state": "idle",
"orderId": null,
"amount": "0.00",
"attempt": 0
}
} The card reader serves one payment at a time. See Card readers.