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
id
Purchase order ID.
Request
This endpoint expects an object.
orderNumber
Updated order reference number. Maximum 255 characters.
supplierId
Updated supplier ID. Pass null to clear.
locationId
Updated destination location ID. Pass null to clear.
note
Updated note for the supplier. Pass null to clear.
dueDate
Updated expected delivery date. Pass null to clear.
Response
This endpoint returns an object.
id
Unique identifier for the purchase order.
itemCount
Number of line items in this purchase order.
assignedUserIds
IDs of users assigned to this purchase order.
orderNumber
Human-readable order reference number (e.g. PO-1042).
status
Current lifecycle status of the purchase order.
type
Optional classification tag for the order (e.g. STANDARD, EMERGENCY).
totalCost
Grand total cost of all items in USD.
subtotal
Subtotal before any adjustments in USD.
note
Free-text note for the supplier.
supplier
Reference to the supplier for this order.
location
Reference to the destination location.
dueDate
ISO 8601 date when the order is expected (e.g. 2026-04-15).
receivedAt
ISO 8601 timestamp when the order was marked received. null if not yet received.
createdAt
ISO 8601 timestamp when the record was created.
updatedAt
ISO 8601 timestamp when the record was last updated.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error