Skip to main content

Accept Purchase Order Change

POST 

/api/spscommerce/sales-orders/:salesOrder/order-changes/:document/accept

Apply the retailer's change to the sales order: new quantities (a decrease cancels the difference), removed lines (cancelled), new prices, added lines (when the item maps to a product), and the ship-by, deliver-by and cancel-after dates. The 3PL is updated the same way as for any edit to the order; decision.fulfillment_note says what happened. All or nothing: if any line can't be applied, nothing changes and the response lists every reason (422). SKU.io does not send a change acknowledgment (865) to the retailer.

Required scope: orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token and the sales_orders.update permission.

Returns 404 when the change belongs to another order's purchase order, and 409 when someone already accepted or declined it.

Request​

Responses​

OK

Response Headers
    Content-Type