Route a captured order
Routes a captured order to a fulfilling store chosen deterministically from the supplied candidates (lowest rank, then smallest storeId, among those holding enough stock), moving it to accepted. When no candidate can fully fulfil it, the order moves to the terminal rejected state instead. The order id comes from the PATH — a body orderId is ignored. Failure conditions: 400 on a malformed body; 404 for an unknown order; 422 when the order is not captured.
Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Path Parameters
1Body
Response
The routed order — accepted onto a store, or rejected when none can fulfil it.
The routed order — accepted onto a store, or rejected when none can fulfil it.
web, marketplace, mobile-app, in-store click-and-collect, ship-from-store, endless-aisle captured, accepted, fulfilled, cancelled, rejected 
