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

# Add prefixes to discount codes

> Add a prefix to Smile-generated discount codes.

You can add a prefix to discount codes generated by Smile when customers redeem points for a reward. Prefixes are configured at the reward level and apply only to discount codes generated after the prefix is saved.

<Check>
  **Feature availability**: Custom prefixes are available on **Shopify only.**
</Check>

## Customize discount codes with prefixes

When creating or editing a reward in your loyalty program, you can set a prefix that appears at the beginning of each discount code generated for that reward.

Smile automatically adds the prefix and appends a unique code value, ensuring each discount code remains unique.

## Add a prefix to a discount code

To add a prefix to a discount code:

1. From Smile Admin, go to **Program** > **[Points](https://admin.shopify.com/apps/smile-io/reward-programs/points)**.
2. In **Ways to redeem**, click **Edit** on the reward you want to update.
3. In the **Discount code** card, click **Add a prefix to discount codes**.
4. Enter the prefix you want to use.
5. Click **Save**.

<Note>
  **Note:** Changes to discount code prefixes apply only to discount codes generated *after* the update. Discount codes that were already issued to customers aren't changed.
</Note>

## Prefix guidelines

When setting a prefix:

* Don't use spaces.
* Avoid special characters.
* Keep prefixes short and easy to copy.

Using unsupported characters may cause issues when customers copy and paste discount codes at checkout.
