# 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](/types/#scalars) `ID!` | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
| `sysId` | [String](/types/#scalars) `String!` | The group-scoped human-facing system id (LM-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `LoyaltyMember` here. |
| `caption` | [String](/types/#scalars) `String!` | The record’s display name — what people see it called. |
| `status` | [String](/types/#scalars) `String!` | The FSM state: active \| inactive \| doomed. |
| `parentId` | [ID](/types/#scalars) `ID!` | The parent LoyaltyProgram — NOT the family root; rootId anchors the org group. |
| `rootId` | [ID](/types/#scalars) `ID!` | The org-group family root. |
| `createdAt` | [String](/types/#scalars) `String!` | When the record was created, as a UTC timestamp. |
| `updatedAt` | [String](/types/#scalars) `String!` | When the record last changed, as a UTC timestamp. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | How many times this record has been edited; the first save is 0. |
| `revision` | [ID](/types/#scalars) `ID!` | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
| `refCaptions` | [RefCaption](/types/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](/types/LoyaltyCustomer/) `LoyaltyCustomer!` | The enrollment identity. |
| `pointsBalance` | [Int](/types/#scalars) `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](/types/#scalars) | 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](/types/#scalars) | The assigned CustomerPriceGroup. / bind groups per their locks; the Consumer binding SUPERSEDES. |
| `consumerId` | [ID](/types/#scalars) | 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. |

## Used by

- [adjustLoyaltyPoints](/reference/refunds-and-payment-corrections/adjustLoyaltyPoints/)
- [createLoyaltyMember](/reference/loyalty-member/createLoyaltyMember/)
- [deactivateLoyaltyMember](/reference/loyalty-member/deactivateLoyaltyMember/)
- [doomLoyaltyMember](/reference/loyalty-member/doomLoyaltyMember/)
- [loyaltyMember](/reference/loyalty-member/loyaltyMember/)
- [reactivateLoyaltyMember](/reference/loyalty-member/reactivateLoyaltyMember/)
- [updateLoyaltyMember](/reference/loyalty-member/updateLoyaltyMember/)
