Skip to content

CreatePurchaseOrderInput ​

Type: Input

Input for createPurchaseOrder. The order is created in DRAFT status with tax of zero, so its total equals the sum of its line totals.

Fields ​

NameTypeDefaultDescription
currencyCurrencyISO!ISO 4217 currency code (e.g. "EUR") that all line prices and order totals are denominated in.
deliveryAddressIdAddressIDTypeID ("adr_01K…") of the address the goods should be delivered to. Null to leave the delivery address unspecified on the order.
expectedDeliveryDateStringDate delivery is expected, as an ISO 8601 timestamp. Null when no delivery date has been agreed.
jobIdJobIDTypeID ("job_01K…") of the job this order is bought for, linking the spend to that job. Null for general/stock purchases.
lines[PurchaseOrderLineInput!]!The items being ordered. At least one line is required; lines are numbered in the order given and their totals are summed into the order subtotal.
notesStringNotes for the supplier, carried on the order itself. Null when there are none.
orderDateStringDate the order is placed, as an ISO 8601 timestamp. Defaults to now when omitted or unparseable.
poNumberString!Human-facing purchase order number used to identify the order to the supplier. Must not be blank; also used as the batch number on any stock received against this order.
supplierIdSupplierID!TypeID ("sup_01K…") of the supplier the order is placed with.

Connect machines, automate workflows, and build custom apps for print production.