AlmondTill/G3N API

NewConsumerInput

input type

Create-input for a Consumer. The tenant (org group) is derived SERVER-SIDE from the principal. ⚠ NO password field — credentials NEVER ride a construct shape: a staff-created Consumer is born WITHOUT self-service; resetConsumerPassword arms it. Self-registration (consumerRegister) shares this shape + a password argument.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the display name when given, else the NORMALIZED email (the identity line); when supplied it must be non-blank.
emailString String!yesThe login identity — normalized server-side; the (group × email) UNIQ marker reserves in the create transaction.
displayNameStringnoNo further notes.
phonesString [String!]noNo further notes.
addressesConsumerAddressInput [ConsumerAddressInput!]noNo further notes.
priceGroupIdIDnoGated in-tenant + ACTIVE at set (the carrier law). ⚠ STAFF-only: the self-register lane (consumerRegister) refuses it.
tagIdsID [ID!]noThe Tag attachment set (at most 64, unique) — each ref gated in-tenant + ACTIVE. ⚠ STAFF-only: consumerRegister refuses it (the priceGroupId law).
localeStringnoPreferred locale — canonical BCP-47 core (the ONE / locale shape, case-canonical STRICT: ll / ll-CC / ll-Ssss[-CC]); the i18n resolution consumes it.
displayCurrencyStringnoDISPLAY-ONLY currency preference (ISO-4217 alpha-3, SHAPE + SET membership since): render prices in this currency where a conversion exists. ⚠ NEVER an evaluation input — carts/orders/documents stay org-currency.
dateOfBirthStringnoDate-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.
commsFrequencyStringnoContact-cadence preference AMONG CONSENTED channels — immediate | daily | weekly | monthly (canned v1 registry; enforcement = the comms build's named deferral).
commsFormatStringnoMessage-format preference — plain | rich (canned v1 registry).
commsTopicsString [String!]noComms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit (the book law).
interestsString [String!]noGeneral interest tags (the segment raw material) — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit.
preferredLogicalFacilityIdIDnoThe preferred store/LF: gated in-tenant + ACTIVE LF at write (the priceGroupId gate class); an LF dying LATER degrades at read — never a profile-killing throw.

Used by