CANONICAL TYPE REFERENCE
CreatePurchaseOrderPayload
Result of createPurchaseOrder: the new order and its lines, or the validation errors that blocked it.
The purchase order that was created, in DRAFT status with its totals computed. Null when validation failed and nothing was written.
The lines created for the order, in input order, each with its line number and line total filled in. Null when validation failed.
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.
View exact SDL
"""
Result of `createPurchaseOrder`: the new order and its lines, or the validation errors that blocked it.
"""
type CreatePurchaseOrderPayload {
"""
The purchase order that was created, in DRAFT status with its totals computed. Null when validation failed and nothing was written.
"""
purchaseOrder: PurchaseOrderState
"""
The lines created for the order, in input order, each with its line number and line total filled in. Null when validation failed.
"""
purchaseOrderLines: [PurchaseOrderLineState!]
"""
Per-field validation errors (paths such as "poNumber" or "lines[0].quantity"). Empty when the order was created; when non-empty nothing was persisted.
"""
errors: [FieldError!]!
}One stable address across all schema views. Follow a field’s type to explore connections between domains.