Deletes product category as per entered categoryGuid. If successful, returns the code 200.
If the category does not exist within the e-shop, a 404 code is returned.
If the category cannot be deleted, because it is used by some product or has children, a 409 code is returned.
If the category tree is being changed by another process at the same time (e.g. a running import), a 423 code is returned. Retry later.
Optional parameter deleteUsed allows deleting categories used by products. The products are marked as changed.
Optional parameter deleteChildren allows deleting categories with child categories. The children are deleted too.
Security
shoptetAccessToken or shoptetPrivateApiToken
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/categories/{categoryGuid}
- https://api.myshoptet.comhttps://api.myshoptet.com/api/categories/{categoryGuid}
curl -i -X DELETE \
'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/categories/5c499200-70ac-11e9-9208-08002774f818?deleteUsed=true&deleteChildren=true' \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }