DocsAPI ReferenceVoucher/bff/voucher/deactivate
postVoucherAdmin BFF

/bff/voucher/deactivate

Deactivates a voucher by setting its active flag to false. This is a soft delete - the voucher remains in the database but cannot be used. Use update endpoint with active: true to reactivate.

VoucherpostBffVoucherDeactivate

Parameters

1 body

1 total
Body · 1
codestringRequired

Voucher code to deactivate.

Request

POST /bff/voucher/deactivate

post
curl -X POST "https://api.bizkithub.com/bff/voucher/deactivate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "code": "SUMMER2024"
}'

Response

Deactivation result.

{
  "success": false
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key