Easymailing
Product variants

Delete a product variant

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

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

Permanently deletes a variant. Orders that included it are kept, without the link to the variant.

When to use: When the option is removed from the shop.

Permissions: Requires the manager role or higher, or the marketing.audiences.delete 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 DELETE "https://api.easymailing.com/stores/acme-shop/products/sneaker-01/variants/sneaker-01-42" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty