#How does a Shopify referral program work?
A customer shares a link or a code. The friend arrives, claims it, and places a first order. When that order is paid and qualifies, the referrer is rewarded and the friend gets their own reward. Both sides see a history line with a reason, so nobody has to ask why points arrived.
In LoyalXP the link has the form yourstore.com/apps/loyalxp/invite/ABCD2345. It is served through a Shopify app proxy, which is why it sits on your domain and not on a third-party page.
App proxies take requests to Shopify URLs, and proxy them to your app.
The code at the end is 8 letters and numbers, picked from a set that leaves out 0, O, 1, I and L so it survives being read out loud or typed from a screenshot.
#How does a friend's order get tied to the referral?
Three routes lead to the same result, and the friend can use any of them before their first paid order:
- The invite page. The friend opens the link, claims it while logged in, and the invite is stored against their account. You can set how many days an invite stays valid.
- The cart. The cart block shows a "Friend's code" box while a claim is still possible. A typed code is saved on the cart and applies when the friend checks out.
- Checkout. If the friend types the code into the discount field, LoyalXP recognises it as one of your referral codes when the order is paid.
A friend who only browses from the invite page is remembered too, in a first-party cookie that carries to the cart.
One rule is firm: the code works only before the friend's first paid order. After that the claim is refused, and so is a second claim from the same friend. One welcome reward per new customer.
#What can you reward with?
Each side is set separately, so the friend and the inviter can be paid differently:
- Points. A number of points for the friend and a number for the inviter.
- A discount code. A percentage off or a fixed amount off, with a minimum order, and a number of days it stays valid. The friend's code is made for that customer only and works once. The inviter's code is made after the referral qualifies.
- A one-time code bonus. Extra points for the inviter on their first qualified referral, set under "Code points" in Settings.
Discount-code rewards need an extra Shopify permission so the app can create codes in your store. The app asks for it when you save. Shopify's own description of what an amount-off code can be is short:
Amount off discounts : These discounts provide a percentage or a fixed amount off an order, such as 25% or $50 USD.
#How do you set it up in LoyalXP?
Referrals are part of the third setup step in Shopify admin, Bonuses & referrals, and the same answers live afterwards under Settings, in the Bonuses & referrals section. Setup autosaves and every answer can be changed after launch.
- Switch on the Referrals card and set what the friend gets and what the inviter gets.
- Set the limit. "Most friends per customer, per year", and what the year counts from: the financial year, the calendar year, the last 12 months, or a year starting in a month you choose.
- Set the smallest first order that rewards a referral. Below it, the referral is voided and nothing is paid. A separate switch takes the rewards back if a part refund drops the order below that amount.
- Set the review threshold. Inviter rewards above it wait for you. Leave it empty to never hold one.
- Choose the invite page. Show friends a short page with up to three benefit lines before they claim, or send them straight to the discount.
- Add the storefront blocks from the theme editor: the rewards panel and page show each customer their invite link, a copy button and a WhatsApp share link.
LoyalXP does not preselect amounts. A blank answer stays blank, so the numbers on your store are the ones you typed.
#What does a referral look like end to end?
An example, with example numbers only. A store earns 1 point per ₹10. The merchant sets the friend to 100 points, the inviter to 150 points, a first-order minimum of ₹500, and a limit of 10 friends a year.
- Asha shares her link. Ravi claims it and pays ₹1,800 for his first order after discounts.
- Ravi's order earns 1,800 / 10 = 180 points as usual.
- The referral qualifies. Ravi gets a separate line of 100 referral points, and Asha gets 150.
- All of it sits as pending until the points become usable, by your timing rule: after delivery or after your fallback number of days.
If that order is refunded in full, cancelled or charged back, the 180, the 100 and Asha's 150 are all taken back and the referral goes void. If Ravi had already spent points, the shortfall becomes a debt that his next earn clears.
If it is a part refund that leaves ₹400 of merchandise against the ₹500 floor, the rewards come back only if you switched that rule on.
#How do you stop referral fraud?
Self-referral is the usual abuse: a customer invites their own second email. LoyalXP compares email, phone and shipping address between the two people and blocks a match on any of them. The checks always run, there is no switch to turn them off. The address check needs the first line and the postcode to match. See referral fraud and self-referrals for the full list.
Two more controls are yours. The per-year limit counts only qualified referrals; past it, the friend still gets their reward and the inviter gets nothing. And a held reward waits at Customers, in the Referral rewards view, with Approve and Reject buttons and an optional note. Approving writes the reward. Rejecting writes nothing and voids the referral, so it does not use up that customer's limit. The friend's welcome reward is never held.
#How do you watch what it costs?
Every referral reward is its own ledger line, and the Reports tab shows points issued, redeemed, expired and reversed by month. Read the referral lines against your order count before you raise a reward. Shopify Flow triggers for Referral claimed, Referral rewarded and Referral reversed appear under "LoyalXP" if you want to log them elsewhere.
#What mistakes should you avoid?
- Paying on sign-up. It invites fake accounts. Pay on the paid order.
- No limit. One enthusiastic customer can drain a budget.
- A reward bigger than the first-order margin. Work out what 150 points cost as store credit before you set it.
- Promising a claim after the first order. The code is refused then.
- Rewarding both sides the same by habit. Decide each one.
#Where does it fit in a loyalty program?
Referrals sit beside earning, levels and bonus offers. Start with the Shopify loyalty program guide, then add referrals once points are live. LoyalXP is $15 a month with every feature, 250 paid orders included, each further 250 is $5 as a Shopify usage charge up to a cap you set, with a 14-day free trial, billed in US dollars by Shopify. Request early access.
#Related guides and posts
- Refer a friend program for a Shopify store
- How to create a referral program on Shopify
- Referral program examples you can run on Shopify
- Referral fraud and self-referrals
- Best Shopify referral apps
- Loyalty points and refunds
Frequently asked questions about LoyalXP and this topic
Do I need Shopify Plus for a referral program?
No. LoyalXP referrals work on any Shopify plan with no checkout extension.
Can customers refer themselves?
Not through LoyalXP. A match on email, phone or shipping address is blocked.
Are referral rewards points or discount codes?
Either, and you set each side on its own. The friend can get points while the inviter gets a code, or the other way round.
Can a friend claim a code after their first order?
No. The code is accepted only before the friend's first paid order.