TillSession
object type
A TillSession — the cash-drawer session at a Register: opened by a User with a counted starting float, tracking float / expected / counted / over-short through the immutable CashEntry ledger. ONE live session per register. Expected cash = the drawerTotals cache, stamped in the same transaction as every entry post. The shift IS this doc; X/Z report artifacts are the reports family.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like TS-… — stable for the record’s life. |
type | String String! | The kind of record — always TillSession here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of open, suspended, counting, closed or abandoned. |
parentId | ID ID! | The parent Register; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
openedBy | ID ID! | The opening User, server-stamped from the principal. |
float | DrawerAmount [DrawerAmount!]! | The declared opening float, verbatim. |
drawerTotals | DrawerAmount [DrawerAmount!]! | The per-currency running drawer totals. Expected cash = this list. |
counted | DrawerAmount [DrawerAmount!] | Close-stamped: the counted drawer, verbatim. |
overShort | DrawerAmount [DrawerAmount!] | Close-stamped: counted − expected per currency (negative = short, positive = over; each non-zero figure posted a count_adjust entry). |
closedAt | String | The terminal instant (stamped at close AND abandon — the shift period's end). |
noSaleCount | Int | The no_sale audit trail — drawer-opened-without-sale count; absent = none. |
lastNoSaleAt | String | The most recent no-sale instant (rides every noSale stamp). |