AlmondTill/G3N API

PurchaseOrderLineInput

input type

One caller-supplied PurchaseOrder line.

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; 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.
orderLineRefSpecialOrderLineRefInputnoSee the fields of [SpecialOrderLineRefInput](/types/SpecialOrderLineRefInput/).