Get Stock for Product
GET/inventories/:product_uuid
Gets the stock for the product matching the specified unique identifier.
Request
Path Parameters
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
The unique identifier of the product.
Possible values: [stock
]
Default value: stock
The type represents the object being returned. Always stock
.
The total amount of stock we have.
The amount of stock available for purchase.
The amount of paid for stock, also known as reserved.
{
"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
- Array [
- ]
errors ErrorBody[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
{
"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
- Array [
- ]
errors ErrorBody[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred."
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": 500
}
]
}