# Discount codes

## How it works

* Advocates earn a discount code when they successfully refer a friend who places an order.
* Friends receive a discount code when they purchase through an advocate’s referral link.
* Discount codes are generated automatically by BixGrow and follow the rules you configure.
* Discount codes can be applied directly at checkout.

{% hint style="success" %}
Each reward type (advocate and friend) can be configured independently, giving you full control over discount value, usage rules, and expiration.
{% endhint %}

## How to set up

Go to **Extra functions** > **Referral program,** then open the **Program tab**.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2Fcrx9AEpUhr475er3QRlR%2Fimage.png?alt=media&#x26;token=2817954a-696f-4d57-ab01-2f16f598495e" alt=""><figcaption></figcaption></figure>

In the **Rewards** section, you’ll see **Rewards for advocates** and **Rewards for friends,** click **Edit** on either section to configure coupon rewards.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2FhO8VWIXCFZl1r8vv8M4R%2Fimage.png?alt=media&#x26;token=96381f8b-f76e-4cc7-a2ea-41511ad67ea3" alt=""><figcaption></figcaption></figure>

### Advocate rewards

Select **Discount code** as the reward type, then configure the coupon: code format, discount value, and applicable products or collections.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2Fr0hLHLTHegxcW3mjxrIB%2Fimage.png?alt=media&#x26;token=44c9d1bf-0201-481e-96da-658cadf9c767" alt=""><figcaption></figcaption></figure>

Further customize coupon rewards by setting optional rules such as minimum purchase requirements, expiration dates, allowed discount combinations, and purchase type. You can also control when the reward is sent, either immediately after a successful referral or after a specified delay.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2FJWiI73p0TGvEd6zcHw8L%2Fimage.png?alt=media&#x26;token=ef89cf7c-abb4-4654-a0e8-04ec4066b6db" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The reward send delay lets you control when rewards are issued after a referral is recorded. It’s recommended to align this delay with your return policy to avoid rewarding canceled or fraudulent orders.
{% endhint %}

### Friend rewards

Coupons will be generated automatically when friends click referral links and they will have the format as you set up.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2FTC3Lox2pAqatZZENiMPO%2Fimage.png?alt=media&#x26;token=5df6d4c4-d9d8-4cdb-ae39-00ac7950bb3a" alt=""><figcaption></figcaption></figure>

Customize the coupon by defining the code format, choosing a discount value as either a percentage or a fixed amount, and selecting which products or collections the discount applies to.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2F8MrOQdcIMtZfy6YnSIin%2Fimage.png?alt=media&#x26;token=7e2b8a52-4118-4a2e-8648-f083478a83cc" alt=""><figcaption></figcaption></figure>

You can configure usage rules by setting an optional minimum purchase amount, defining the coupon’s expiration period, and choosing whether it applies to one-time purchases, subscriptions, or both.

<figure><img src="https://1262132294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8I1FvDPwi1VP7QixsjAS%2Fuploads%2FI1ybjNDnfaVwivexJfBd%2Fimage.png?alt=media&#x26;token=ed1db7db-baed-4681-9ed4-af85fcd05410" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please note that the **Purchase type** selection menu is **ONLY** available when you have active subscription products in your store.
{% endhint %}
