Commerce

Delete variant

Delete a variant.

A variant that has sold is deactivated instead. A product keeps at least one: 409 last_variant.

Path Parameters

product*string

A product id. Anything that is not one is 404 resource_missing.

Formatuuid
variant*string
Formatuuid

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

curl -X DELETE 'https://v3.ghala.io/v1/commerce/shop/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/variants/497f6eca-6276-4993-bfeb-53cbbbba6f08'
{  "message": "product deleted",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}