AlmondTill/G3N API

NewPurchasePackInput

input type

Create-input for a PurchasePack.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the pack code; when supplied it must be non-blank.
variantIdID ID!yesThe variant this pack packages.
codeString String!yes
unitsPerPackString String!yesStock units per pack (strictly positive decimal) — immutable after birth.
packGtinStringno
nominalWeightKgStringno
lengthCmStringno
widthCmStringno
heightCmStringno

Used by