← All types
Ob Object

CreatePurchaseOrderPayload

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

Fields

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!]!Non-null

Per-field validation errors (paths such as "poNumber" or "lines[0].quantity"). Empty when the order was created; when non-empty nothing was persisted.

Referenced by (1)
Exact type 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!]!
}