Get Product Variant Count
GET/commerce/products/:productId/variants/count
Get the total number of product variants that meet the specified criteria.
Request
Path Parameters
The ID of the product you want to get the product variants for.
Query Parameters
The ID of the credential.
A string used to retrieve product variants with a specific title.
A string used to retrieve product variants with a title containing a specific value.
A string that should not match the title of product variants to be retrieved.
The exact price used to retrieve product variants with a matching price.
The minimum allowed value for filtering product variants based on their price.
The maximum allowed value for filtering product variants based on their price.
A value that should not match the price of product variants to be retrieved.
A string used to retrieve product variants with a specific SKU (Stock Keeping Unit) value.
A string used to retrieve product variants with an SKU containing a specific value.
A string that should not match the SKU of product variants to be retrieved.
Filter objects created in the third-party application after a specified date.
Filter objects created in the third-party application before a specified date.
Filter objects last updated in the third-party application after a specified date.
Filter objects last updated in the third-party application before a specified date.
Filter objects created after a specified date.
Filter objects created before a specified date.
Filter objects last updated after a specified date.
Filter objects last updated before a specified date.
Header Parameters
Default value: bearer YOUR_API_KEY
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
Default value: 0
{
"count": 3
}
{
"count": 3
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}