Generate replenishment suggestions (suggestions de réapprovisionnement) for a store
Computes the reviewable min/max reorder suggestions for one store: every stock line at or below its (configured or default) reorder point, with the quantity to order to bring it back up to its target level. A SIMPLE, non-ML, deterministic min/max engine — no forecasting, no seasonality. Accepting a suggestion is a separate step: create a purchase order (POST /v1/purchase-orders) with the accepted lines.
Returns ONE PAGE (page/pageSize, max 100). total counts the suggestions across ALL pages: keep going until page reaches pageCount before you decide what to order. A SKU below its reorder point sitting on an unread page is a line that silently never gets replenished — and any valuation you compute from a single page understates what the order is worth.
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 <= 100The store (magasin) to compute suggestions for.
1Response
A page of the reviewable reorder suggestions with the pagination totals.
A page of the reviewable reorder suggestions 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
