Appearance
UpsertPurchaseOrderInput
Type: Input
Input for creating or updating a purchase order
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| approvedAt | ISO8601 | Approval timestamp (ISO8601) | |
| approvedByUserId | UserID | Approving user ID | |
| attachments | [PurchaseOrderFileAttachmentInput!] | Approval timestamp (ISO8601) | |
| currency | CurrencyISO! | Currency code (required) | |
| deliveryAddressId | AddressID | Delivery address ID | |
| expectedDeliveryDate | ISO8601 | Expected delivery date (ISO8601) | |
| id | PurchaseOrderID | ID for update; omit for create | |
| internalNotes | String | Internal notes | |
| jobId | JobID | Associated job ID | |
| notes | String | Notes visible to supplier | |
| orderDate | ISO8601! | Order date (ISO8601, required) | |
| poNumber | String! | Purchase order number (required) | |
| receivedAt | ISO8601 | Date goods were received (ISO8601) | |
| status | PurchaseOrderStatus | PO status | |
| subtotalAmount | Float | Subtotal before tax | |
| supplierId | SupplierID! | Supplier ID (required) | |
| taxAmount | Float | Tax amount | |
| totalAmount | Float! | Total amount including tax (required) |