Version: 202201
Variant Total Count
GET/openapi/2022-01/products/:product_id/variants/count
Count the number of variants for a specific product.
Request
Path Parameters
product_id stringrequired
Product's ID
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
countinteger
Default value:
0Example:
5{
"count": 5
}
{
"count": 5
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"productId has an invalid UUID"
]
}
{
"errors": [
"productId has an invalid UUID"
]
}