# Setting up referrals

> Turn on referrals for a loyalty card, choose the bonus for the customer who invites and for their friend, and pick what the pass QR code does.

You set up referrals on the card itself. Open the card from **Cards**, click **Edit** and go to the **Referrals** tab. There are two parts: the **Invite offer**, and what the **QR code** on each customer's pass holds. Referrals aren't limited to a particular plan.

## Invite offer

1. Tick **Turn on referrals**.
2. Set **Stamps for the customer who invites**. They get these when their friend's first visit is stamped.
3. Set **Stamps for the friend**. The friend gets these on their first stamped visit, on top of any welcome stamps from **Initial stamps**.
4. Click **Save**.

Both start at 1. Each can be 0 or more, but:

- At least one of them must be more than 0. Otherwise there's nothing to offer.
- Each must be less than the card's **Stamps required**.

As soon as you save, customers who have the card see **Invite a friend** on their pass, with the offer and their link. See [How customers invite friends](https://docs.getleal.com/referrals/how-customers-invite-friends).

### Choosing the amounts

- **1 and 1** is a good start. It's simple to explain: "you both get a stamp".
- **Give the friend more** (for example 1 for the inviter, 2 for the friend) if you mainly want new customers to feel welcome.
- **Give the inviter more** if you want to reward your best customers for spreading the word.
- Keep it small compared with **Stamps required**. On a 10 stamp card, 1 or 2 stamps feels generous without giving rewards away.

The offer on the pass is written for you, for example "When a friend joins with your link, you both get 1 stamp after their first visit." or "you get 1 stamp and they get 2 stamps".

## QR code

The **QR code** setting decides what the QR code on each customer's pass holds. Your scanner reads both kinds, so this only matters for what happens when someone *else's* phone scans it.

| Option | What happens when a friend scans a customer's pass with their phone camera |
| --- | --- |
| **Invite link** | Their phone opens your sign-up page, with that customer as their referrer |
| **Card code only** | Nothing useful. The code is just the card code, so friends can't join this way |

New cards start on **Invite link**. Cards created before this setting existed stay on **Card code only** until you change it.

**Invite link** is the better choice for most stores. It means a customer can show their pass to a friend at the table, and the friend can join on the spot.

> [!NOTE]
> The invite link in the QR code also carries the customer's card code, but only your scanner reads it. When a friend's phone opens the link, the card code is never sent and is removed from the address bar, so the friend can't use it to collect stamps on the customer's card.

With **Invite link** and referrals turned off, a friend who scans a pass still lands on your sign-up page and can join. There's just no bonus for either of them.

## What's needed for invites to work

- **The card must be active.** Invite links for an [archived card](https://docs.getleal.com/cards/archiving-a-card) show "This invite can't be used right now".
- **The card needs an active poster.** The invite opens the sign-up page of the poster the inviting customer joined through, if it's still active for that card. Otherwise it uses the card's oldest active poster. With no active poster, the invite can't be used. See [Posters](https://docs.getleal.com/posters).

## Changing the offer later

You can change the amounts at any time. A friend who has already signed up keeps the offer that applied when they joined, even if you change it before their first visit. New invites use the new amounts.

Turning referrals off removes **Invite a friend** from passes. Friends who already signed up through an invite still get their bonus on their first visit.

## Gotchas

- **Tell your team.** Staff should know that a referred friend's bonus comes with their first scan, so they don't add the bonus by hand as well. See [Tracking referrals](https://docs.getleal.com/referrals/tracking-referrals).
- **Use Add, not Adjust, for the first visit.** A stamp added with **Adjust** on the customer's profile doesn't count as a visit, so the referral keeps waiting.
