Skip to content

CreatePurchaseOrderPayload ​

Type: Object

Result of createPurchaseOrder: the new order and its lines, or the validation errors that blocked it.

Fields ​

NameTypeArgsDescriptionDeprecated
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.
purchaseOrderPurchaseOrderStateThe 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.

Relationships ​

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