AlmondTill/G3N API

Device

object type

A Device — the physical hardware identity (native POS apps, the in-Office browser POS, the Pi legacy-peripheral bridge), kept separate from the logical Register it serves: the pairing ref is one-way Device→Register (0..1, re-pairable — registerId lives here, never on the Register). Born pending_pairing via the bespoke enrollDevice (the pairing code returns once, TTL 15 min); completePairingDevice (public — the code IS the auth) flips it active and returns the device credential once. active ⇄ suspended is the kill-switch pair; dooms from active/suspended gate on the paired Register's open TillSession. At POS the real principal is composite (decision E): device session (where/trust) + user session (WHO/authority) — the auth seam. NOT searchable (infrastructure — the Register non-joiner stance).

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 DE-… — stable for the record’s life.
typeString String!The kind of record — always Device here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of pending_pairing, active, suspended or doomed.
parentIdID ID!The parent LogicalFacility; 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.
deviceTypeDeviceType DeviceType!The canned hardware class — set at enrollment, immutable.
registerIdIDThe 0..1 one-way Register pairing. Moves only via pairDeviceToRegister/unpairDevice — never via update.
codeStringOptional mutable merchant reference code; uniqueness NOT enforced.

Used by