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