# Refer a Friend Program for a Shopify Store

> What a refer a friend program is, how the invite link and friend's code work on Shopify, and how to keep rewards tied to real orders.

By Smaran Challapalli. Updated for 2026, 2 Nov 2026. First published 25 Oct 2026.
Canonical: https://loyalxp.com/blog/refer-a-friend-program/

A refer a friend program lets existing customers invite people they know and rewards both sides when the friend buys. On Shopify with [LoyalXP](https://loyalxp.com/), each customer gets an invite link on your store's own domain, and a friend can also type the customer's 8-character code at the cart or at checkout, as long as their first order is not yet paid.

## How does a refer a friend program work?

The customer shares a link. The friend lands on your store, creates an account, shops, and pays. When that first order qualifies, the referrer and the friend are each rewarded, and each reward is a history line with a reason, so nobody has to ask why points arrived.

The link looks like `yourstore.com/apps/loyalxp/invite/ABCD2345`. It runs through a Shopify app proxy, which lets an app answer requests on your store's domain instead of its own.

> App proxies take requests to Shopify URLs, and proxy them to your app.
>
> Source: [Shopify developer docs, App proxies](https://shopify.dev/docs/apps/build/online-store/app-proxies)


## What does each person see?

**The referrer** opens the rewards panel or rewards page and sees "Your invite code", a "Copy invite link" button, a "Share" button and a WhatsApp share link that already carries a short message with your store's name. After the friend's order qualifies, a line reads "A friend ordered with your code".

**The friend** opens the link and lands on a short invite page. You can write up to three benefit lines for it, or turn the page off and send friends straight to their reward. If the friend only wants to look around first, the invite is remembered in a first-party cookie and follows them to the cart.

**The friend's history** shows "Invite welcome bonus" once their order qualifies. If you reward the friend with a discount code instead, the code is made at the moment they claim, for that customer only, and usable once.

## What makes a good reward?

Tie it to a paid order. Paying on sign-up invites fake accounts. Paying on a qualifying purchase costs you nothing until there is a sale.

Pick each side on its own terms. An example, with example numbers only: a store earns 1 point per ₹10, and 100 points are worth ₹50 as store credit. It sets the friend to a 10% discount code on a first order of at least ₹799, valid for 14 days, and the inviter to 150 points, worth ₹75. A friend who spends ₹1,800 costs the store ₹180 for the code at most, plus ₹75 of points, against a ₹1,800 order. You decide whether that is a good trade for your margins; the arithmetic is the point, so do it before you go live.

Shopify itself can limit a code to named customers, which is what makes a per-friend code possible:

> Specific customers : Choose specific customers that can use your discount.
>
> Source: [Shopify Help Center, Managing discount codes](https://help.shopify.com/en/manual/discounts/managing-discount-codes)


## What if the friend forgets the link?

They can still enter the inviter's code, but only before the first order is paid. There are two places for it: the "Friend's code" box in the cart, shown while a claim is still possible, and the discount field at checkout. LoyalXP reads the code when the order is paid and credits it once.

After the first paid order the code is refused. One welcome reward per new customer is the rule, so a friend cannot be signed up again later.

## How do you keep it fair?

- **Same email, phone or shipping address** between the two people is blocked.
- **A limit** on how many friends one customer can earn for in a year.
- **A smallest first order**, so a token purchase does not pay out.
- **Held rewards.** An inviter reward above your threshold waits for your Approve or Reject under Customers, Referral rewards.
- **Refunds.** A full refund, cancellation or chargeback on the qualifying order takes the rewards back.

The details sit in [referral fraud and self-referrals](https://loyalxp.com/blog/referral-fraud-self-referrals/).

## How do you switch it on?

Referrals are part of the Bonuses & referrals step of the guided setup in Shopify admin, and they live under Settings afterwards. LoyalXP does not preselect amounts. Whatever you leave blank stays blank.

For the full setup, read the [Shopify referral program guide](https://loyalxp.com/guides/shopify-referral-program/). To compare apps, see [best Shopify referral apps](https://loyalxp.com/blog/best-shopify-referral-apps/) or [LoyalXP vs Smile.io](https://loyalxp.com/compare/loyalxp-vs-smile-io/). 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](https://loyalxp.com/#early-access).

## Related guides and posts

- [Shopify referral program guide](https://loyalxp.com/guides/shopify-referral-program/)
- [How to create a referral program on Shopify](https://loyalxp.com/blog/how-to-create-a-referral-program/)
- [Referral program examples](https://loyalxp.com/blog/referral-program-examples/)
- [7 referral program ideas for Shopify](https://loyalxp.com/blog/referral-program-ideas/)
- [Referral fraud and self-referrals](https://loyalxp.com/blog/referral-fraud-self-referrals/)

## Frequently asked questions

### Does the friend need an account?

For the invite page, yes: the claim is stored against their account. A friend can also type the code in the cart or at checkout, and the order is matched when it is paid.

### Can I limit how many friends one customer refers?

Yes. You set a number per year and choose what the year counts from: the financial year, the calendar year, the last 12 months or a year starting in a month you pick.

### Does this work without Shopify Plus?

Yes, on any Shopify plan, with no checkout extension.

### Can an existing customer be a friend?

No. A customer with a paid order cannot claim an invite.

## Related guides and posts

- [Shopify Referral Program: How to Set One Up](https://loyalxp.com/guides/shopify-referral-program/)
- [Referral Fraud: Stopping Self-Referrals on Shopify](https://loyalxp.com/blog/referral-fraud-self-referrals/)
- [Referral Program Examples You Can Run on Shopify](https://loyalxp.com/blog/referral-program-examples/)
- [How to Create a Referral Program on Shopify](https://loyalxp.com/blog/how-to-create-a-referral-program/)
- [Best Shopify Referral Apps in 2026](https://loyalxp.com/blog/best-shopify-referral-apps/)
- [7 Referral Program Ideas for Shopify](https://loyalxp.com/blog/referral-program-ideas/)

[Request access](https://loyalxp.com/#early-access): 14 days free, then $15 a month with every feature.
