Prerequisites
- A test API key. See Authentication.
- A registered webhook endpoint. See Webhook Setup to register your URL and obtain your signing key.
Step 1: Create a redemption
Create a redemption server side using your secret key. The minimum required fields aretype and source.pin or source.token. Conform your UI to the required source attributes per type. See the source schema.
amount and currency are optional. Omit both to redeem the voucher’s full value. The example below sets an explicit amount; remove the amount and currency fields to redeem the full value instead.confirmed and the redeemed_amount.
Testing
Use the following 16 digitsource.pin (or source.token) to test voucher redemption.
The following values are redeemable with all three providers for the indicated amount. Any source.pin besides the values below results in a failure.
Use
77777777777777 to test partial redemption. It carries a redeemable balance of 10000 (minor units). Requesting an amount lower than 10000 settles the redemption as confirmed and leaves the remaining value, returned as a change voucher where the provider supports it. See Providers for provider support.
Next steps
- Handle the
redemption.confirmedwebhook to react to the confirmed redemption server side. - Review the full Redemption object.

