# Adding Coupons

When you choose a Static coupon or a Dynamic coupon as a Reward type you will have to add codes to the program, which will later be used by members. OL provides three options you will be able to use depending on the scenario you want to use.

* Auto-generating coupon codes
* Uploading from external source&#x20;
  * Adding multiple codes&#x20;
  * Adding single code

{% hint style="warning" %}
Coupons can have a maximum length of 315 characters.
{% endhint %}

***

## Auto-generating coupon codes

<figure><img src="https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FvbqHZI7ruBUoIJwVMKi9%2Fimage.png?alt=media&#x26;token=1a5dcee6-462c-40e3-886e-5e4ac931b468" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**To autogenerate coupons:**

1. Select **Autogenerated coupons**
2. Choose the length of the code
3. Choose a character set:
   * Alpha
   * Alphanumeric
   * Numeric
4. Choose coupon generator prefix (optional) - this function will allow you to automatically create a common code for all codes that will allow you to do future analytics, e.g. Set "BLACKFRIDAY" as a prefix to make every code start with this phrase.

Coupons will be generated every time a prize is purchased. It is not possible to create a full list of coupons before you claim your reward.
{% endhint %}

***

## Uploading from external source

### Adding multiple codes&#x20;

The Open Loyalty allows you to upload coupons from an external source. If you choose this option under the Coupons configuration, you will be able to upload them to OL.

<figure><img src="https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FbC6QaSgMdcfE0hqjPQwi%2Fimage.png?alt=media&#x26;token=b423c315-b62d-46fb-9f12-dbdb5e44f91c" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**To upload coupons from external source:**

1. Create a reward with Coupon configuration: **Upload coupons from an external source**
2. Go to **List of rewards**
3. Click three dots next to the Reward
4. Choose **Upload coupons**
5. Upload  file formatted according to the [requirements](https://help.openloyalty.io/main-features/imports-exports/imports/sample-import-files)&#x20;
6. Click the **UPLOAD COUPONS** button
   {% endhint %}

### Adding single code

<figure><img src="https://2658975168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcNVX03KZzmrGwJihLiEx%2Fuploads%2FTl3hzHNboSXpKXiVXfjO%2Fimage.png?alt=media&#x26;token=2c07f53f-4b36-4406-89c9-96b63cb8a25f" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**To add a single coupon:**

1. Create a reward with Coupon configuration: **Upload coupons from an external source**
2. Go to **List of rewards**
3. Click **Add Coupon**
4. Enter **Coupon**
5. Click **ADD COUPON**
   {% endhint %}
