First time received
- Voucher
- GV-S-0042
- Merchant
- Tide Café
- Request ref
- RQ-7002
- Amount
- $28.50
Applied. Balance $65.00 to $36.50.
The café terminal sends the redemption.
First time received
Applied. Balance $65.00 to $36.50.
The café terminal sends the redemption.
Received again
Already counted. Balance stays $36.50.
The reply was lost, so the terminal sends it again.
One purchase, two messages. Count both and the voucher loses $28.50 that was never spent. GiftBalance is being designed so a duplicate redemption request changes the remaining value only once.
Every dollar of this voucher is in exactly one of three places: still owed to the holder, owed to a merchant, or paid to a merchant. After every message the three add back to $100.00.
⊘ Duplicate: nothing moved. RQ-7002 for $28.50 was already applied. The same answer is returned and the remaining value stays $36.50.
Every message is kept, including the ones that moved nothing.
How a duplicate is recognised in this sample: same voucher, same request reference. A till that gives a second send a brand new reference would look like a new purchase, which is why the new-reference button moves money. How references are created is a design question to settle for each merchant’s system.
A precinct sells a voucher today and pays shops later. In between, the money is a promise: part to the person holding the voucher, part to the shops that have already accepted it. When a message arrives twice, a reversal is keyed late or a payout is run again, the totals can drift apart, and someone has to rebuild the history from till slips.
The design starts from one voucher and keeps each event once, with what it moved. The aim is to make redemption and settlement discrepancies easier to reconcile without using the same voucher event twice. It does not decide how your books treat unredeemed value. Your accountant does.
The second message is not a second sale.
The voucher is sold. The full value is owed to the holder.
Holder +$100.00
A merchant accepts part or all. That part is now owed to the merchant.
Holder to merchant
Each merchant’s redemptions and reversals are matched to its own claim.
Owed, checked
A settlement lists the redemptions it pays. A redemption already in a settlement cannot join another.
Owed to paid
For the people who sell one voucher that many shops accept, such as trader associations, tourism associations and precinct managers. Six records are planned: voucher, issue, redemption, merchant, settlement and reversal.