Error
A valid request URL is required to generate request examples{
"id": "stk-chemise-blanc-42",
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"name": "Chemise sur-mesure Blanc 42",
"shopId": "store-rivoli",
"category": "Mesure",
"supplier": "Atelier Solya",
"onHand": 8,
"reserved": 0,
"reorderPoint": 5,
"unitCostCents": 1500
}{
"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
}
}Inventory
Get a stock item by id
Returns the stock read model for one inventory line (a sku × shop position): on-hand, reserved, reorder point (seuil de réappro), supplier (fournisseur) and valuation. 404s when no stock line carries the given id.
GET
/
v1
/
inventory
/
{id}
Error
A valid request URL is required to generate request examples{
"id": "stk-chemise-blanc-42",
"skuId": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"name": "Chemise sur-mesure Blanc 42",
"shopId": "store-rivoli",
"category": "Mesure",
"supplier": "Atelier Solya",
"onHand": 8,
"reserved": 0,
"reorderPoint": 5,
"unitCostCents": 1500
}{
"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.
Path Parameters
The stock line id (a sku × shop inventory position).
Minimum string length:
1Response
The stock read model for one inventory line.
The stock read model for one inventory line.
Minimum string length:
1Pattern:
^[0-9a-f]{64}$Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991
