Skip to content

Reward Customers with Airtime and Data

Turn surveys, referrals, and loyalty milestones into instant airtime or data rewards on MTN, Telecel, and AT.

Airtime and data are rewards everyone can use, with no bank account, voucher code, or app download needed. This guide uses the Sales APIs to send rewards automatically from a pre-funded wallet, with budget limits, duplicate protection, and delivery confirmation through Sales Status.

Overview

Unlike a top-up shop, there is no payment step: your business funds the wallet in advance and pays each reward from it. Common campaigns include:

Surveys and research

Thank respondents with GHS 2 of airtime the moment they submit.

Referrals

Reward both people once the referred customer completes their first transaction.

Loyalty milestones

Send a data bundle on a customer’s tenth order or their app anniversary.

Training and field work

Give agents or students a data bundle when they finish a module or a site visit.

Before you begin

Create a Sell on Our Platform Service in the Moolre App, fund its linked wallet, and send that wallet as accountnumber on every Sales request. Special payment pricing is available for businesses sending airtime and data. See the Sales guide.

Reward flow

  1. Customer qualifies

    A survey is submitted, a referral converts, or a milestone is reached.

  2. Check eligibility and budget

    One reward per person per campaign, within the campaign budget and wallet balance.

  3. Send the reward

    Call the Airtime or Data API from the wallet linked to your sales service.

  4. Confirm delivery

    Sales Status confirms the reward was sent, then you notify the customer.

Design the campaign

  • Choose the reward: airtime works on every network for any amount from GHS 1.00. Data needs a bundle ID per network; pick one from Bundles for each network you support.
  • Set a budget: decide the total campaign spend and stop issuing rewards when it is reached. Keep the wallet funded above that amount.
  • Build a stable reference: derive it from the campaign and the person, such as RWD-survey-oct26-1042. The same person can never be rewarded twice, even if your job runs again.
  • Collect the right network: the reward goes to the network you send as channel, so ask for it or detect it when you collect the phone number.

Send rewards

Run rewards from a background queue rather than inside the request that qualified the customer. The job claims the reference, checks the budget and the wallet balance with Account Status, and then calls Airtime or Data.

Process rewards one at a time or in small batches. A large campaign then stays easy to pause, audit, and resume.

const axios = require('axios');​// Wallet linked to your Sell on Our Platform Service. It funds every reward.const REWARDS_WALLET = process.env.MOOLRE_REWARDS_WALLET;​const moolre = axios.create({  baseURL: 'https://api.moolre.com',  headers: { 'X-API-USER': process.env.MOOLRE_USER, 'X-API-KEY': process.env.MOOLRE_API_KEY },});​// Example campaign: GHS 2.00 airtime per completed survey, GHS 5,000 budget.const campaign = { id: 'survey-oct26', product: 'airtime', amount: 2, budget: 5000 };​async function grantReward(userId, phone, network) { // network: MTN, TELECEL, or AT  // 1. One reward per person per campaign. The reference doubles as a lock:  //    the Sales API also rejects a reused external reference in the same wallet (ASL08).  const reference = `RWD-${campaign.id}-${userId}`;  const created = await db.rewards.insertIfAbsent({ reference, userId, phone, network, status: 'queued' });  if (!created) return { skipped: 'already rewarded' };​  // 2. Stay within the campaign budget and the wallet balance.  const spent = await db.rewards.sumAmount({ campaignId: campaign.id, status: ['queued', 'sending', 'sent'] });  const { data: account } = await moolre.post('/open/account/status', { type: 1, accountnumber: REWARDS_WALLET });  if (spent + campaign.amount > campaign.budget || account.data.balance < campaign.amount) {    await db.rewards.update(reference, { status: 'on_hold' });    return { held: 'budget or balance' };  }​  // 3. Send the reward. For data, send bundle instead of amount.  await db.rewards.update(reference, { status: 'sending' });  try {    const { data } = await moolre.post('/open/sales/airtime', {      type: 1,      channel: network,      receiver: phone, // e.g. 233240000000      amount: campaign.amount.toFixed(2),      currency: 'GHS',      accountnumber: REWARDS_WALLET,      externalref: reference,      reference: `Thanks for completing our survey`,    });    await db.rewards.update(reference, { saleCode: data.code }); // ASL11 = in progress  } finally {    // After a timeout or ASL06, never resend: check the status instead.    queue.add('check-reward', { reference }, { delay: 15000 });  }}​// 4. Confirm with Sales Status, using the same reference.async function checkReward(reference) {  const { data } = await moolre.post('/open/sales/status', {    type: 1, accountnumber: REWARDS_WALLET, idtype: 1, id: reference,  });​  switch (data.data?.txstatus) {    case 1: return markSent(reference); // e.g. send a thank-you SMS    case 2: return db.rewards.update(reference, { status: 'refunded', refundId: data.data.refundid });    case 0: return queue.add('check-reward', { reference }, { delay: 30000 });    default: return db.rewards.update(reference, { status: 'needs_review', saleCode: data.code });  }}

Handle every outcome

A sale response of ASL11 means in progress, not delivered. Confirm each reward with Sales Status and map data.txstatus to a reward state:

0

Pending

Check Sales Status again later. Do not resend the reward.

1

Sent

Mark the reward as paid and send a thank-you SMS.

2

Failed and refunded

The wallet was refunded. Retry once with a new reference, or offer a different reward.

3

Not found

No sale exists for that reference. Flag the reward for review.

Once a reward is sent, a short SMS such as "Thanks for your feedback! GHS 2 airtime is on its way" tells the customer where the reward came from.

Prevent abuse

Free airtime attracts fraud. Build these checks in before you launch:

  • Verify the phone number: confirm ownership with an SMS one-time code before the number can receive a reward.
  • One reward per person: enforce it with the stable reference and a unique constraint in your database, not only in application code.
  • Limit velocity: cap rewards per phone number, device, and IP address per day, and hold unusual spikes for review.
  • Delay referral rewards: pay only after the referred customer completes a real action, such as a first payment.
  • Never double-send: after a timeout or ASL06, check Sales Status with the original reference. Only a final txstatus of 2 makes it safe to send again with a new reference.
  • Watch the wallet: alert when the balance drops near the remaining campaign budget, and pause the queue instead of letting sales fail.