MobiariDocs

Loyalty, cashback and referrals

Points and cashback on purchases that become store credit, tiers with perks, a referral code that gives credit to the customer who refers and to the friend, and balances brought from another programme.

The loyalty program has three parts you switch on separately: points, which customers earn when they buy and turn into store credit, cashback, a share of what customers pay that comes back as store credit by itself, and referrals, where a customer shares a code and, when a friend makes a first purchase with it, both get credit. On top of them, tiers (for example Bronze, Prata and Ouro) give more points or more cashback, free shipping and a birthday bonus to those who buy more. After this page you can switch the program on, know when points and cashback arrive, follow each customer and bring the balances of a programme you already ran.

Before you start

  • The screen is Grow → Credit and loyalty, in its Loyalty part; the rules sit behind the Program button. Seeing the program needs the View credit and gift cards permission; changing the rules, adjusting points and redeeming points for a customer need Manage credit and gift cards.
  • Everything the program gives becomes store credit in the customer's wallet. Customers spend it at checkout while signed in, as the Gift cards and store credit page explains.
  • The program applies to orders paid after you switch it on. Older orders earn no points and do not count as referrals.

Points

In Grow → Credit and loyalty, choose Loyalty at the top of the screen and click Program. In the Points part, turn on Give points on purchases and set:

FieldWhat it does
Points per R$ 1.00How many points each real paid earns.
Points per redemption and Redemption valueCustomers redeem points in blocks: for example, 100 points are worth R$ 5.00 in credit.
Days to releaseAn order's points can only be used after these days, counted from payment. Pick a period that covers delivery and the right to cancel.
Expire after (months without buying)If a customer goes this long without earning points, the balance expires. Leave it empty for points that never expire.

Click Save program.

How points are counted:

  • On what was paid with money for the goods. Freight does not count, what store credit or a gift card paid does not count, and a gift card order earns no points. The count rounds down.
  • Once per order, when the payment is approved, for the order's customer (counter sales with an identified customer too). Test orders do not count.
  • A refund takes its share back. Refunding a third of the order takes a third of the points; refunding all of it or cancelling takes them all. A return refunded as credit takes them back too. If the refund happens before the points are released, the customer never sees them. If the customer had already redeemed the points, the balance can go negative and climbs back with the next purchases.

Customers redeem points in Minha conta (their account) on your online store, on the Pontos e crédito card, with the Trocar button (the online store speaks Portuguese). The credit lands in the wallet at once. You can also redeem for them on the customer's record (see Follow up and correct).

E-mails when points are earned and redeemed. When an order earns a customer points they get one e-mail with how many, and the day they become usable (when the program has a waiting period). When they turn points into credit, another says how much credit they got. Each is sent once; a refund adjusting the points later sends nothing new. To stop them, turn off E-mail customers when they earn points or cashback, redeem points or change tier, in the Points part of the Program. Points on the product page. With points on, the default theme's product page says, under the price, how many points the purchase earns ("Compre e ganhe cerca de N pontos"), at the tier of the signed-in customer, following the chosen variant. It is approximate: it uses the card price, so a PIX discount or a coupon can change what the order really earns. Gift cards show nothing.

Warning before they expire. When 14 days or less remain before a customer's points expire, they get an e-mail with the balance and the date, once per date. If they earn points again the expiry moves out and the warning is not repeated. The owner of a gift card with a balance that expires in 14 days or less gets the same kind of warning.

A refund that is only recorded (Returned by hand on the order, or Already given back on a return) does not change the points: adjust them by hand if needed.

Cashback

In the Program, in the Cashback part, turn on Give cashback on purchases and set:

FieldWhat it does
Cashback (%)The share of what the customer pays for goods that comes back as credit. For example, 5% of a R$ 200.00 purchase of goods is R$ 10.00. A tier can give more (see Tiers).
Valid for (months)How long cashback stays in the wallet once released. Leave it empty for cashback that never expires.

Cashback uses the same Days to release as points and is counted the same way: on what was paid with money for goods (no freight, nothing paid with credit, never a gift card order), once per order, when the payment is approved, for the order's customer, at the POS too. You can turn on cashback only, points only, or both.

When cashback arrives:

  1. The order is paid and its cashback is to be released, with the date.
  2. After the Days to release, if the order is still paid, the cashback reaches the customer's wallet by itself, as store credit, and works on any purchase while signed in.
  3. Each released amount expires after the months in Valid for (months). A purchase spends the credit that expires first. With 14 days or less left, the customer gets an e-mail with the amount and the date.

A refund takes back its share. Before release, the customer never sees what was taken. After release, the amount leaves the wallet. If the customer already spent the cashback, the difference stays owed and comes out of their next cashback.

Where the customer sees it. In the default theme, with cashback on, the product page and product cards show how much cashback the purchase earns ("R$ X de cashback"), at the signed-in customer's tier; the cart and checkout show what the purchase earns and in how many days it is released. The order page and the payment confirmation e-mail say what the order earned and when it is released, and the customer gets an e-mail when an order earns cashback (the same one as for points).

Tiers

In the Tiers part of the Program, Add tier creates a tier. Each tier has:

FieldWhat it does
NameBronze, Prata, Ouro, as you like.
Spend in the windowWhat the customer must have paid for goods in the window of months to be in the tier. The lowest tier can start at R$ 0.00: every customer is in it.
MultiplierHow many times more points the tier earns, 1 to 5.
Tier cashback (%)The cashback of those in the tier. Empty: the program's.
Free shippingMarks the tier for the store's shipping rules.
BirthdayA bonus in credit (and in points, with points on) on the customer's birthday, once a year. The customer needs a birth date on their record.

Below, Tier window (months) says how many months of purchases count: 12 by default. Each tier needs a spend above the one before, and the multiplier and cashback cannot fall from one tier to the next. Click Save program.

How tiers work:

  • They count what the customer paid for goods in the window, on every channel: the online store, the POS and orders made by hand, less refunds.
  • The tier is worked out on every payment, every refund and every night (when an old purchase leaves the window, the customer can go down a tier). Each change stays in the customer's history and they get an e-mail with the new tier, what it gives and how far the next one is.
  • An order earns at the tier the customer had before it. What was already earned is not recalculated when the tier changes.
  • When you change the tiers, every customer's tier is worked out again in the background, without e-mailing anyone.

A tier's free shipping is kept on each customer's tier for the shipping rules to use; until the shipping rules read that mark, it does not change shipping by itself.

Referrals

In the Program, in the Referrals part, turn on Reward referrals and set the credit For the referrer, the credit For the friend, the Friend's minimum purchase (the goods paid with money, without freight) and the Monthly limit of rewarded referrals per customer (empty: no limit). Click Save program.

How it works for the customer:

  1. In Minha conta, customers see their own link (the store's address with ?ref= and the code) and the code, which starts with their first name.
  2. The friend opens the link. On reaching the cart, the code is applied automatically and the cart shows what they get. Someone who did not come through the link can type the code under Tem um código de indicação? in the cart.
  3. When the friend's order is paid, the referral is Pending. After the points' Days to release, if the order is still paid, both receive the credit and the referral is Rewarded.

When a referral is rewarded, the customer who referred and the friend each get an e-mail with the amount of credit.

A referral gives nothing, and is kept as No reward with the reason, when:

ReasonWhen it happens
The same personThe friend is the customer themselves: the same record, or another with the same e-mail, CPF or mobile number.
Not the friend's first purchaseThe friend already had a paid order in the store.
Below the minimum purchaseThe order did not reach the minimum.
Over the monthly limitThe referrer already reached the month's limit of rewarded referrals.
The friend had already been referredSomeone had already referred the friend.
The order was refundedThe order was cancelled or refunded in full before the release.

In Grow → Credit and loyalty, in the Loyalty part, the list shows each referral ("who referred the friend"), with the date, the order, the status (with the release day, while pending) and the total rewards. The All, Pending, Rewarded and No reward tabs filter the list, and the search finds by Customer or order. Click a referral to see Referred by, the Friend, the Order (with Open order), the rewards and the day it Releases on, was Rewarded on or, with no reward, Why not. On a customer's record, on the Value tab, you see the referrals they made and who referred them.

At the POS

A POS sale with the customer identified earns points and cashback like an online purchase, and counts toward their tier.

  • Identify the customer. In Cliente, pick the customer (search by name, phone or CPF). When you give only the CPF for the receipt (Só CPF na nota), and that CPF belongs to one registered customer, the sale becomes theirs.
  • What the sale earns. On the payment screen the POS says what the sale earns the customer ("Esta venda rende R$ X de cashback e N pontos para o cliente"), and the receipt repeats it with when it is released. What is paid with credit earns nothing.
  • Pay with store credit. With the customer picked and a balance in their wallet, Usar o crédito do cliente pays the sale with the credit (up to what is left). The rest is paid as usual, and the order carries both payments.
  • Pay with a gift card. Type the code in Código do vale-presente and click Usar vale-presente. Case, spaces and dashes do not matter.
  • Credit and gift cards leave the balance as soon as you use them. If you remove that payment before finishing the sale, the amount goes back.
  • Sell a gift card at the counter. A product marked as a gift card shows in the POS catalog as Vale-presente. A sale of gift cards holds no other products, no discount and no credit payment. When the sale is finished the card is issued and its code prints on the receipt, to print or show the customer.

The customer's wallet

In Minha conta on your online store, the Carteira tab (at /conta/carteira) shows the customer:

  • their Crédito na loja (store credit) and how much cashback is waiting, with the next date;
  • Vencimentos: each amount that expires, with what is left of it and the date;
  • the Histórico do crédito (cashback released, purchases, refunds, bonuses, adjustments) and the Cashback das compras;
  • their Pontos, with the redeem button and the history;
  • Seu nível, with a progress bar to the next one, the list of tiers and what each gives, Como você ganha and the Histórico do nível.

The account's Visão geral shows a summary in the Carteira card, with a Ver tudo link.

Customers can also keep the loyalty card in Google Wallet or Apple Wallet on their phone, with points, credit and tier always up to date. See Digital wallet.

Import balances from another programme

If the store already ran a points or cashback club, bring the customers' balances. Import the customers first in Sell → Customers: importing balances does not create customers.

  1. In Grow → Credit and loyalty, in the Loyalty part, click Import balances.
  2. In Source, write where the balances come from (for example, "Old club"). It shows in each customer's history as "Importado de Old club".
  3. In CSV file, choose the spreadsheet, one row per customer with these columns (separated by ; or ,):
ColumnWhat goes in it
email, cpf or telefoneTo find the customer. At least one; the e-mail counts first, then the CPF/CNPJ, then the phone.
pontosThe points balance, a whole number.
cashbackThe cashback balance in reais, such as 12,50.
validadeThe day the cashback expires, such as 31/12/2026. Without a date it expires after the months in Valid for (months), counted from the day of the import.
  1. Click Preview. The list shows what each row becomes: Ready, Already imported, Customer not found, Several customers, Invalid row or Expiry has passed, with the points and cashback totals. Nothing is written yet.
  2. Click Import to write the rows that are ready. Points go in as an adjustment in the points history, and cashback goes into the wallet as credit, with its expiry.

Sending the same file again imports nothing twice: rows already imported show as Already imported. Earlier imports are listed in the same panel. Imported points follow the points' expiry rule (months without buying); the validade column applies to cashback.

Follow up and correct

In the Loyalty part, the top of the screen shows Customers with points, Points available (and how many are pending), the Value in credit if everyone redeemed today, the Cashback released (and what is waiting), how many customers each tier holds and the Rewarded referrals (with the pending ones and the credit given).

On the customer's record (Sell → Customers), on the Value tab, the loyalty part shows the points, those To be released, when they Expire on, the Cashback to release and Cashback released (with the Cashback history), the Tier with what it gives, the spend in the window and how far the next one is, the Tier history, the Credit that expires, the Points history and, under Referrals, the Code and who referred them. To correct a customer's cashback, adjust their wallet in Credit. Adjust points adds or removes points with a reason that stays in the history; an adjustment never takes the balance below zero. The trade button (for example Trade for R$ 10.00) redeems on the customer's behalf.

Switching points or referrals off stops new points and new referrals. What customers already have stays theirs, and pending referrals are rewarded when due.

When two customers are merged, points, cashback and referrals go to the customer that stays, and the tier is worked out again. When a customer's data is erased at their request, their referral code stops existing, since it is made from their name, and the points, cashback and tier history is deleted; the wallet's credit stays.

API

The admin API is at /stores/{store_id}/loyalty/program, /loyalty/tiers, /loyalty/summary, /loyalty/referrals and /loyalty/import (with /loyalty/imports), and at /stores/{store_id}/customers/{customer_id}/loyalty (with /adjust and /redeem). The customer side is at /v1/storefront/customers/me/loyalty (with /redeem), /v1/storefront/loyalty/rates and /v1/storefront/carts/{cart_id}/referral; in the SDK, client.customer.loyalty, client.loyalty.rates and client.cart.referral. In the theme, shop.loyalty says what a purchase earns at the customer's tier and order.loyalty what an order earned. See the API changelog.

On this page