cURL
curl --request DELETE \ --url https://{cluster}.voucherify.io/v1/categories/{categoryId} \ --header 'Authorization: Bearer <token>' \ --header 'X-App-Id: <api-key>' \ --header 'X-App-Token: <api-key>'
{ "code": 404, "key": "not_found", "message": "Resource not found", "details": "Cannot find category with id example_category", "request_id": "v-0b8b49205f902176c9", "resource_id": "example_category", "resource_type": "category" }
Delete a category by the category ID.
The access token received from the authorization server in the OAuth 2.0 flow.
Unique category ID assigned by Voucherify.
"cat_0bb81a481615a37b5e"
No content is returned.
Was this page helpful?