LoyaltyMember
object type
A LoyaltyMember — ONE enrollment of ONE customer identity into ONE LoyaltyProgram (parentId = the program). Enrollment REQUIRES identity: the inline customer block with email REQUIRED (trim+lowercase-normalized — anonymous/walk-in cannot earn); the (program × normalized email) UNIQ marker reserves IN the create transaction — a LIVE holder refuses CONFLICT/MEMBER_EXISTS naming the holder (the email is never echoed), while a DOOMED member's identity RE-ENROLLS fresh (an identity is not a bearer money key — the explicit contrast with the instrument-code BURN). pointsBalance is the CACHED LoyaltyPointsEntry ledger sum (PK=LOYLEDGER#<memberId>), stamped in the SAME transaction as every entry (the / law), with every draw CONDITIONED balance ≥ draw — points NEVER go negative (CONFLICT/INSUFFICIENT_POINTS names live figures) and cap at 1000000000. Earn/redeem ride the Order PLACE transaction; cancel claws back IN the cancel transaction (spent-below-earned REFUSES the cancel); returns claw earn + restore redemption EXACTLY off the entries' per-line details in the refund flip transaction. adjustLoyaltyPoints is the ONLY manual points surface. Doom is gated by CONFLICT/BALANCE_OUTSTANDING while points remain (zero via reason-coded adjust FIRST); tier assignment is a manual edit v1.
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 group-scoped human-facing system id (LM-…). |
type | String String! | The kind of record — always LoyaltyMember here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: active | inactive | doomed. |
parentId | ID ID! | The parent LoyaltyProgram — NOT the family root; rootId anchors the org group. |
rootId | ID ID! | The org-group family root. |
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 OCC revision token — supply it on every mutation of this record; rotates on every write. |
refCaptions | RefCaption [RefCaption!]! | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
customer | LoyaltyCustomer LoyaltyCustomer! | The enrollment identity. |
pointsBalance | Int Int! | The CACHED ledger sum — stamped in the SAME transaction as every LoyaltyPointsEntry; NEVER negative; NEVER directly editable (adjust/earn/redeem are the only points surfaces). |
currentTier | String | The assigned tier NAME (v1 manual assignment via update; must name a program tier at write time; a later program rename degrades to the base multiplier at evaluation). |
priceGroupId | ID | The assigned CustomerPriceGroup. / bind groups per their locks; the Consumer binding SUPERSEDES. |
consumerId | ID | The Consumer identity bridge. The coherence gate rides it: an order naming BOTH a member and a consumer refuses when this bridge points at a DIFFERENT consumer; a consumer-named order resolves pricing from the CONSUMER binding — this member carrier stands only on member-named-without-consumer orders. |