Get Stock for Product
GEThttps://euwest.api.elasticpath.com/v2/inventories/:product_uuid
Gets the stock for the product matching the specified unique identifier.
Request
Path Parameters
product_uuid stringrequired
The unique identifier of the product.
Responses
- 200
- 404
- 500
Success. Returns the stock for the given product UUID
- application/json
- Schema
- Example (from schema)
Schema
data Inventory
{
"data": {
"id": "f976dace-450f-4a5d-8877-d119c5a550a1",
"type": "stock",
"total": 100,
"available": 75,
"allocated": 25
}
}
Not found. The requested entity does not exist.
- application/json
- Schema
- Example (from schema)
- not-found
Schema
errors ErrorBody[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred."
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": 404,
"detail": "The resource could not be found"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
errors ErrorBody[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred."
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": 500
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://euwest.api.elasticpath.com/v2/inventories/:product_uuid' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear