AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The group-scoped human-facing system id (TS-…).
typeString String!The kind of record — always TillSession here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: open | suspended | counting | closed | abandoned.
parentIdID ID!The parent Register; rootId = the org group; parentId!== rootId always.
rootIdID ID!The org-group family root.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
openedByID ID!The opening User, server-stamped from the principal.
floatDrawerAmount [DrawerAmount!]!The declared opening float, verbatim.
drawerTotalsDrawerAmount [DrawerAmount!]!The per-currency running drawer totals. Expected cash = this list.
countedDrawerAmount [DrawerAmount!]CLOSE-stamped: the counted drawer, verbatim.
overShortDrawerAmount [DrawerAmount!]CLOSE-stamped: counted − expected per currency (negative = short, positive = over; each non-zero figure posted a count_adjust entry).
closedAtStringThe terminal instant (stamped at close AND abandon — the shift period's end).
noSaleCountIntThe no_sale audit trail — drawer-opened-without-sale count; absent = none.
lastNoSaleAtStringThe most recent no-sale instant (rides every noSale stamp).

Used by