# 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.&#x20;

## 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.&#x20;
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="/files/QLY7ZqDRFzbHN5GwZYBK" alt=""><figcaption></figcaption></figure>

***

### Add discount codes&#x20;

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="/files/1AvOpcfbyASL9ioayQeh" alt=""><figcaption></figcaption></figure>

***

### Remove discount codes&#x20;

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

<figure><img src="/files/VW2egGrABV3xnAUfaC8G" alt=""><figcaption></figcaption></figure>

***

### Export codes&#x20;

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="/files/xw2mPvnWyQ7RUcO3PnQU" 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!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.dollarlabs.io/dollarlabs-ultimate-discounts/discount-engine-v1/bulk-code-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
