---
title: "Referral program"
description: "Set up Invite and earn rewards for inviters and invited friends, limit invites, track referrals, and return a referral discount after a cancellation."
canonical: https://docs.ordering.co/docs/products/dashboard/marketing/referral-program/
---

# Referral program

Use **Marketing → Referral program** to run **Invite and earn**. Customers share a personal code or link. The invited friend gets a welcome reward, and the person inviting earns a reward once the friend's order is completed.

## Where the program works

The program runs on your marketplace website and your marketplace app. Franchise websites and franchise apps do not show it. Each project has one program, and it is either **Draft** or **Active**.

## Before you start

- **Sign in as a project administrator.** The page is only available to the administrator role.
- **Decide who pays.** The marketplace owner absorbs the referral discount. The store is paid for its full sale.
- **Plan for verified contacts.** A customer needs a verified email or a verified phone before any referral reward is delivered or can be used. Until then, the reward waits in **Invite and earn** with a button to verify.
- **Know what happens while the program is off.** In **Draft**, or after you deactivate it, invite links and codes do nothing. Customers see no error, and sign-up continues as usual. Pending referral discounts and coupons cannot be used, and orders completed while the program is off do not earn rewards.
- **Choose both rewards.** The person inviting and the invited friend each get their own reward, value, and expiry.

## Open the program

1. In the Dashboard sidebar, open **Marketing**, then **Referral program**.
2. The first time, the page shows **No referral program yet**. Select **Start a draft**.

**Expected result:** The page opens on the **Configuration** tab with a **Draft** status. A second tab, **Referrals & rewards**, lists the referrals once customers start inviting.

## Set the reward for the person inviting

The **Person inviting** card sets the reward for the customer who shares the code.

| Field                | What to enter                                                                                                                                                                                                                                                                                                                                                            |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Reward type**      | **Wallet credits** adds credits to the customer's wallet. **Wallet cashback** adds money to the wallet's cash balance. **Coupon** creates a private code only that customer can use. It is created for the store where the qualifying order was placed and is valid only at that store. **Discount** creates a **Referral discount** the customer can apply at checkout. |
| **Value kind**       | **Amount** or **Percentage**. Wallet rewards are always a fixed amount.                                                                                                                                                                                                                                                                                                  |
| **Value**            | A number greater than 0. A percentage cannot be above 100.                                                                                                                                                                                                                                                                                                               |
| **Minimum purchase** | Optional. Leave it empty for no minimum, or enter 0 or more. The qualifying order must reach this amount for the reward to apply. See [How values are calculated](#how-values-are-calculated).                                                                                                                                                                           |
| **Expires in days**  | Shown for **Coupon** and **Discount** only. Enter a whole number of 1 or more. The days count from the moment the coupon or discount is created. Wallet rewards follow your wallet rules.                                                                                                                                                                                |

The note **When is it granted?** confirms the delivery moment. The inviter's reward is delivered when the invited friend's order is completed. A **Discount** then waits in the inviter's account until they choose to use it.

## Set who can be invited and their reward

The **Invited person** card sets who qualifies and what the friend receives.

1. Choose **Eligibility**:

   - **New account**: only someone signing up. The friend must add the code when creating the account, or open the invite link before signing up. An existing account cannot use a code, even with no orders.
   - **No prior valid order**: new accounts and existing accounts with no completed order. Canceled orders do not count as a prior purchase.

2. Choose the **Reward type**, **Value kind**, **Value**, an optional **Minimum purchase**, and, for a coupon or a discount, **Expires in days**. The fields work as they do for the person inviting.

**When is it granted?** A **Discount** is applied at checkout on the friend's first order. For this discount, the days count from when the friend's code is accepted. Every other reward type is delivered when that first order is completed.

### How values are calculated

Percentages and the **Minimum purchase** use the same base: the product subtotal after other discounts. Taxes, delivery fees, and tips are not included. The minimum is checked against the qualifying order, and customers see it in the program conditions.

## Set the referral discount rules

The **Referral Discount Rules** section appears when at least one reward is a **Discount**. Its label, such as **Active for: Both sides**, shows which reward it affects.

| Field                            | What it controls                                                                                                                                                                                                                          |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Combine with promo coupons**   | **Combinable**: the customer can add a store coupon too. The store coupon applies first, the referral discount applies to what remains, and the total never drops below zero. **Exclusive**: only the larger of the two benefits applies. |
| **Max restores on cancellation** | How many times an administrator can return the same referral discount after a canceled order. Enter 0 or more. The default is 1, and 0 means a used discount cannot be returned. A return never extends the original expiry.              |

## Set invite tiers

**Invite tiers** limit how many invited friends can earn the person inviting a reward. They are based on the number of orders the inviter has completed. A friend invited beyond that limit still gets their own reward, but the inviter does not.

1. Each slot shows a number of invites, such as **+1 invite**, and **Completed orders required**. Change how many invites the slot grants and how many completed orders unlock it.
2. Select **Add invite slot** to add a level, or **Remove** to delete one. Slots add up, and the order of the cards does not matter.
3. Turn on **Recurring extra invites** to keep granting invites **After reaching the highest slot**. Complete the sentence, for example **Grant +1 invite every 5 orders**.
4. Use the **Customer Progression Simulator** to check how many invites a customer has after a given number of completed orders.

By default, the tiers work like this:

| Completed orders by the inviter | Rewarded invites in total |
| ------------------------------- | ------------------------- |
| 0                               | 1                         |
| 2                               | 2                         |
| 5                               | 3                         |
| Every 5 more orders             | +1                        |

With no slots, the simulator shows **No invite slots configured. Customers currently have 0 invites.** In that case, no inviter can earn a reward.

## Save and activate

1. Select **Save draft** to keep your changes without going live.
2. Select **Activate**. The Dashboard checks both rewards, the eligibility, the expiry days, and the discount rules. If something is missing, **Cannot activate referral program yet** appears and the field to fix is marked.

**Expected result:** The status changes to **Active**. Customers can now share their code, and the save button reads **Save**.

To change an active program, edit the fields and select **Save**. Changes apply to new referrals only. A reward already promised keeps its original value, conditions, and expiry.

If you activate a program that was deactivated, the rewards promised before it was turned off work again.

## Deactivate the program

Select **Deactivate** and confirm **Deactivate the referral program?** The program goes back to **Draft**. While it is off:

- invite links and codes are ignored, without an error
- pending referral discounts and coupons cannot be used at checkout
- orders completed while the program is off do not earn rewards

Rewards already delivered to the wallet stay with the customer. Promised rewards are not deleted. When you select **Activate** again, they work again.

## What customers see

### Invite and earn

**Invite and earn** is in the customer's profile and appears again after an order is completed. From there, the customer can:

- copy their code or link, or share it
- read the program conditions
- see pending and earned rewards
- read the refund policy

The invite link opens your website or app with the code filled in. If the friend does not have the app yet, they type the code when signing up or at their first checkout, depending on **Eligibility**.

Invited friends appear with a shortened name. The person inviting never sees a friend's personal details or orders.

### Sign-up and the friend's first checkout

- **Sign-up** has an optional field for the friend's code and says: _You will get \[reward] when you complete your first order._ If the code cannot be used, the reason appears.
- **Checkout** has an optional **Friend's invite code** card, separate from **Offers and coupons**. Once applied, it shows, for example, _Your $5.00 welcome gift is applied · Invited by a friend · Code X_ below **Offers and coupons**. A reward that is not a discount says it arrives when the order is completed.
- The discount shows as its own **Referral discount** line in the order summary and in the order details.
- The card disappears after the friend's first completed order.

### The inviter's earned discount

An earned discount waits in the inviter's account and is never applied on its own. At checkout, the inviter opens **Offers and coupons**, which shows how many offers are available, and chooses the referral discount.

- An order can carry one referral benefit: one referral discount or one referral coupon. When several are available, the one that expires first is used.
- A referral coupon is valid only at the store where the qualifying order was placed. The customer uses it at that store's checkout.
- With **Combinable**, the customer can still add a store coupon.

### Rewards on hold

A reward waits on hold while the customer has no verified email or phone. **Invite and earn** shows it with a button to verify. Once the customer verifies, the reward becomes usable.

### The refund policy customers see

**Invite and earn** lists three points:

1. For a justified cancellation, the customer contacts support to restore the referral discount.
2. A restored discount keeps its original expiry.
3. A discount can only be restored a limited number of times.

## Track referrals

Open the **Referrals & rewards** tab. Each row shows the **Person inviting**, the **Invited person**, the **Date**, and the **Status**.

- Search by the inviter's or the invited person's name, or filter by **Status**.
- Switch between **Chronological** and **Grouped by inviter**.
- Select a row, or **View rewards →**, to open the referral.

| Status        | Meaning                                                                        |
| ------------- | ------------------------------------------------------------------------------ |
| **No order**  | The friend accepted the code and no reward exists yet.                         |
| **Pending**   | A reward is promised and has not been delivered or used.                       |
| **Used**      | The discount or coupon was used on an order.                                   |
| **Delivered** | The reward was added to the wallet or issued to the customer.                  |
| **Returned**  | A referral discount was returned after a canceled order and can be used again. |
| **Expired**   | The reward reached its expiry date before it was used.                         |

The row status follows the invited person's reward. Until the friend has a reward, it follows the inviter's.

### The referral panel

The panel shows who invited whom, with each person's full name and ID. Each reward card shows:

- the reward, its type, and its status. **Reserved (Order #…)** means a discount is held by that order.
- **Order**: the order that unlocked or holds the reward
- **Expires**: the expiry date
- **Restores**: for a discount, the returns used out of the limit
- **Restore history**: the date, reason, and administrator of each return

Until the qualifying order is completed, a card reads **No reward generated yet — unlocks once the qualifying order condition is met.**

## Return a referral discount after a cancellation

A canceled order does not create the rewards that follow an order. A referral discount used on a canceled order does not come back on its own. The customer contacts support, and an administrator returns it.

1. In **Referrals & rewards**, open the referral. The discount shows **Reserved (Order #…)**.
2. Enter the **Reason**. It is required and is saved in the **Restore history**.
3. Select **Return discount**.

The return works only when all of these are true:

- the reward is a discount
- the order is canceled, and it was never completed and never failed delivery
- the discount has not expired
- the discount has not reached **Max restores on cancellation**

**Expected result:** The discount is available to the customer again with its original expiry, and **Restores** goes up by one. At the limit, the panel shows **Maximum restore limit reached**.

Rewards already delivered or spent are not taken back. A partial refund does not change a referral reward.

## Rules that always apply

Ordering applies these rules whatever you configure:

- **One inviter per account, for good.** The first code accepted stays. Another link or code does not replace it. If a customer entered the wrong code, support can help before their first order.
- **No self-invites.** A customer cannot use their own code, and an invited account cannot have the same phone number as the inviter. Email addresses are compared exactly as written, so two different people are never blocked by mistake.
- **Verified contact first.** No reward is delivered or usable until the receiving customer has a verified email or phone.
- **No duplicates.** Repeating a request never grants a reward twice. One code can invite many different people.
- **Privacy.** The person inviting never sees the friend's personal details or orders.

## Troubleshooting

### Why can't I activate the program?

Each reward needs a **Reward type** and a **Value** above 0. A coupon or a discount needs **Expires in days** of 1 or more. The invited person needs an **Eligibility**. With a discount, choose **Combine with promo coupons** and enter **Max restores on cancellation**.

### Why was a friend's code rejected?

- The code does not exist.
- The friend is using their own code, or has the inviter's phone number.
- The friend already has an inviter.
- **Eligibility** is **New account** and the friend already has an account.
- **Eligibility** is **No prior valid order** and the friend already has a completed order.

The customer sees the reason when the code is checked. While the program is off, codes are ignored without an error.

### Why is a reward on hold?

The receiving customer has no verified email or phone. They can verify from **Invite and earn**, and the reward becomes usable.

### Why didn't the referral discount apply?

- The order does not reach the minimum purchase.
- The discount is reserved on another order.
- The discount has expired.
- With **Exclusive**, a store coupon gave a larger benefit.
- The inviter has not chosen the discount in **Offers and coupons**.
- A referral coupon was used at a different store from the one where it was earned.
- The program is not active. Pending discounts and coupons work again once you activate it.

### Why didn't the inviter get a reward?

The friend's order is not completed yet, or the order was canceled. The order may have been completed while the program was off. The order may not reach the **Minimum purchase**. The inviter may have used all the rewarded invites their tiers allow. The inviter may also need to verify their email or phone.

### I changed the settings. Do existing rewards change?

No. Rewards already promised keep their value, conditions, and expiry. New settings apply to new referrals.

### What happens to rewards when I deactivate the program?

Rewards already delivered to the wallet stay. Promised rewards are not deleted, but they cannot be used while the program is off, and orders completed during that time do not earn rewards. When you activate the program again, promised rewards work again.

**Related guides** [Marketing overview](https://docs.ordering.co/docs/products/dashboard/marketing/) · [Advanced offers](https://docs.ordering.co/docs/products/dashboard/marketing/advanced-offers/) · [Campaign](https://docs.ordering.co/docs/products/dashboard/marketing/campaigns/)
