AlmondTill/G3N API

PurchaseOrderLineInput

input type

One caller-supplied PurchaseOrder line (create + wholesale draft edit — lean 8: the receiving LF, unit cost and arrival are server-defaulted from the OrgVendor / OVI when omitted; a line whose LF or cost resolves to NOTHING refuses VALIDATION/INVALID naming the gap).

Fields

FieldTypeRequiredNotes
variantIdID ID!yesThe variant to order — tenant-scoped + ACTIVE; OVI-gated when the OrgVendor sets requireCatalogItem (a missing live OVI refuses NAMED).
logicalFacilityIdIDnoThe receiving LF — OPTIONAL (defaults from the OrgVendor defaultShipToLogicalFacilityId); must belong to the buying org.
quantityStringnoThe ordered quantity (decimal string, strictly positive); below the OVI effective moq refuses NAMED. UNIT entry — exactly ONE of {quantity, the pack pair} per line.
unitCostMoneyEntryInputnoThe merchandise unit cost — OPTIONAL (defaults from the OVI listCost; a pack-denominated OVI derives listCost / unitsPerPack, EXACT at 4 dp or the line refuses naming the cure — lean 7); REQUIRED effective after resolution; must match the PO snapshot currency.
manufacturerIdIDnoOptional per-line manufacturer.
expectedArrivalAtStringnoOptional expected-arrival instant (UTC ISO-8601; defaults from lead time when either level declares one).
purchasePackIdIDnoPACK entry: the pack to enter in — tenant + ACTIVE + must package THIS line variant; the stored quantity derives as packQuantity x unitsPerPack. Comes as a pair with packQuantity.
packQuantityIntnoThe pack count (1..999999) — present iff purchasePackId is.
orderLineRefSpecialOrderLineRefInputnoNo further notes.