Product variants
List product variants
GET /stores/{storeResourceId}/products/{productResourceId}/variants
GET
/stores/{storeResourceId}/products/{productResourceId}/variantsReturns the variants of one product, most recently updated first.
When to use: To see the sizes, colors or options a product has, with their price and stock.
When not to use: To read one variant use get_product_variant.
Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
storeResourceId*string
Identifier (resource_id) of the store.
productResourceId*string
Identifier (resource_id) of the product the variant belongs to.
Query Parameters
page?integer
The collection page number
Default
1itemsPerPage?integer
The number of items per page
Range
0 <= value <= 50Default
30Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/stores/acme-shop/products/sneaker-01/variants" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "resource_id": "string", "title": "string", "sku": "string", "price": 0, "inventory_quantity": 0, "image_url": "http://example.com", "url": "http://example.com", "product": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }]