Version: 202201
Collect Count
GET/openapi/2022-01/collects/count
Retrieves the total number of collect objects that associate products with a collection.
Request
Query Parameters
product_id string
Product's ID, for example: 0097cfc8-6ec3-40ed
collection_id string
Collection's ID, for example: 0097cfc8-6ec3-40ed
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
countinteger
Default value:
0Example:
2{
"count": 2
}
{
"count": 2
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"CollectionID must be a valid UUID"
]
}
{
"errors": [
"CollectionID must be a valid UUID",
"ProductID must be a valid UUID"
]
}