Parameters
JSON body
Request body
application/jsoncodestringRequiredVoucher code to update (identifier, cannot be changed).
SUMMER2024typestringOptionalNew discount type.
percentagevaluestringOptionalNew discount value.
15usageLimitnumber | nullOptionalNew usage limit. Set to null to remove limit.
notestringOptionalNew internal note.
activebooleanOptionalNew active status.
isOrderSingletonbooleanOptionalNew singleton flag.
singleUsePerCustomerbooleanOptionalWhen true, each customer may redeem this voucher on at most one order. Only usageLimit + validity apply when false.
redeemableAtOrderbooleanOptionalWhen true, voucher may be redeemed on the reservation / order form.
redeemableAtVoucherPagebooleanOptionalWhen true, voucher may be redeemed on the voucher-redeem page.
hasValidityPeriodbooleanOptionalUI-only flag from the admin form: when false, validFrom/validTo are cleared regardless of their values.
validFromstring | nullOptionalNew validity start. Set to null to remove.
validTostring | nullOptionalNew validity end. Set to null to remove.
costnumber | nullOptionalNew voucher cost (organisation default currency). null = ratio unknown (1:1 fallback on next credit application); 0 = explicitly gifted; positive number = real money equivalent.