Skip to main content

Decline Purchase Order Change

POST 

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

Keep the sales order as it is and record why. The reason is stored on the change and added to the order's notes.

Required scope: orders:write

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

Body: reason (string, required, max 500).

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