Error
A valid request URL is required to generate request examples{
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"shopId": "store-rivoli",
"minQuantity": 5,
"maxQuantity": 20
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}Replenishment
Set a reorder policy (seuil min/max) for one SKU × store
Inserts or replaces the min/max reorder-point policy for one SKU in one store (upsert by SKU × store). maxQuantity must be greater than or equal to minQuantity.
PUT
/
v1
/
reorder-policies
Error
A valid request URL is required to generate request examples{
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"shopId": "store-rivoli",
"minQuantity": 5,
"maxQuantity": 20
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}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.
Body
application/json
SKU digest (64-hex) the policy applies to.
Pattern:
^[0-9a-f]{64}$Store (magasin) the policy applies to.
Minimum string length:
1On-hand level at or below which the SKU is flagged for reorder.
Required range:
0 <= x <= 9007199254740991Target on-hand level a suggestion replenishes up to (>= minQuantity).
Required range:
0 <= x <= 9007199254740991
