How the referral program works

The referral program turns your members into promoters. Each member gets a personal link and shares it with friends. A friend who is a new customer logs in, claims a one-time discount code, and the member is rewarded when the friend pays for a first order. This article explains the full flow and what each person sees.

[!INFO] The referral program is off by default. Nothing happens on your store until you press Enable on Program → Referrals. See How to turn on referrals and set the rewards.

How a referral works, step by step

  1. The member gets a link

    Every member has a personal referral link. They find it in the widget under Refer a friend. You can also see it on the customer's page in the admin. One link works for any number of friends.

  2. The member shares it

    They copy the link or use a share button (Email, Facebook, Messenger, WhatsApp or X, depending on what you turned on). See How to choose share options and messages.

  3. The friend opens the link

    When the friend lands on your store, a referral pop-up shows their offer, for example "Alex sent you $5 off". You design it under Branding. See How to customize the referral pop-up.

    A friend opens the referral link and sees the pop-up with the member's offer

  4. The friend logs in

    The friend's code is locked to one customer account, so the friend must be logged in to claim it. If they are not, pressing the claim button (default text Get my code) shows Log in to claim your reward with a Log in button. After they log in or create an account, they come back to your store with the referral link, and the pop-up opens again.

  5. The friend claims a code

    The friend presses Get my code. The app checks that the friend has no earlier orders in your store, then creates a one-time discount code that only their account can use. The pop-up shows it with a Copy button, and the friend gets the Friend received referral email if it is on.

    The code is created only when they press the button, so link previews and search crawlers never use up codes. If the friend has ordered before, they see We couldn't create your code instead.

  6. The friend orders with the code

    The friend enters the code at checkout while logged in to the same account. The app does not apply it for them.

  7. The order is paid and the member is rewarded

    When Shopify marks the friend's order as paid, the app checks again that the friend is eligible. If so, the referral becomes Completed and the member gets their reward: points, or a discount code made just for them. The member also gets the Referral completed email.

The Referrals page with the program active, the two reward rows and the share options

Referral statuses

Status What it means
Pending The friend claimed a code but has not paid an order with it yet, or the member's reward is still waiting to be paid out.
Completed The friend's first order was paid and the member received their reward.
Blocked The referral did not qualify, so the member gets no reward.

Members see only Pending and Completed referrals. Blocked ones are not shown to them. You see all three in How to track referrals and their status.

Which orders count

When the member is rewarded

The reward follows your settings at the moment it is paid out. If you change the reward while a referral is still waiting, the member gets the new reward.

What happens on cancellations and refunds

Situation What happens
The friend's order is canceled or fully refunded before the member's reward is paid out The referral becomes Blocked. The member gets nothing.
The friend's order is canceled or refunded after the reward is paid out The member keeps the reward. Referral rewards are not taken back automatically. To remove points, adjust them by hand. See How to adjust points for one or many customers.
The member's reward could not be created in Shopify The app retries automatically. The referral stays Pending until it works, and is Blocked if it keeps failing.

Worked example

You set the member reward to 500 points, the friend reward to $5 off first order with a Minimum order amount of $30, and the code to expire after 1 month.

  1. Maria copies her link and sends it to Tom on WhatsApp.
  2. Tom opens the link. The pop-up says "Maria sent you $5 off". He presses Get my code.
  3. Tom is not logged in, so the pop-up asks him to log in. He creates an account and comes back to the pop-up. He presses Get my code again and gets his code.
  4. Tom adds $42 of goods to his cart and uses the code. The discount is $5, so he pays $37 plus shipping and tax.
  5. Shopify marks the order paid. This is Tom's first order and Tom is not Maria, so the referral becomes Completed.
  6. Maria receives 500 points and the Referral completed email.

If Tom had ordered from your store before, he would see We couldn't create your code in step 3 and get no code. No referral is created and Maria gets nothing.

Good to know

Related articles

How to turn on referrals and set the rewards →