Business day
A till sells within a business day: open it with a float, record cash in and out, and close it against the cash counted in the drawer.
On this page
A till has one business day at a time. The sales of the day and the cash in its drawer belong to it. While no day is open, a change to an order is refused with day_closed.
Open the day
Open a business day takes the float: the cash you put in the drawer, zero or more (invalid_float). A till with an open day refuses it with day_open. number counts the days of the till, and the new day starts at revision 1.
Cash in and out
Record cash in or out puts cash into the drawer or takes it out. A movement has a kind (in or out), an amount above zero and a reason: float_top_up, bank_deposit, supplier_payment or other (invalid_movement). Cash cannot go out beyond what the drawer should hold (insufficient_cash). Each movement adds one to the revision of the day, which is the expectedRevision of the next one.
Expected cash
cash.expected is the cash the drawer should hold: float plus sales minus refunds plus cashIn minus cashOut. On 2026-11-23, while Bon 1042 is still open, it is 500.00 + 79.90 - 0.00 + 0.00 - 100.00 = 479.90.
| Field | Meaning | Amount |
|---|---|---|
float | The cash put in the drawer when the day opened. | 500.00 |
sales | The cash taken for sales: what stayed after the change. | 79.90 |
refunds | The cash paid out in refunds. | 0.00 |
cashIn | The cash put into the drawer during the day. | 0.00 |
cashOut | The cash taken out of the drawer during the day: here a bank deposit. | 100.00 |
expected | What the drawer should hold. | 479.90 |
- Only cash counts. A card payment and a declined payment add nothing. A customer who hands over 20.00 for 16.80 adds 16.80, not 20.00.
- A cash refund counts on the day it is paid out, also when the sale was made on an earlier day.
Record a bank deposit of 100.00 (out, bank_deposit) and cashOut becomes 200.00, expected becomes 379.90 and revision becomes 3.
Close the day
Close a business day takes counted, the cash counted in the drawer, zero or more (invalid_count). The difference is counted minus expected, a signed amount: negative when cash is missing. If the cashier counts 374.90 against 379.90, the difference is -5.00. The day is then closed and closing holds what was recorded.
{
"id": "aaed5ba1-2a19-4c94-ac7f-119c9288a12c",
"tillId": "e57a3b65-d690-4e6c-8a6b-8f946c4e6610",
"number": 1,
"date": "2026-11-23",
"openedAt": "2026-11-23T06:00:00Z",
"state": "closed",
"float": "500.00",
"cash": {
"float": "500.00",
"sales": "79.90",
"refunds": "0.00",
"cashIn": "0.00",
"cashOut": "200.00",
"expected": "379.90"
},
"closing": {
"at": "2026-11-23T07:14:04Z",
"expected": "379.90",
"counted": "374.90",
"difference": "-5.00"
},
"revision": 4
} A day closes only when all of this holds:
- The current order has no lines (
open_order). - No order is on hold (
held_orders). - The card reader is free (
reader_busy). - The queue of the till is empty (
queue_not_empty). - The till is online (
network_lost). expectedRevisionis the current revision of the day (revision_conflict).
A new day
After the close, businessDayId and currentOrderId of the till are null and nothing can be sold. Open the next day with its own float. The cash of the closed day does not carry over: the new day starts from the float you put in. See Close the day.