Skip to main content
DELETE
/
v1
/
categories
/
{categoryId}
Delete Category
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"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

categoryId
string
required

Unique category ID assigned by Voucherify.

Example:

"cat_0bb81a481615a37b5e"

Response

No content is returned.