Connect your till to Bronora
This guide is for the company that looks after your till, booking or EPOS system. With a till key from a Bronora business, their system can check a gift voucher, redeem part or all of it, and void a redemption when a sale is cancelled.
Before you start
- The business creates a till key in Bronora under Team, then Till connections. Each key belongs to one location and is shown once.
- Send the key from your server or till back office in the
Authorizationheader. Never put it in a web page or a customer app. - Amounts are whole numbers in the smallest unit of the currency, so €40.00 is
4000. - Every call is made over HTTPS to
https://bronora.com/api/v1/tilland answers in JSON.
A GET to /api/v1/till returns the business, location and currency the key belongs to, which is a quick way to test a new key.
The three calls
1. Check a voucher
Send the code printed on the voucher, the full text of its QR code, the order number from the receipt email, or the email address it was bought with or sent to. An email or order number can return several vouchers.
curl https://bronora.com/api/v1/till/vouchers/lookup \
-H "Authorization: Bearer bronora_till_..." \
-H "Content-Type: application/json" \
-d '{"code": "Q3RT-7XCM-M"}'{
"vouchers": [
{
"code": "Q3RT-7XCM-M",
"product": "Dinner for two",
"productKind": "monetary",
"originalMinor": 15000,
"balanceMinor": 6500,
"balanceVersion": 2,
"currency": "EUR",
"expiresAt": "2031-11-17T00:00:00.000Z"
}
]
}balanceMinor is what can be redeemed now. Only vouchers that can be used are returned. A voucher that is expired, used up, refunded or cancelled answers with an error instead.
2. Redeem
Send up to ten vouchers for one sale, each with the amount to take from it. What is left stays on the voucher. Put your receipt or sale number in reference so the redemption can be matched to the till at the end of the day.
curl https://bronora.com/api/v1/till/redemptions \
-H "Authorization: Bearer bronora_till_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: sale-48213-voucher-1" \
-d '{
"vouchers": [
{"code": "Q3RT-7XCM-M", "amountMinor": 4000, "expectedBalanceVersion": 2}
],
"reference": "Receipt 48213"
}'{
"redemption": {
"id": "0d3f6c1e-6a52-4d0f-9a43-1f0f5d0a7c11",
"totalMinor": 4000,
"currency": "EUR",
"createdAt": "2026-11-17T12:30:00.000Z",
"replayed": false
}
}The Idempotency-Key header is required: 12 to 160 letters, digits, dots, colons, hyphens or underscores, and unique to the sale. If you do not get an answer, send the same request again with the same key. Bronora redeems once and answers the retry with "replayed": true.
expectedBalanceVersion is optional. Send the value from the check and the redemption is refused with balance_changed if anyone used the voucher in between. A redemption is all or nothing: if one voucher cannot cover its amount, none are redeemed.
3. Void a redemption
When a sale is cancelled, reverse the redemption and the value returns to the voucher. A key can only reverse redemptions it made. Sending the call twice is safe.
curl https://bronora.com/api/v1/till/redemptions/0d3f6c1e-6a52-4d0f-9a43-1f0f5d0a7c11/reverse \
-H "Authorization: Bearer bronora_till_..." \
-H "Content-Type: application/json" \
-d '{"reason": "Sale voided on the till"}'When a call is refused
A refused call answers with an HTTP status and an error code. Show staff the message, and quote the requestId if you write to us.
{
"error": {
"code": "insufficient_balance",
"message": "The voucher balance is too low.",
"requestId": "5b0a..."
}
}| Status | Code | What it means |
|---|---|---|
| 401 | till_key_required, till_key_invalid | The key is missing, mistyped or has been removed in Bronora. |
| 400 | invalid_request, voucher_code_invalid, idempotency_key_required | The request is not in the shape shown here. |
| 404 | voucher_not_found, redemption_not_found | No voucher of this business matches, or the redemption was not made by this till. |
| 409 | insufficient_balance, voucher_expired, voucher_unavailable, voucher_empty | The voucher cannot cover the amount. Nothing was redeemed. |
| 409 | balance_changed | The balance moved since you checked it. Check again and show the new balance. |
| 409 | refund_pending | Part of the balance is held for a refund in progress. |
| 409 | idempotency_conflict | This Idempotency-Key was already used for a different redemption. |
| 409 | redemption_not_reversible | The voucher has since been refunded, disputed or cancelled. |
| 429 | rate_limited | More than 120 requests in a minute from one till. |
Redemptions made by a till show in the business's Bronora workspace and exports with the till's name and your reference. Staff can still redeem on a phone or tablet alongside a connected till.
Questions while you build? Write to us and a person will answer.