Skip to content
CAQAGiftBalance Demo and enquiry

In designIllustrative example, synthetic data

Trace voucher liability from purchase to merchant payout

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.

Received again

Voucher
GV-S-0042
Merchant
Tide Café
Request ref
RQ-7002
Amount
$28.50

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.

Send requests to voucher GV-S-0042 and watch where the $100 sits

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.

Owed to the holder
$36.50
Owed to merchants
$63.50
Paid to merchants
$0.00
Adds up to
$100.00

Try a request

⊘ Duplicate: nothing moved. RQ-7002 for $28.50 was already applied. The same answer is returned and the remaining value stays $36.50.

Request log

Every message is kept, including the ones that moved nothing.

  1. ISSUEVoucher issued at $100.00✓ Applied
  2. RQ-7001Lantern Books $35.00✓ Applied
  3. RQ-7002Tide Café $28.50✓ Applied
  4. RQ-7002Tide Café $28.50, sent again⊘ Duplicate, no change

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.

Why one record matters before a hundred

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 life of a voucher in four moves

  1. 1. Issue

    The voucher is sold. The full value is owed to the holder.

    Holder +$100.00

  2. 2. Redeem

    A merchant accepts part or all. That part is now owed to the merchant.

    Holder to merchant

  3. 3. Reconcile merchant

    Each merchant’s redemptions and reversals are matched to its own claim.

    Owed, checked

  4. 4. Settle

    A settlement lists the redemptions it pays. A redemption already in a settlement cannot join another.

    Owed to paid

For shopping precincts and multi-merchant voucher operators

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.