Appearance
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
| Name | Type | Default | Description |
|---|---|---|---|
| currency | CurrencyISO! | ISO 4217 currency code (e.g. "EUR") that all line prices and order totals are denominated in. | |
| deliveryAddressId | AddressID | TypeID ("adr_01K…") of the address the goods should be delivered to. Null to leave the delivery address unspecified on the order. | |
| expectedDeliveryDate | String | Date delivery is expected, as an ISO 8601 timestamp. Null when no delivery date has been agreed. | |
| jobId | JobID | TypeID ("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. | |
| notes | String | Notes for the supplier, carried on the order itself. Null when there are none. | |
| orderDate | String | Date the order is placed, as an ISO 8601 timestamp. Defaults to now when omitted or unparseable. | |
| poNumber | String! | 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. | |
| supplierId | SupplierID! | TypeID ("sup_01K…") of the supplier the order is placed with. |