AlmondTill/G3N API

NewProductInput

input type

Create-input for a Product. The tenant (org group) is derived SERVER-SIDE from the principal; styleId (the parent Style — rides the header) is tenant-scoped server-side and must be active (STRICT); every segment dimension must be in the style scheme with values of that group, ACTIVE at declaration; rrp is REQUIRED (at least 1 entry) and — when the style has live OrgStyle selections — must cover every selecting org defaultCurrency (CONFLICT/CURRENCY_FLOOR, site 2).

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Product'; when supplied it must be non-blank.
styleIdID ID!yesThe parent Style id.
segmentProductSegmentEntryInput [ProductSegmentEntryInput!]noThe declared segment (omit or empty = the WHOLE style; unique dimensions; values in-scheme + of-the-group + active).
rrpMoneyEntryInput [MoneyEntryInput!]!yesThe RRP map — REQUIRED, at least 1 entry.
msrpMoneyEntryInput [MoneyEntryInput!]noThe optional MSRP map.
tagIdsID [ID!]noThe Tag set (at most 64, unique) — each tenant-scoped + active.
codeStringnoNo further notes.

Used by