Retrieve product variants using structured queries with cursor-based pagination.
Use this endpoint for simple filtering operations on id and productId.
For complex queries with free-text search and aggregations, use Search Variants instead.
Up to 1,000 variants can be returned per request.
To learn about working with Query endpoints, see API Query Language, and Sorting and Paging.
Learn more about the differences between Query and Search methods.
| PROPERTY | SUPPORTED FILTERS & SORTING |
|---|---|
_id | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
productData.productId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.