BizKitHub
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

JSON body

Request body

application/json
codestringRequired

Voucher code to deactivate.

ExampleSUMMER2024

Response schema

1 status code documented

200SuccessDeactivation result.
successbooleanRequired

Whether deactivation was successful.

Response example

application/json
{
  "success": false
}

Request example

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"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key