AlmondTill/G3N API

NewConsumerInput

input type

Create-input for a Consumer. 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!yes
displayNameStringno
phonesString [String!]no
addressesConsumerAddressInput [ConsumerAddressInput!]noAddress-book entry input for a Consumer — a supplied book replaces the stored one wholesale (the Role-descriptors list-is-the-payload semantic).
priceGroupIdIDnoGated in-tenant + active at set. 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 i18n resolution consumes it.
displayCurrencyStringnoDisplay-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.
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.
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 — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit.
preferredLogicalFacilityIdIDnoThe preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw.

Used by