> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/discount-engine-v1/bulk-code-generation.md).

# Bulk Code Generation

With [**Dollarlabs Ultimate Discounts**](https://apps.shopify.com/dollar-discounts), creating and managing bulk discount codes has never been easier. This feature is designed to save you time, prevent coupon abuse, and help you craft personalized marketing strategies with ease.

## Why Use Bulk Code Generation?

* **Save Time**: Instantly create large sets of unique discount codes in just a few clicks.
* **Prevent Abuse**: Avoid misuse of leaked discount codes by generating unique, one-time-use codes.
* **Boost Sales**: Tailor your campaigns with personalized codes that keep customers engaged.

***

## How to Use Bulk Code Generation

{% hint style="info" %}
Code generation is only available for the "Discount code" type and not for "Automatic discount" type.
{% endhint %}

1. Create a product / order discount using the `Discount code` type and save the configuration.
2. Once saved - head again into the discount configuration, and now you'd have the ability to Add, Remove, View and Download the codes created.<br>

   <figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-a5804faa374e1ab7804a95994f72f3f8928aabfb%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Add discount codes

When generating bulk discount codes, you’ll see the following options in the **Add Bulk Codes** menu:

1. **Number of Codes**\
   Specify the total number of unique discount codes you want to generate.\
   Example: 100 codes.
2. **Code Length**\
   Set the desired length of the discount codes.\
   Example: 8 characters.
3. **Prefix (Optional)**\
   Add a custom prefix to your codes for easy identification.\
   Example: "SALE2025" → Generated code: `SALE2025XJ83`.
4. **Suffix (Optional)**\
   Add a custom suffix to your codes for branding or campaign tracking.\
   Example: "VIP" → Generated code: `XJ83VIP`.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-365b6310c3af0405b2fb04f6d8487701d19f0d62%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Remove discount codes

You can also remove / delete discount codes generated in bulk by heading to View all > Select the codes to be deleted > Delete codes

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-0ff287a47b8d5a34b1b000d11777ff77cce0a8ad%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Export codes

You can easily download an export a CSV containing all the codes created for a particular configuration. This is handy when you want to use the codes in a marketing email / other tool of your choice.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-a0e5112da9ee52755a1d456dfa72922f4ee1953c%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Frequently Asked Questions (FAQs)

**Q: Can I change the prefix or suffix after generating the codes?**\
A: No, prefixes and suffixes cannot be altered post-generation. You will need to regenerate the codes with new settings.

**Q: Can I generate codes longer than 8 characters?**\
A: Yes, you can specify a code length that meets your campaign’s requirements.

***

This guide ensures that you can easily configure, generate, and manage bulk discount codes to align with your marketing strategy. If you need further assistance, feel free to reach out!
