List product variants
Lists a product's variants with name, SKU, status, order, and image; supports search and option filters.
/v1/catalog/products/{productId}/variantsLists a product's variants with name, SKU, status, order, and image; supports search and option filters.
Authorization
bearerAuth OAuth2 access token issued by Ecomiq Auth.
In: header
Path Parameters
Identifier of the product.
Query Parameters
Maximum number of results to return.
int32Opaque cursor from the previous response. Omit it on the first page.
Free-text filter. Which fields it covers depends on the resource.
Field to sort by. Accepted values depend on the resource.
Sort direction: asc or desc.
Value in
- "asc"
- "desc"
Header Parameters
Store the request acts on. Not needed when the token is bound to a store.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/catalog/products/7204558912004325301/variants?optionKey=example&optionValue=example" \ -H "x-Store-Id: <store-id>" \ -H "Authorization: Bearer <token>"{ "data": [ { "id": "7204558912004325377", "name": "Azul / M", "sku": "POL-001-AZ-M", "status": "active", "order": 1, "imageUrl": "https://cdn.example.com/products/pol-001-az-m.jpg" } ], "hasNextPage": false, "nextCursor": null, "totalCount": 1, "options": [ { "key": "color", "name": "Color", "values": [ "Azul" ] }, { "key": "talla", "name": "Talla", "values": [ "M" ] } ]}