Skip to main content
DELETE
/
v1
/
vouchers
/
{code}
Delete Voucher
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/vouchers/{code} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
This response does not have an example.

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

code
string
required

A unique code that identifies the voucher.

Example:

"2CpRCE2c"

Query Parameters

force
boolean

If this flag is set to true, the voucher will be removed permanently. If it is set to false or not set at all, the voucher will be moved to the bin. Going forward, the user will be able to create another voucher with exactly the same code.

Response

Returns no content if deletion is successful.

⌘I