Update purchase order
Replace a purchase order’s header and lines. Lines with a known id are updated, lines with no id are added, and omitted lines are removed. Closed/cancelled orders are immutable, and a line already matched to a bill cannot be removed or have its ordered quantity reduced below the matched amount.
Path Parameters
Body
Full-representation update of a purchase order and its lines. Lines with a known id are updated in place, lines with no id are added, and omitted lines are removed. A line already matched to a bill cannot be removed or have its ordered quantity dropped below what is already matched.
Supplier the order is raised against. Optional.
Caller's own reference for the order. Optional.
Human purchase-order number printed on the order. Required.
ISO 4217 currency code. Defaults to GBP.
Date the order was raised. Optional.
Expected delivery date. Optional.
The full set of ordered lines after the edit.
Response
OK
A purchase order and its ordered lines.
Human purchase-order number printed on the order. Required and unique within the organisation.
ISO 4217 currency code of the order.
Unique identifier of the purchase order.
The organisation that owns the purchase order.
The supplier the order is raised against, if assigned.
Caller's own reference for the order (a reverse pointer to the platform's record), if any.
Lifecycle status: Draft, Open, PartiallyMatched, FullyMatched (all derived from matching), or the manual terminal states Closed / Cancelled.
Draft, Open, PartiallyMatched, FullyMatched, Closed, Cancelled Date the order was raised, if recorded.
Expected delivery date, if recorded.
The ordered lines, in display order.
When the purchase order was created.
When the purchase order was last updated.