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. 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

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 human-readable id, shaped like TS-… — stable for the record’s life.
typeString String!The kind of record — always TillSession here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of open, suspended, counting, closed or abandoned.
parentIdID ID!The parent Register; rootId = the org group; parentId!== rootId always.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
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 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — 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