Skip to main content

List Purchase Order Changes for a Sales Order

GET 

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

Every purchase order change (860) the retailer sent for this sales order's PO that is still waiting for a decision, plus those decided in the last 7 days. Each change lists, per line, the old and new quantity and price, whether SKU.io can apply it, and why not when it can't. can_accept is true only when every line can be applied; blocked_reasons lists everything that stops it (a line that already shipped, an item SKU.io can't find on the order, an earlier change still waiting, a PO split by store).

Required scope: orders:read

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

Statuses: needs_review (waiting), accepted (applied, or applied by hand when decision.action is handled), declined.

Authentication: Requires Bearer token. Returns an empty list for an order that didn't come from an SPS Commerce purchase order.

Request​

Responses​

OK

Response Headers
    Content-Type