> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Referral program overview

> Understand the core concepts and workflow of building referral programs in Voucherify

export const SimpleThemeImage = ({filename, alt}) => <div className="py-8">
    <img src={`/images/docs/${filename}.png`} alt={alt} className="block dark:hidden mx-auto" style={{
  maxWidth: '100%',
  height: 'auto'
}} />
    <img src={`/images/docs/${filename}-dark.png`} alt={alt} className="hidden dark:block mx-auto" style={{
  maxWidth: '100%',
  height: 'auto'
}} />
  </div>;

Referral programs turn your existing customers into brand advocates. By rewarding users for inviting their friends, you create a self-sustaining growth loop that lowers acquisition costs and increases customer lifetime value.

Learn how referral mechanics work, from rewarding the referrer and the referee to managing multi-level programs.

## Key referral concepts

The following concepts are key for understanding the referral program.

<AccordionGroup>
  <Accordion title="Referrer (advocate)">
    The existing customer who shares their unique **referral code** with others. They receive a reward once their friend redeems the code or performs the custom event.
  </Accordion>

  <Accordion title="Referee (friend)">
    The new customer who joins using a **referral code** or performs the custom event. They often receive a "welcome" incentive to encourage their first interaction with your brand.
  </Accordion>

  <Accordion title="Referral code">
    A unique code assigned to a **referrer**. When a **referee** redeems (uses) this code, Voucherify links the two profiles to track the successful conversion event.
  </Accordion>

  <Accordion title="Conversion event">
    A conversion event is the specific action that triggers a successful referral in Voucherify. Each campaign can only have one primary conversion event: code redemption or custom event.
  </Accordion>

  <Accordion title="Referral tier">
    A reward level that defines when and how a referrer is rewarded. Tiers enable milestone-based and multi-level referral programs.

    There are two criteria for rewarding the referrer:

    * Each unique referee redemption
    * Minimum unique referee redemptions

    By setting referral tiers, referrers can receive better rewards when they refer, for example, more than 20 people, and even more rewards when they refer more than 50.
  </Accordion>

  <Accordion title="Reward">
    An incentive issued to referrers and, in double-sided programs, to referees. Rewards can include discounts, gift credits, or loyalty points.
  </Accordion>

  <Accordion title="Referral code publication">
    The assignment of a referral code to a specific customer. Codes must be published before a customer can start referring others.

    Optionally, codes can also be shared by non-referrers, allowing multiple people to distribute the same code.
  </Accordion>

  <Accordion title="Join-once campaign">
    A setting for referral programs that ensures a customer can hold only one **referral code** per campaign. Once set, this can't be toggled off in the **Dashboard**.
  </Accordion>

  <Accordion title="Auto-update campaign">
    An optional mode where the application automatically generates new unique **referral codes** when the initial batch runs out.
  </Accordion>
</AccordionGroup>

## Referral program types

When setting up your incentive workflow in the Campaign Manager, you must decide between a single-sided or double-sided structure. This determines who is rewarded when a conversion event occurs.

### Single-sided programs

In a single-sided program, only the referrer (the person sharing the code) is rewarded. The referee (the invited friend) joins the program or performs an action but does not receive an incentive from the referral campaign itself.

<SimpleThemeImage filename="referral-overview-single-sided" alt="Diagram showing a single-sided referral program flow." />

### Double-sided programs

A double-sided program rewards both the referrer and the referee. This "mutual benefit" model is often more effective at driving high conversion rates because it incentivizes the invited customer to complete their first purchase or sign-up.

<SimpleThemeImage filename="referral-overview-double-sided" alt="Diagram showing a double-sided referral program flow." />

## Conversion events

A conversion event triggers a successful referral either by redeeming a referral code or by triggering a custom event in your system.

### Referral code redemption

The most common conversion event is a successful redemption.

1. The referrer shares a code with a referee (new customer).
2. The referee uses the referral code during a checkout process (redemption).
3. Voucherify marks the customer as "referred" the moment the redemption is successful. If a discount is assigned to the referee, it is applied directly to their order during this step. Then:
   * 3a: Referee receives a reward in case of a double-sided program.
   * 3b: Referrer has a successful referral and receives a reward as configured by the program.

<Note>
  A referrer can't redeem the code they own. Only referees can.
</Note>

<SimpleThemeImage filename="referral-overview-redemption" alt="Diagram showing a referral program flow with a redemption as a conversion event. The diagram shows also that the referee and referrer are awarded upon successful redemption." />

### Custom events

<Info>
  <Badge color="gray">Prerequisite: Developer setup</Badge>

  Tracking custom events in your system requires sending them to Voucherify through [POST Track custom events](/api-reference/events/track-custom-event) API endpoint.
</Info>

When Voucherify tracks your custom events, the conversion event flow looks as follows:

1. The referrer shares a code with a referee (new customer).
2. Voucherify counts a successful referral only after receiving the API call for the specific event. The API request should include the referee's details and the referral code.
3. After the custom event, the referrer and the referee (in a double-sided program) are rewarded:
   * 3a: New loyalty points or gift credits are assigned to the referee's account after they perform a custom event.
   * 3b: Voucherify notes another successful referral and assigns a reward to the referrer (reward redemption).
4. If a referee's reward is a discount code, it is applied to the referee's order during the referral code redemption.

<SimpleThemeImage filename="referral-overview-custom-event" alt="Diagram showing a referral program flow with a custom event as a conversion event. The diagram shows also that the referee and referrer are awarded when the custom event is triggered." />

## Referee rewards

In double-sided programs, the new customer also receives a reward when the conversion event occurs.

### Reward types

You can choose from several reward categories depending on your business model:

* **Discount coupon**: Applies an immediate discount (e.g., 20% off, free shipping, or a fixed amount) to the referee's order when the referral code is used for redemption.
* **Gift card credits**: Adds a specific balance to the referee's gift card.
* **Loyalty points**: Adds points to the referee’s loyalty card, which can be redeemed for future rewards.

<Note>
  If a referee doesn't already have a loyalty or gift card, Voucherify will automatically publish one to their profile before adding the points or credits.
</Note>

### Validation rules for referees

To prevent fraud and ensure high-quality leads, you can add a **validation rule** to referee rewards.

The recommended default rule is **Redemptions per customer in a campaign** set to 1. This ensures that each new customer can only be "referred" once, maintaining the integrity of your campaign budget.

## Referral workflow

Voucherify supports the referral program lifecycle through the following stages:

<Steps>
  <Step title="Configuration">
    Build your referral logic in the **Dashboard**. This includes selecting **conversion event**, reward **tiers** and **criteria**, and defining specific **rewards**.
  </Step>

  <Step title="Enrollment and sharing">
    Assign **referral code**s to your advocates through [publication](https://support.voucherify.io/article/460-how-can-i-publish-codes-to-my-customers). You can use **distributions** to send these codes with email, text messages, or display them directly in your application.
  </Step>

  <Step title="Conversion">
    When a friend performs the **conversion event** (code redemption or custom event), they provide the **referrer**'s **referral code**. Voucherify checks the code and records the link between the **referrer** and the **referee**.

    For double-sided programs, the referee receives their reward at this step.
  </Step>

  <Step title="Reward triggering">
    Once the defined criteria (each unique referee redemption or minimum unique referee redemptions) in a referral tier are met, Voucherify automatically triggers the reward for the referrer.
  </Step>

  <Step title="Analysis">
    Track the performance of your referral campaigns using real-time reports to understand what drives customer engagement.
  </Step>
</Steps>
