DocsProgram
Referrals
Give each member a referral link, reward them when a friend's first order is paid, set the friend's discount, and see the limits that stop abuse.
The refer-a-friend rule gives every member a personal link. A friend who arrives through it can claim a discount for their first order, and the member earns points when that first order is paid. Use it when you want existing customers to bring in new ones.
Set up the rule
- Open Ways to earn and choose Add way to earn.
- Pick Refer a friend.
- Fill in the fields:
- Points for the referring customer: the points the member gets for each friend's first order (1 to 1,000,000).
- Friend's discount: Amount off or Percentage off.
- Discount value: an amount in your store currency, or 1 to 100 for a percentage.
- Friend's minimum first order (optional): a first order below this subtotal does not reward the referrer.
- Save. Optional start and end dates under Bonus campaign limit the rule to a period.
If you create more than one referral rule, only the first active one (by position) pays points and sets the friend's discount. The widget and the loyalty page show only that rule, with its points and discount.
Each member's code and link
Every member gets a referral code of 8 letters and digits when they join, and a link in the form https://your-store/?ref=CODE. Members find the link in the widget's Refer a friend card and on the loyalty page, with Copy link and, on devices that support it, Share. In the widget, visitors who are not members see "Join to get your personal referral link" instead.
The address in the link depends on where the member sees it:
| Where | Address used |
|---|---|
| Widget and loyalty page | The storefront address the member is browsing |
Emails ({{referral_link}}), Thank you page, customer account page |
Your store's myshopify.com address |
Both carry the same code.
When a visitor opens a link with ?ref=, Thrice stores the code in their browser for 30 days and adds it to their cart, so it travels with the order. This needs the Rewards widget app embed turned on in your theme (or a Thrice block on the landing page). A newer link replaces an older one. See Widget and loyalty page.
Members imported with a referral_code column keep the code from your file. See Import and export.
What the friend gets
A friend who arrives through a link sees a short notice, "Your friend sent you $10 off", and a gift card at the top of the widget panel.
- If they are not signed in, the card asks them to Create account or Sign in first. The code is tied to their Shopify customer account, so a signed-out visitor cannot claim it. Both links ask Shopify to bring them back to the page they were on, with the widget open, so the gift card is waiting for them.
- Once signed in, they press Get my code. The code appears with Copy and Apply to cart.
The friend's code:
- is a single-use Shopify discount that only works for that customer's account;
- takes the amount or percentage off the whole order;
- expires 30 days after it is claimed;
- has no minimum order, even if you set Friend's minimum first order (that setting only decides whether the referrer earns).
A friend can claim only if they have no orders in Shopify yet.
The gift card stays until the friend places their first order, also when they became a member on the way: with automatic enrollment a friend who creates an account is a member within moments, and still sees the card and can claim. After they claim, the card shows their code until an order uses it, in the browser where they claimed it. A member never sees the card for their own link, and a member who has already ordered does not see it at all.
When the referrer earns
The referrer's points are added when the friend's first order is paid. If you set Days before order points are awarded in Settings, the referrer waits the same number of days: the referral is recorded when the order is paid, and the points and the Referral reward email follow when the wait is over. If the friend's order is cancelled or refunded in full during the wait, the referrer gets nothing.
An order counts as the friend's first order when all of these hold:
- the friend's Shopify customer record was created after you installed Thrice, and no more than 30 days before the order;
- Thrice has no other order on record for that customer;
- the order is not cancelled and not excluded from points in Settings;
- if you set a minimum, the order subtotal reaches it. The subtotal is measured after discounts (the friend's own discount included) and without shipping, tax and gift cards.
The friend does not have to be a member. If the friend claimed a code, the referral is already tied to their account, so it counts even if they order from another device. Otherwise the code stored with the order decides who referred them.
A completed referral also counts toward "Successful referrals" challenges and sends the referrer the Referral reward email, if it is turned on in Emails.
Abuse limits
| Limit | What happens |
|---|---|
| Own code | A member cannot claim or earn from their own code. |
| Same inbox | No claim and no points when both email addresses reach the same inbox. Addresses are compared without case and without a +tag; for Gmail, dots are ignored and googlemail.com counts as gmail.com. |
| Claims per code | At most 20 friend claims per referral code in any 24 hours. |
| One claim per friend | Each customer can claim a friend's discount once in your store. |
| One referral per friend | A friend completes at most one referral, through one order. |
| Blocked members | A blocked member's code is refused and earns nothing. |
Cancellations and refunds
If the friend's first order is cancelled, or refunds on it add up to the full subtotal, the referrer's referral points are taken back. Partial refunds do not take them back. The referral stays used, so the same friend cannot be referred again.
A cancellation or refund does not reverse challenge progress from the referral, and does not withdraw the friend's discount code.