CatalogVariants
List product variants
Lists a product's variants with name, SKU, status, order, image, price and available stock; supports search and option filters.
Path Parameters
productId*string
Identifier of the product.
Query Parameters
limit?integer
Maximum number of results to return.
Format
int32cursor?string
Cursor from the previous response. Omit it on the first page.
search?string
Free-text search.
sortBy?string
Field to sort by.
sortDirection?string
Sort direction: asc or desc.
Value in
- "asc"
- "desc"
optionKey*array<string>
optionValue*array<string>
Header Parameters
x-Store-Id?string
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://api.ecomiq.pe/api/v1/catalog/products/7204558912004322039/variants?optionKey=Polo+de+algod%C3%B3n+Azul+%2F+M&optionValue=Polo+de+algod%C3%B3n+Azul+%2F+M" \ -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", "price": 59.9, "trackInventory": true, "available": 12 } ], "hasNextPage": false, "nextCursor": null, "totalCount": 1, "options": [ { "key": "color", "name": "Color", "values": [ "Azul" ] }, { "key": "talla", "name": "Talla", "values": [ "M" ] } ]}