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
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: 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. |
email | String String! | yes | The login identity — normalized server-side; the (group × email) UNIQ marker reserves in the create transaction. |
displayName | String | no | No further notes. |
phones | String [String!] | no | No further notes. |
addresses | ConsumerAddressInput [ConsumerAddressInput!] | no | No further notes. |
priceGroupId | ID | no | Gated in-tenant + ACTIVE at set (the carrier law). ⚠ STAFF-only: the self-register lane (consumerRegister) refuses it. |
tagIds | ID [ID!] | no | The Tag attachment set (at most 64, unique) — each ref gated in-tenant + ACTIVE. ⚠ STAFF-only: consumerRegister refuses it (the priceGroupId law). |
locale | String | no | Preferred locale — canonical BCP-47 core (the ONE / locale shape, case-canonical STRICT: ll / ll-CC / ll-Ssss[-CC]); the i18n resolution consumes it. |
displayCurrency | String | no | DISPLAY-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. |
dateOfBirth | String | no | 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 | no | Contact-cadence preference AMONG CONSENTED channels — immediate | daily | weekly | monthly (canned v1 registry; enforcement = the comms build's named deferral). |
commsFormat | String | no | Message-format preference — plain | rich (canned v1 registry). |
commsTopics | String [String!] | no | Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit (the book law). |
interests | String [String!] | no | General interest tags (the segment raw material) — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit. |
preferredLogicalFacilityId | ID | no | The 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. |