AlmondTill/G3N API

NewVariantInput

input type

Create-input for a Variant. The tenant (org group) is derived SERVER-SIDE from the principal; productId (the parent Product — rides the header) is tenant-scoped server-side and must be active; the coordinate must realize EVERY scheme dimension exactly once (active values, of the dimension group, inside the product segment where constrained) and is IMMUTABLE; a custom stock-UoM ref is tenant-scoped + active-gated; the stock-UoM pair defaults (canned, each). The (style × cell) marker is minted IN the create transaction — a live duplicate is CONFLICT/IDENTITY_TAKEN naming holder + holderProduct; a doomed holder is taken over (the ratified).

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Variant'; when supplied it must be non-blank.
productIdID ID!yesThe parent Product id.
coordinateVariantCoordinateEntryInput [VariantCoordinateEntryInput!]noThe cell coordinate (omit for a zero-dimension style; must realize every scheme dimension exactly once).
stockUomKindStockUomKindnoThe stock-UoM kind — defaults to canned; immutable after birth.
stockUomRefStringnoThe stock-UoM ref — defaults to each; a canned code, or a CustomUom id for kind custom; immutable after birth.
manufacturerPartNumbersManufacturerPartNumberInput [ManufacturerPartNumberInput!]noThe manufacturer part-number map — each manufacturer server-gated in-tenant + ACTIVE; at most 8, unique per manufacturer.
codeStringnoNo further notes.

Used by