Most customer loyalty program advice assumes you own the checkout. Ecommerce stores get a clean event stream: account created, cart updated, order paid. Offline brands do not. A spice maker, a paint company or a lubricant brand sells through thousands of retailers it never sees, and the end customer stays anonymous.

That gap is why many FMCG and D2C brands in India have moved to product level loyalty: a unique code on each pack that the buyer scans after purchase. Here is how that model works under the hood, and what to get right if you are building or choosing one.

The core loop

  1. The brand generates a batch of unique codes and prints them under a scratch layer on each unit.
  2. The customer buys the product, scratches the label and scans the QR.
  3. The system validates the code, marks it used and credits a reward to the customer's wallet.
  4. The customer withdraws to a bank account through UPI or redeems in a rewards store.

Each step sounds trivial. Each one hides a failure mode.

1. Code generation is a security problem

If codes are sequential or guessable, someone will script through them. Use cryptographically random identifiers with enough entropy (64 bits or more), store a hash rather than the raw value where you can, and tie every code to a batch, SKU and campaign. The batch link matters later, when a distributor reports a leak and you need to void a range.

import secrets, hashlib def new_code() -> tuple[str, str]: raw = secrets.token_urlsafe(12) # ~96 bits of entropy digest = hashlib.sha256(raw.encode()).hexdigest() return raw, digest # print raw, store digest 

2. Single use must be atomic

Two people scanning the same leaked code in the same second should not both get paid. Do the redemption in one conditional write, not with a "check, then update" pattern in application code.

UPDATE reward_codes SET redeemed_by = $1, redeemed_at = now() WHERE code_hash = $2 AND redeemed_by IS NULL RETURNING campaign_id, reward_amount; 

If no row comes back, the code was already used or never existed. Either way, no payout.

3. Rewards should land instantly

The emotional payoff of a scan reward is the instant credit. Payouts that arrive a week later feel like a rebate form, and rebate forms have terrible completion rates. Credit the in app wallet in real time, then handle the bank transfer asynchronously with retries and an idempotency key on every payout API call, so a timeout never turns into a double payment.

4. Fraud checks without killing the experience

Signals worth watching:

  • Many scans from one device or one UPI ID in a short window
  • Scans far away from the region the batch was shipped to
  • Codes from the same batch redeemed in strict sequence

Flag and hold suspicious wallets rather than hard blocking them. A genuine buyer who gets rejected is a lost customer and probably a one star review.

5. The scan doubles as product authentication

Because every code is unique and single use, a scan also tells the buyer whether the product is genuine. A code that is unknown, or already used, is a counterfeit signal. The brand gets a map of where fakes show up, and the customer gets a reason to scan even when the reward is small.

6. Make the program measurable

A good loyalty setup answers questions the brand could never answer before:

  • Which retailers and pin codes drive repeat purchases
  • How long the gap is between a first and second purchase
  • Which reward value actually changes behaviour

Log every scan as an event with SKU, batch, wallet ID and (with consent) location. That data is often worth more than the cashback itself.

Build or buy?

Building all of this means code generation, printing workflows, a consumer app or PWA, a wallet, UPI payout integration, fraud rules and a brand dashboard. For most brands it is faster to use a platform built for it. If you are evaluating a customer loyalty program for offline products in India, Assured Rewards is a useful reference: partner brands print unique QR codes on packs, buyers scan to get instant cashback in a wallet, and the balance can be withdrawn through UPI or redeemed for gift cards. It also shows how the scan works as a genuine product check.

Takeaway

Offline loyalty is no longer a punch card problem. It is an event driven system with security, payments and analytics built in. Get code generation, atomic redemption and instant payouts right, and the rest is marketing.