Skip to main content

Bulk Swap and Release Sales Orders

POST 

/api/sales-orders/bulk-swap

Background job: for each selected order, apply the best available substitution to every eligible line (highest-priority active rule whose substitute can cover the line), then release the order through fulfillment. Orders whose lines are committed to fulfillment, have no matching rule, or whose substitutes are out of stock are skipped with a reason — the batch never aborts.

Authentication: Requires Bearer token.

Set release to false to swap without dispatching fulfillment. Maximum 1,000 orders per run. Returns 202 with a job ID to track.

Request

Responses

Accepted

Response Headers
    Content-Type