/bff/voucher/update
Updates an existing voucher. Only provided fields will be updated; omitted fields remain unchanged. Use null to explicitly remove optional values.
Parameters
11 body
codestringRequiredVoucher code to update (identifier, cannot be changed).
typestringNew discount type.
valuestringNew discount value.
usageLimitnumber | nullNew usage limit. Set to null to remove limit.
notestringNew internal note.
activebooleanNew active status.
isOrderSingletonbooleanNew singleton flag.
hasValidityPeriodbooleanUI-only flag from the admin form: when false, validFrom/validTo are cleared regardless of their values.
validFromstring | nullNew validity start. Set to null to remove.
validTostring | nullNew validity end. Set to null to remove.
costnumber | nullNew voucher cost (organisation default currency). null = ratio unknown (1:1 fallback on next credit application); 0 = explicitly gifted; positive number = real money equivalent.
Request
POST /bff/voucher/update
curl -X POST "https://api.bizkithub.com/bff/voucher/update" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"code": "SUMMER2024",
"type": "percentage",
"value": "15",
"note": "example_note",
"active": false,
"isOrderSingleton": false,
"hasValidityPeriod": false
}'Response
Update result.
{
"success": false,
"code": "example_code"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.