Version: 202506
Count variants
GET/openapi/2025-06/products/:product_id/variants/count
Count the number of variants for a specific product.
Request
Path Parameters
product_id stringrequired
The product ID to count variants for
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
countint64
The count of variants
{
"code": "string",
"message": "string",
"data": {
"count": 0
}
}