AlmondTill/G3N API

NewPurchasePackInput

input type

Create-input for a PurchasePack. The tenant (org group) is derived SERVER-SIDE from the principal; variantId (the parent — rides the header) is tenant-scoped server-side and must be ACTIVE (STRICT); the code is dup-gated against LIVE sibling packs (trim+case-fold, naming the holder); the dims trio comes all-or-none.

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!yesNo further notes.
unitsPerPackString String!yesStock units per pack (strictly positive decimal) — IMMUTABLE after birth.
packGtinStringnoNo further notes.
nominalWeightKgStringnoNo further notes.
lengthCmStringnoNo further notes.
widthCmStringnoNo further notes.
heightCmStringnoNo further notes.

Used by