Explainer

How a rewards system fits together

A rewards system has five parts: catalogue, rules engine, ordering, fulfilment and reconciliation. What each does, who owns it, and where each one breaks.

A rewards system turns “this user has earned something” into “this user has a gift card they can spend”, with a record of the money at every step. It has five parts: a catalogue, a rules engine, ordering, fulfilment and reconciliation.

The five parts at a glance

Part The question it answers Usually owned by What goes wrong
Catalogue What can we give? The provider, copied by you A user picks a card the brand has paused
Rules engine Who gets what, and when? You Rewards go to the wrong users, or past the budget
Ordering Has the reward been bought? Both A retry buys the card twice
Fulfilment Does the user have it? The provider, shown by you The code never reaches the user
Reconciliation Does every reward match the money? Both A failed order stays on the books as spent

The catalogue: what can be given

The catalogue is the list of brands a programme can give, with the rules each brand sets. On a gift card API, each brand entry carries:

  • Amounts. A fixed list, such as ₹250, ₹500 and ₹1,000, or any amount within a range.
  • Limits. The smallest and largest order, the most cards per order and the most of each amount.
  • Status. Active, or paused so that no card can be issued.
  • Terms and redemption. Where the card works (online, in store or both), how to use it and its full terms.

Brands change all of this. A good catalogue sync has two halves: a full refresh at least once a week, and daily where you can, plus a webhook that reports changes as they happen. On Hubble’s API the brand-updated webhook covers status, amounts and limits; new brands and categories arrive only through the full refresh. Hide a paused brand from users the moment you see it, or their orders will fail.

The catalogue is also where you choose what to show. A food delivery app might show only food and grocery brands; a bank might show premium brands to one card tier. In Hubble’s SDK this is set per group of users, called a cohort, which can see its own brands and discounts.

The rules engine: who gets what

The rules engine decides who earns a reward, how much, and when. It sits on your side, because only you know your users and their activity.

Typical rules:

  • Eligibility. Which users, cards or employees can earn.
  • Earn rate. Points per ₹100 spent, or a fixed card for a milestone.
  • Conversion. How many points buy ₹1 of gift card value.
  • Caps. The most a user can earn in a day or a month.
  • Budget. The most the whole programme can spend.
  • Abuse checks. Blocks on duplicate accounts and self-referrals.

A rules engine can be a few lines of code or a full loyalty platform. Either way, its output is a decision: this user gets a ₹500 card of their choice. Everything after that is fulfilment of that decision. With a hosted loyalty portal, you give the provider your points rules and it applies them at redemption; see API, SDK or portal.

Ordering: buying the reward

Ordering turns a decision into a paid order. Three things make it safe.

  1. A unique reference number on every order. The provider keeps one order per reference, so a retry after a network error cannot buy the card twice. The reference stays used even if the order fails, so a real retry gets a new one.
  2. Checks before sending. Amounts are checked against the brand’s limits from your catalogue copy, so you do not send orders that will be refused.
  3. Funds in place. Where orders are paid from a prepaid wallet, as on Hubble’s API, an order is refused when the balance is too low. Watch it: Hubble’s API sends a webhook when the balance falls below a threshold you agree.

Providers also set limits on how much you can order, by value and by count, per hour, day and month. On Hubble’s API these come back as a failure reason in the order, not as a rate-limit error, so read the response body. Agree higher limits before a big campaign.

Fulfilment: getting the code to the user

Fulfilment is issuing the card and delivering it. An order either returns its codes in the response or is marked as processing, with the codes to follow.

For a processing order, do two things at once. Listen for the webhook that says the order has finished, and check the order yourself a few times as a fallback. Hubble’s docs give the schedule for these checks and the point at which to raise an order with support.

Delivery is then either yours or the provider’s. You can show the code in your own app, or have the provider send it by SMS, WhatsApp or email, which Hubble’s API offers as a paid add-on with a resend option. Show what the brand’s card type needs: some cards need a card number and PIN, some only one of them.

Reconciliation and settlement: proving the money

Reconciliation checks that every reward given matches money spent, and that nothing was paid for twice or not at all. Three records describe the same money:

  • Your ledger. Every reward your rules engine granted, with your reference number.
  • The provider’s orders. Every order, its status and its cards.
  • The money. Your wallet statement or invoices.

Match them by reference number, every day. The mismatches that matter:

Mismatch Usual cause What to do
Granted, but no order The order call failed and was never retried Retry with a new reference
Order failed, but money gone The reversal has not happened yet Check the wallet statement; on Hubble’s API a failed order’s debit is reversed on its own
Two orders for one reward A retry with a new reference after a timeout Look up the first reference before retrying
Order still processing A missed webhook Fetch the order; raise it if it is past the time limit

Settlement is the money between the provider and each brand. Hubble settles with every brand and sends you one reconciliation report, so you reconcile one supplier instead of hundreds. Keep your own records anyway: a programme whose finance team can trace every reward to a reference number is one an auditor can check.

Where to go next

If you are building this on an API, what a rewards API is walks through one order. If you are choosing who runs the catalogue, ordering and fulfilment for you, use how to choose a rewards provider. To talk it through with us, get in touch.

Questions people ask

What is a reward catalogue?

The list of rewards a programme can give. For gift cards, each entry is a brand with the amounts it allows, its limits, whether it is active, its terms and how to redeem it. It changes as brands are added, paused or change their amounts.

What does a rules engine do in a loyalty programme?

It decides who earns a reward, how much, and when: eligibility, earn rates, caps per user, budgets and which users see which rewards. It runs on the business side, because only the business knows its users and its spend.

What is a fulfilment pipeline?

The steps from a paid order to a reward in the user's hands: issuing the gift card code, delivering it in an app or by SMS, WhatsApp or email, and resending it if delivery fails.

Why do rewards need reconciliation?

Because three records describe the same money: your ledger of rewards given, the provider's orders, and your wallet or invoice. Matching them by reference number finds failed orders that were charged, duplicates, and rewards that were promised but never issued.

Sources

Checked against these pages on 29 Nov 2026. First published 14 Jan 2026. Updated 29 Nov 2026.

Add gift cards and rewards to your product

One API or a no-code store, with 500+ brands.