Update an existing purchase order. All fields are optional - only provided fields will be updated.
items array is provided, it replaces all existing itemspayments array is provided, it replaces all existing paymentsFor each line item, you must provide either:
product_id: The internal product IDsku: The product SKU (supports both internal SKU and alternate SKUs)To update an existing item, include its id in the item object.
To add a new item, omit the id field.
To remove an item, omit it from the items array.
Valid order statuses include: active, completed, deleted
The order cost (order_cost) is automatically recalculated as:
sum of (item quantities × unit prices)
The order total (total_cost) is automatically recalculated as:
order_cost + total_tax + total_shipping_cost
Note: order_cost, total_cost, total_paid, and total_due are calculated automatically
on the backend and cannot be edited directly.
If payments array is provided, it replaces all existing payments for the order.
Totals are automatically recalculated after payments are updated.
Authenticate using a bearer token. To obtain a token, contact [email protected]
ID of the purchase order to update
Date when the purchase order was created (YYYY-MM-DD)
"2024-01-15"
ID of the supplier
123
Array of line items for the purchase order
1ID of the warehouse
1
ID of the location
1
Status of the purchase order
active, completed, deleted "active"
Array of purchase order numbers used to identify the purchase order across various systems
255["PO-2024-001", "SUPPLIER-PO-123"]Date when the purchase order was invoiced (YYYY-MM-DD)
"2024-01-16"
Total shipping cost
x >= 050
Total tax amount
x >= 080
Public notes visible to suppliers
"Please ship via express delivery"
Internal private notes
"Rush order - expedite processing"
Requested shipping date (YYYY-MM-DD)
"2024-01-20"
Expected arrival date (YYYY-MM-DD)
"2024-01-25"
Shipping address information
Array of payments for this purchase order. If provided, replaces all existing payments. Totals are automatically recalculated after payments are updated.
Custom field values for the purchase order
{
"Customer PO": "PO-98765",
"Priority Level": "High"
}Tags to associate with the purchase order
255["urgent", "priority", "rush-order"]Purchase order updated successfully