ReceivePurchaseOrderPayload
Result of receivePurchaseOrder: the updated order and lines, any stock booked in, or the validation errors that blocked it.
The purchase order after the receipt, with its status moved to RECEIVED (and receivedAt stamped) or PARTIALLY_RECEIVED. Null when validation failed.
The lines touched by this receipt, with their cumulative received quantity and receipt timestamp updated. Null when validation failed.
Warehouse stock created by putting the goods away. Null when no warehouse location was given, or when no received line carried a substrate.
errors[FieldError!]!Per-field validation errors (unknown order, cancelled order, unknown line, non-positive quantity). Empty on success; when non-empty nothing was persisted.
View exact SDL
"""
Result of `receivePurchaseOrder`: the updated order and lines, any stock booked in, or the validation errors that blocked it.
"""
type ReceivePurchaseOrderPayload {
"""
The purchase order after the receipt, with its status moved to RECEIVED (and `receivedAt` stamped) or PARTIALLY_RECEIVED. Null when validation failed.
"""
purchaseOrder: PurchaseOrderState
"""
The lines touched by this receipt, with their cumulative received quantity and receipt timestamp updated. Null when validation failed.
"""
updatedLines: [PurchaseOrderLineState!]
"""
Warehouse stock created by putting the goods away. Null when no warehouse location was given, or when no received line carried a substrate.
"""
stockEntries: [WarehouseStockState!]
"""
Per-field validation errors (unknown order, cancelled order, unknown line, non-positive quantity). Empty on success; 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.