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.
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.