Retrieves stock information for a product by identifier.
productIdentifier can be either SKU or UPC.
Requires a valid JWT Bearer token.
GET
/api/rest/product/{productIdentifier}/stock
curl \
--request GET 'https://cerebro.techrayo.com/api/rest/product/{productIdentifier}/stock' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"inventario": [
{
"sku": "PASTA-23873",
"upc": "7500464733016",
"nombre": "Colgate Pasta",
"imagen_url": "https://www.sopost.com/wp-content/uploads/2022/08/queensawardforenterprisebla.png",
"disponibles": 3,
"por_almacen": [
{
"id_almacen": "6daee69d-fbbb-43ea-930d-78af1545b738",
"disponibles": 1,
"en_inventario": 1,
"nombre_almacen": "Sitra"
},
{
"id_almacen": "9ca2fb39-902d-4e9b-9018-5f5e2b875cce",
"disponibles": 2,
"en_inventario": 2,
"nombre_almacen": "1.Anzures (Rayo)"
}
],
"en_inventario": 3
}
]
}
Response examples (default)
{
"error": "internal error",
"code": "unexpected",
"path": "$"
}