PurchaseOrderLineInput
input type
One caller-supplied PurchaseOrder line.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
variantId | ID ID! | yes | The variant to order — tenant-scoped + active; OVI-gated when the OrgVendor sets requireCatalogItem (a missing live OVI refuses named). |
logicalFacilityId | ID | no | The receiving LF — optional (defaults from the OrgVendor defaultShipToLogicalFacilityId); must belong to the buying org. |
quantity | String | no | The ordered quantity (decimal string, strictly positive); below the OVI effective moq refuses named. Unit entry — exactly ONE of {quantity, the pack pair} per line. |
unitCost | MoneyEntryInput | no | The merchandise unit cost — optional; required effective after resolution; must match the PO snapshot currency. |
manufacturerId | ID | no | Optional per-line manufacturer. |
expectedArrivalAt | String | no | Optional expected-arrival instant (UTC ISO-8601; defaults from lead time when either level declares one). |
purchasePackId | ID | no | Pack 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. |
packQuantity | Int | no | The pack count (1..999999) — present iff purchasePackId is. |
orderLineRef | SpecialOrderLineRefInput | no | See the fields of [SpecialOrderLineRefInput](/types/SpecialOrderLineRefInput/). |