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

# Let affiliates create their own codes

> Let affiliates create their own promo codes in Referly. Turn on affiliate-generated codes for a coupon, set minimum order, redemption, expiry and per-affiliate limits, and choose which affiliates or groups can create codes.

Some affiliates know exactly what code their audience will remember, like their name, their handle or a phrase they use. Affiliate-generated codes let them create their own codes under a coupon you choose, straight from their affiliate portal. You decide who can do it, how many codes each affiliate can make, and what limits those codes carry.

Every code an affiliate creates is tied to them, so orders placed with it are credited to that affiliate automatically.

> [!NOTE]
>
> Affiliate-generated codes need the Business plan or higher. See [plans and features](/docs/help-center/billing/plans-and-features.md).

## Before you start

You need a coupon for affiliates to create codes under. You can turn this on while you [create a coupon](/docs/help-center/engage/coupons/create.md), or on a coupon that's already in your library.

## Turn on affiliate-generated codes

Open your campaign, select **Coupons** in the left sidebar, then open a coupon or select **Create Coupon**. At the bottom of the page, next to **Add Promo Code** and **Add Auto-generated Code**, select **Add Affiliate-Generated Codes**.

A new **Affiliate-Generated Promo Codes** section appears with an **Affiliate-Generated Codes Settings** card, marked with an **Affiliate-generated** badge. This is where you set the rules for the codes affiliates create.

![The Affiliate-Generated Promo Codes section with the Affiliate-Generated Codes Settings card, its Affiliate-generated badge and the limit fields](https://mintcdn.com/pushlapgrowth/jK9J04jKTjhvGI20/images/help-center/engage/add-affiliate-generated-codes.png?fit=max\&auto=format\&n=jK9J04jKTjhvGI20\&q=85\&s=2105b9348451abe4ff029bc0a0d4512e)

## Set the limits for their codes

Each limit applies to every code an affiliate creates under this coupon:

* **Minimum Order Value**: the order amount a customer must reach before the code works. Leave it as **No minimum** to allow any order.
* **Maximum Redemptions Per Code**: how many times each code can be used. Leave it as **Unlimited** for no cap.
* **Expiration Date**: when the codes stop working. Pick a date in the future.
* **Max Codes Per Affiliate**: how many codes each affiliate can create under this coupon. It starts at 1.

Depending on your coupon's platform, some of these limits may not be shown.

> [!NOTE]
>
> The limits are copied onto each code at the moment an affiliate creates it. If you change them later, only codes created after the change use the new limits.

![The limits for affiliate-generated codes: Minimum Order Value, Maximum Redemptions Per Code, Expiration Date, Max Codes Per Affiliate and the Allow all affiliates switch](https://mintcdn.com/pushlapgrowth/jK9J04jKTjhvGI20/images/help-center/engage/affiliate-generated-settings.png?fit=max\&auto=format\&n=jK9J04jKTjhvGI20\&q=85\&s=f78c1b24f87659a23221f525924f9f3a)

## Choose who can create codes

**Allow all affiliates** is on by default, so everyone in your program can create codes under this coupon. To narrow it down, turn it off and choose one of these:

* **Specific affiliates**: search for the affiliates you want under **Select specific affiliates**.
* **Affiliate groups**: pick one or more [groups](/docs/help-center/manage/affiliates/groups.md) under **Select affiliate groups...**. Only affiliates in those groups can create codes. This option appears once you have at least one group.

## Save

On a new coupon, select **Create**. On an existing coupon, select **Update** at the bottom right. Affiliates who are allowed can now create codes from their portal.

## See the codes your affiliates create

Codes your affiliates create appear in the **Affiliate-Generated Promo Codes** section of the coupon page, each with an **Affiliate-generated** badge. Search the section by code, affiliate name or email when the list gets long.

You can manage these codes like any other, including [renaming a code](/docs/help-center/engage/coupons/promotional-codes.md#rename-a-code) if one needs changing.

![Two codes created by affiliates in the Affiliate-Generated Promo Codes section, each with an Affiliate-generated badge, its redemption count and an Active status](https://mintcdn.com/pushlapgrowth/jK9J04jKTjhvGI20/images/help-center/engage/affiliate-generated-code-list.png?fit=max\&auto=format\&n=jK9J04jKTjhvGI20\&q=85\&s=43f14270c4c1bd769830ef59bd33fffa)

## What your affiliates see

In their portal, affiliates who are allowed see a **Create Promo Code** button on their **Promo Codes** page. They pick your coupon, type their code and save. The coupon shows a count like `0/2`, which is how many codes they've made out of your **Max Codes Per Affiliate**. For the full walkthrough from their side, see [Your promo codes](/docs/help-center/affiliates/promo-codes.md#create-your-own-code).

## Stop affiliates creating new codes

Select the trash icon on the **Affiliate-Generated Codes Settings** card, then select **Update**. Affiliates can no longer create new codes under this coupon.

## Related

> **[Auto-generate codes](/docs/help-center/engage/coupons/auto-generated-codes.md)**
>
> Give every affiliate a code from a pattern you design.

> **[Promotional codes](/docs/help-center/engage/coupons/promotional-codes.md)**
>
> Add, rename, or turn off the codes customers type.

> **[Your promo codes](/docs/help-center/affiliates/promo-codes.md)**
>
> How affiliates create and share their own codes.

> **[Affiliate groups](/docs/help-center/manage/affiliates/groups.md)**
>
> Group affiliates so you can choose who creates codes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.