Appearance
CreatePurchaseOrderPayload
Type: Object
Result of createPurchaseOrder: the new order and its lines, or the validation errors that blocked it.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| errors | [FieldError!]! | Per-field validation errors (paths such as "poNumber" or "lines[0].quantity"). Empty when the order was created; when non-empty nothing was persisted. | ||
| purchaseOrder | PurchaseOrderState | The purchase order that was created, in DRAFT status with its totals computed. Null when validation failed and nothing was written. | ||
| purchaseOrderLines | [PurchaseOrderLineState!] | The lines created for the order, in input order, each with its line number and line total filled in. Null when validation failed. |