- Created a voucher
- Activated it after payment
- Reserved and charged part of its balance
- Refunded the charge
- Recharged the voucher with additional credit
1. Set up Clients and Client Groups
Before your application can access the Vouchers API, it must be registered as a client. Start in the Voucher Cloud Admin UI. A client group defines the permissions available to one or more clients, such as POS terminals or online shops.| Scope | Permission |
|---|---|
read | Read a single voucher |
read-lists | Read voucher lists |
read-secrets | Read voucher code and pin |
use | Activate, reserve, charge, and cancel |
manage | Create and delete vouchers |
update | Update vouchers |
recharge | Recharge a voucher |
2. Connect your Client
Each client needs OAuth credentials before it can authenticate with the API. In the Admin UI:- Select the Connect button (Wi-Fi icon) for your client.
- Copy the generated connection PIN. The PIN is valid for 30 minutes.
client_id and client_secret. Store both securely, as you’ll use them to request access tokens.
3. Request an Access Token
Use the OAuth 2 Client Credentials flow to get an access token:client_type is optional and used for internal statistics only (max 32 chars).
Include the returned access token in the Authorization header of every subsequent request:
The Vouchers API uses its own OAuth server. Access tokens issued by the JTL Platform or ERP API cannot be used with the Vouchers API.
4. Create a Voucher
Create a voucher with an initial balance.id and code. You’ll use them throughout the remaining steps.
5. Activate the Voucher
New vouchers are created with theinactive status and cannot be redeemed until they are activated.
Typically, activation happens after the customer has completed payment.
6. Redeem a Voucher
Redeeming a voucher consists of two operations:- Reserve the amount to verify that sufficient balance is available.
- Charge the reservation to deduct the reserved amount from the voucher.

Create a Reservation
Reserve an amount against the voucher. This locks the voucher and confirms sufficient balance.id.
Reservations expire after 30 minutes. Creating a new reservation for the same voucher automatically replaces the existing one.
Charge the Reservation
Execute the deduction against the reservation:id, which you’ll use if the charge needs to be refunded.
7. Refund a Charge
If an order is cancelled or returned, refund all or part of the original charge.type: refund.
8. Recharge a Voucher
You can add additional credit to an existing voucher, for example as store credit or part of a loyalty programme.type: recharge.
What’s Next?
Error Codes
Reference for Vouchers API error codes and their meanings.
Voucher API Reference
Full endpoint reference for all Vouchers API operations and parameters.