200Successful Response
Schema: SuccessEnvelope_OrderResponse_
successbooleanmessagestringcodestringdataOrderResponse
/api/v1/purchase-orders/{id}Update purchase order details with optimistic locking support.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
idstring · uuidrequiredSchema: InventoryOrderUpdate
vendor_idstringUpdated vendor UUID.
statusstringUpdated status.
namestringUpdated name.
po_numberstringUpdated PO number.
line_itemsarray · LineItemReplace line items.
feesarray · FeeReplace fees.
paymentsarray · Payment-InputReplace payments.
descriptionstringUpdated notes.
totalintegerUpdated total in cents.
balanceintegerUpdated balance in cents.
versionintegerVersion for optimistic locking (prevents concurrent updates).
shipping_costintegerFreight/shipping cost in cents.
ship_from_location_idstringSource location.
ship_to_location_idstringDestination location.
production_run_idstringLinked production run.
expected_delivery_datestring · dateUpdated expected delivery date (YYYY-MM-DD).
payment_term_idstringUpdated payment term ID.
expected_paid_onstring · dateUpdated expected payment date (YYYY-MM-DD).
Schema: SuccessEnvelope_OrderResponse_
successbooleanmessagestringcodestringdataOrderResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject