Skip to main content

Delete Voucher

Delete an existing voucher or gift card.

Endpointโ€‹

DELETE /v1/vouchers/{id}

Authenticationโ€‹

Requires an API key with the promotions:write scope.

Path Parametersโ€‹

ParameterTypeDescription
idintegerThe voucher ID

Example Requestโ€‹

curl -X DELETE "https://app.equipdash.com/api/v1/vouchers/1" \
-H "Authorization: Bearer YOUR_API_KEY"

Responseโ€‹

Returns 204 No Content on success.

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
403insufficient_scopeAPI key lacks promotions:write scope
403forbiddenVoucher belongs to different supplier
404resource_not_foundVoucher does not exist

Notesโ€‹

  • Deleting a voucher is permanent and cannot be undone
  • Historical usage records are preserved for reporting purposes
  • Consider setting the status to inactive instead if you want to preserve the voucher
  • Refunded or used vouchers should typically be kept for audit purposes