Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

id
string
required

Id of the order (commande) to read or transition.

Minimum string length: 1

Body

application/json
forcedStoreId
string

Optional MANUAL fulfilment-store override (forced routing). Omit to auto-pick the optimal candidate (default, unchanged). When set, routing is PINNED to this storeId: it is accepted only if that store is one of the candidates and holds enough stock to fully fulfil every line; otherwise the request fails 422 (BusinessRuleViolation) and the order stays captured (it is NOT rejected), so another store can be chosen.

Minimum string length: 1

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.

id
string
required
channel
enum<string>
required
Available options:
web,
marketplace,
mobile-app,
in-store
deliveryMode
enum<string>
required
Available options:
click-and-collect,
ship-from-store,
endless-aisle
customer
object
required
lines
object[]
required
status
enum<string>
required
Available options:
captured,
accepted,
fulfilled,
cancelled,
rejected
fulfillingStoreId
string | null
required
routingExplanation
object | null
required
actorId
string
required
capturedAt
string
required