# 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 (the Stock-Card discipline — nothing changes the drawer without a ledger entry). ONE live session per register (STRICT — the tillSession marker). Expected cash = the drawerTotals cache, stamped in the SAME transaction as every entry post. The shift IS this doc (openedBy + createdAt→closedAt); X/Z report ARTIFACTS are the reports family.

## Fields

| Field | Type | Notes |
| --- | --- | --- |
| `id` | [ID](/types/#scalars) `ID!` | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
| `sysId` | [String](/types/#scalars) `String!` | The group-scoped human-facing system id (TS-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `TillSession` here. |
| `caption` | [String](/types/#scalars) `String!` | The record’s display name — what people see it called. |
| `status` | [String](/types/#scalars) `String!` | The FSM state: open \| suspended \| counting \| closed \| abandoned. |
| `parentId` | [ID](/types/#scalars) `ID!` | The parent Register; rootId = the org group; parentId!== rootId always. |
| `rootId` | [ID](/types/#scalars) `ID!` | The org-group family root. |
| `createdAt` | [String](/types/#scalars) `String!` | When the record was created, as a UTC timestamp. |
| `updatedAt` | [String](/types/#scalars) `String!` | When the record last changed, as a UTC timestamp. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | How many times this record has been edited; the first save is 0. |
| `revision` | [ID](/types/#scalars) `ID!` | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
| `refCaptions` | [RefCaption](/types/RefCaption/) `[RefCaption!]!` | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
| `openedBy` | [ID](/types/#scalars) `ID!` | The opening User, server-stamped from the principal. |
| `float` | [DrawerAmount](/types/DrawerAmount/) `[DrawerAmount!]!` | The declared opening float, verbatim. |
| `drawerTotals` | [DrawerAmount](/types/DrawerAmount/) `[DrawerAmount!]!` | The per-currency running drawer totals. Expected cash = this list. |
| `counted` | [DrawerAmount](/types/DrawerAmount/) `[DrawerAmount!]` | CLOSE-stamped: the counted drawer, verbatim. |
| `overShort` | [DrawerAmount](/types/DrawerAmount/) `[DrawerAmount!]` | CLOSE-stamped: counted − expected per currency (negative = short, positive = over; each non-zero figure posted a count_adjust entry). |
| `closedAt` | [String](/types/#scalars) | The terminal instant (stamped at close AND abandon — the shift period's end). |
| `noSaleCount` | [Int](/types/#scalars) | The no_sale audit trail — drawer-opened-without-sale count; absent = none. |
| `lastNoSaleAt` | [String](/types/#scalars) | The most recent no-sale instant (rides every noSale stamp). |

## Used by

- [beginCloseTillSession](/reference/till-session/beginCloseTillSession/)
- [closeTillSession](/reference/till-sessions/closeTillSession/)
- [forceCloseTillSession](/reference/till-session/forceCloseTillSession/)
- [noSale](/reference/gated-floor-actions/noSale/)
- [openTillSession](/reference/till-sessions/openTillSession/)
- [resumeTillSession](/reference/till-session/resumeTillSession/)
- [suspendTillSession](/reference/till-session/suspendTillSession/)
- [tillSession](/reference/till-session/tillSession/)
