AlmondTill/G3N API

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

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 CN-… — stable for the record’s life.
typeString String!The kind of record — always Consumer here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, suspended or doomed.
parentIdID ID!The parent org group; for a Consumer parentId === rootId.
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.
emailString String!The login identity — stored normalized; the (group × email) uniq marker rides it.
displayNameStringThe shopper display name; absent ⇒ the caption carries the identity line (the normalized email).
phonesString [String!]!Contact phones — bounded (≤4); may be empty. A supplied list replaces wholesale on edit.
addressesConsumerAddress [ConsumerAddress!]!The inline B2C address book — bounded (≤16); at most ONE default per side across the book; a supplied book replaces wholesale on edit.
priceGroupIdIDThe CustomerPriceGroup binding. Gated in-tenant + active at set; a group dying after assignment degrades at evaluation (never a cart-killing throw). Optional + editable.
tagIdsID [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.
localeStringPreferred locale — canonical BCP-47 core; the i18n resolution consumes it.
displayCurrencyStringDisplay-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.
dateOfBirthStringDate-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.
commsFrequencyStringContact-cadence preference among consented channels — immediate | daily | weekly | monthly.
commsFormatStringMessage-format preference — plain | rich (canned v1 registry).
commsTopicsString [String!]Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit (the book law).
interestsString [String!]General interest tags — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit.
preferredLogicalFacilityIdIDThe preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw.

Used by