List orders (commandes)
Returns one page of the omnichannel order (commande) read model, optionally filtered by status, channel and a free-text search, and sorted (capturedAt / total / id). To find one ticket rather than browse, pass ?search= — it matches the order reference and the customer SERVER-side across the WHOLE book before paginating, so an old ticket is still found (the till’s returns counter drives exactly this). Use page/pageSize (max 100) to walk the result; total/pageCount tell you when to stop. Reach for it to browse the OMS backlog.
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.
Query Parameters
1-based page index to return. Defaults to 1.
1 <= x <= 9007199254740991Rows per page, 1..100. Defaults to 20.
1 <= x <= 100Filter by order (commande) lifecycle status.
captured, accepted, fulfilled, cancelled, rejected Filter by capture channel (e.g. web | store).
web, marketplace, mobile-app, in-store Free-text search (recherche) matched SERVER-side, case-insensitively, against the order reference (its id) and its customer (display name or id). Applied to the whole order book BEFORE pagination, so a match on an old ticket is still returned. A blank term is a no-op. Combines with status / channel as AND.
Sort key: capturedAt | total | id (default capturedAt).
capturedAt, total, id Sort direction (default desc).
asc, desc Response
A page of order views with the pagination totals.
A page of order views with the pagination totals.
The rows on this page, in the query's sort order.
Total rows matching the filter across ALL pages, not just this one.
0 <= x <= 9007199254740991The 1-based page number served.
0 < x <= 9007199254740991Rows requested per page.
0 < x <= 9007199254740991Total number of pages; stop walking when page reaches it.
0 <= x <= 9007199254740991
