Skip to main content
DELETE
/
v1
/
validation-rules
/
{validationRuleId}
Delete Validation Rule
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/validation-rules/{validationRuleId} \
  --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 validation_rules with id val_TGN3rqZ8vEm",
  "request_id": "v-0ae3b3436346b778be",
  "resource_id": "val_TGN3rqZ8vEm",
  "resource_type": "validation_rules"
}

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

validationRuleId
string
required

A unique validation rule ID.

Example:

"val_TU4de3EP4dlL"

Response

Returns no content if deletion is successful.