Consumer
object type
A Consumer — the B2C shopper identity: WHO shops, as a per-merchant-group person (parentId === rootId — NOT a global identity; federated cross-merchant identity is the lock's flagged-not-now). B2C-SIMPLE inline: the normalized login email + displayName + bounded phones + the inline address book (≤16; shipping/billing roles + at most ONE default per side). the identity-marker rule: the (group × normalized email) uniq marker among live holders is the login index — a live/suspended holder refuses CONFLICT/IDENTITY_TAKEN; on erase (doom) the identifiers burn within the group. Credentials never ride this record; self-service rides the consumer session channel (consumerRegister/consumerLogin + the CONSUMER_SESSION_OPERATIONS roster); staff manage via this face. Searchable (the customer-book law). priceGroupId = the binding — the supersede carrier: a consumer-named order resolves eligibility here, present-or-absent, NO member fall-through.
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 CN-… — stable for the record’s life. |
type | String String! | The kind of record — always Consumer here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of active, suspended or doomed. |
parentId | ID ID! | The parent org group; for a Consumer parentId === rootId. |
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. |
email | String String! | The login identity — stored normalized; the (group × email) uniq marker rides it. |
displayName | String | The shopper display name; absent ⇒ the caption carries the identity line (the normalized email). |
phones | String [String!]! | Contact phones — bounded (≤4); may be empty. A supplied list replaces wholesale on edit. |
addresses | ConsumerAddress [ConsumerAddress!]! | The inline B2C address book — bounded (≤16); at most ONE default per side across the book; a supplied book replaces wholesale on edit. |
priceGroupId | ID | The CustomerPriceGroup binding. Gated in-tenant + active at set; a group dying after assignment degrades at evaluation (never a cart-killing throw). Optional + editable. |
tagIds | ID [ID!] | The Tag attachment set — wholesale-replace list, empty releases; absent = untagged. Staff custody (the priceGroupId law): each ref gated in-tenant + active; a tag with live wearers cannot be doomed. The segment tag axis reads it. |
locale | String | Preferred locale — canonical BCP-47 core; the i18n resolution consumes it. |
displayCurrency | String | Display-only currency preference — a platform-registry code inside the union of the group's organizations' allowed sets: render prices in this currency where a conversion exists. Never an evaluation input — carts/orders/documents stay org-currency. |
dateOfBirth | String | Date-only yyyy-mm-dd, calendar-real, ≥ 1900-01-01; the not-in-the-future half rides the KIT write gate. Drives the age-restricted-sale gate when that builds (data-only now — the named deferral) + the birthday registries. |
commsFrequency | String | Contact-cadence preference among consented channels — immediate | daily | weekly | monthly. |
commsFormat | String | Message-format preference — plain | rich (canned v1 registry). |
commsTopics | String [String!] | Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit (the book law). |
interests | String [String!] | General interest tags — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit. |
preferredLogicalFacilityId | ID | The preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw. |