Redeem voucher
redeem_voucherRedeems a voucher code and adds its amount to the account's credit balance. Use it when the user gives a voucher code to apply. A redemption cannot be reversed and uses up one of the voucher's limited redemptions. Each voucher works once per account, so repeating the call adds nothing and returns an error. It fails for an unknown, inactive, expired or used-up code, or when the voucher's currency differs from the account's billing currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Voucher code to redeem |