Skip to content

Product variant deletion

Request

Deletes product variant as per entered code. If this is the last product variant, the entire product is deleted.

If successful, returns the code 200.

If the product variant does not exist within the e-shop, a 404 code is returned.

If the product variant cannot be deleted, because it is part of set or used as a gift to some product, a 409 code is returned.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired

product variant code.

Example:112
Headers
Content-Typestringrequired
Default:"application/json"
curl -i -X DELETE \
  https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/code/112 \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
dataobject or nullrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": {}, "errors": [ {} ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }