AlmondTill/G3N API

NewVariantInput

input type

Create-input for a Variant. 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.
codeStringno

Used by