Easymailing
Product variants

Get a product variant

GET /stores/{storeResourceId}/products/{productResourceId}/variants/{resourceId}

GET/stores/{storeResourceId}/products/{productResourceId}/variants/{resourceId}

Returns one variant with its price, SKU and stock.

When to use: To check the price or stock of a variant you already know.

When not to use: To list variants use list_product_variants.

Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.

Authorization

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.

resourceId*string

Identifier (resource_id) of the variant: the one you chose when you created it with create_product_variant.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42" \  -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"}