AlmondTill/G3N API

PurchasePack

object type

A purchase pack — a purchasing/handling packaging definition ON a variant (case of 24, pallet of 480): NOT a UoM conversion; a pack is packaging metadata + a line-ENTRY breakdown step (PO/Receipt lines entered in packs resolve to stock units at entry: packQuantity x unitsPerPack). Parent = the variant (0..N packs per variant). unitsPerPack is immutable at birth, which keeps every stored document line reconstructible forever. The code is a dup-gated label. Live packs block the parent Variant doom (the children law); live OrgVendorItems naming a pack block ITS doom; deactivate stays free everywhere (an inactive pack refuses NEW line entry while its unitsPerPack keeps denominating stored terms).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like PK-… — stable for the record’s life.
typeString String!The kind of record — always PurchasePack here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive or doomed.
parentIdID ID!The parent Variant; for a PurchasePack parentId!== rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
codeString String!The pack label (at most 64 chars) — dup-gated among live siblings on the same variant; editable (re-gated).
unitsPerPackString String!Stock units per pack in the variant stock UoM (strictly positive decimal, 4 dp — covers weight-UoM variants). Immutable at birth.
packGtinStringOptional pack GTIN — GTIN-14/ITF-14 validated; optional + editable.
nominalWeightKgStringOptional nominal pack weight in kilograms; optional + editable.
lengthCmStringOptional outer length in centimeters; optional + editable.
widthCmStringOptional outer width in centimeters (the dims trio); optional + editable.
heightCmStringOptional outer height in centimeters (the dims trio); optional + editable.

Used by