Update inventory order

PUT/api/v1/purchase-orders/{id}

Update purchase order details with optimistic locking support.

Operation ID: update_order_api_v1_purchase_orders__id__put·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

idstring · uuidrequired

Request body

vendor_idstring

Updated vendor UUID.

statusstring

Updated status.

namestring

Updated name.

po_numberstring

Updated PO number.

line_itemsarray · LineItem

Replace line items.

feesarray · Fee

Replace fees.

paymentsarray · Payment-Input

Replace payments.

descriptionstring

Updated notes.

totalinteger

Updated total in cents.

balanceinteger

Updated balance in cents.

versioninteger

Version for optimistic locking (prevents concurrent updates).

shipping_costinteger

Freight/shipping cost in cents.

ship_from_location_idstring

Source location.

ship_to_location_idstring

Destination location.

production_run_idstring

Linked production run.

expected_delivery_datestring · date

Updated expected delivery date (YYYY-MM-DD).

payment_term_idstring

Updated payment term ID.

expected_paid_onstring · date

Updated expected payment date (YYYY-MM-DD).

Responses

200Successful Response

successboolean
messagestring
codestring
dataOrderResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject