Update Purchase Order

Updates mutable fields on a purchase order. Only fields included in the request body are modified.

Requires scope: purchase_orders:write

Authentication

API_KEYstring
API Key authentication via header

Path parameters

idUUIDRequired
Purchase order ID.

Request

This endpoint expects an object.
orderNumberstringOptional
Updated order reference number. Maximum 255 characters.
supplierIdUUIDOptional

Updated supplier ID. Pass null to clear.

locationIdUUIDOptional

Updated destination location ID. Pass null to clear.

notestringOptional

Updated note for the supplier. Pass null to clear.

dueDatedateOptional

Updated expected delivery date. Pass null to clear.

Response

This endpoint returns an object.
idUUID
Unique identifier for the purchase order.
itemCountinteger
Number of line items in this purchase order.
assignedUserIdslist of UUIDs
IDs of users assigned to this purchase order.
orderNumberstring

Human-readable order reference number (e.g. PO-1042).

statusenum
Current lifecycle status of the purchase order.
typestring

Optional classification tag for the order (e.g. STANDARD, EMERGENCY).

totalCostdouble
Grand total cost of all items in USD.
subtotaldouble
Subtotal before any adjustments in USD.
notestring

Free-text note for the supplier.

supplierobject
Reference to the supplier for this order.
locationobject
Reference to the destination location.
dueDatedate

ISO 8601 date when the order is expected (e.g. 2026-04-15).

receivedAtdatetime

ISO 8601 timestamp when the order was marked received. null if not yet received.

createdAtdatetime
ISO 8601 timestamp when the record was created.
updatedAtdatetime
ISO 8601 timestamp when the record was last updated.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error