版本:202201
查询子款式数量
GET/openapi/2022-01/products/:product_id/variants/count
返回指定商品下的子款式总数。
请求
Path参数
product_id string必填
待统计子款式数量的商品 ID。
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
countinteger
默认值:
0示例:
5{
"count": 5
}
{
"count": 5
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"productId has an invalid UUID"
]
}
{
"errors": [
"productId has an invalid UUID"
]
}