# Autogenerate

With autogenerate you can quickly generate any number of gift card codes. After creation you can have the codes emailed to you, made available as a downloadable file, or both.

### 💡 **Common Use Cases**

* **Partner Stores**: Collaborate with third-party sellers to distribute gift cards for resale or promotions, expanding your market reach.
* **Printed Gift Cards**: Create physical gift cards with unique codes for distribution in retail locations or events as tangible reminders for redemption.
* **Giveaways & Contests**: Use gift cards as prizes in online contests or social media campaigns to boost brand visibility and attract new customers.
* **Influencer Campaigns**: Send gift cards to influencers to try your products and promote your store, reaching broader audiences through their credibility.

These strategies make gift cards a key component of your promotional efforts, helping to engage customers and drive sales.

### **📝 Form Fields Explained**

<figure><img src="/files/8MLfVQ2xgMkn18H9KUzZ" alt=""><figcaption></figcaption></figure>

* **Value**: The initial balance of each gift card. Only your store's main currency is supported.\
  If the card is used in a different market, the value is automatically converted at checkout.
* **Count**: The number of gift cards you want to generate.
* **Code Length**: The number of characters in each code (between **8 and 16**).\
  Codes consist of random **letters and numbers**.
* **Gift card expiry**: Choose one of three options:
  * **Gift cards never expire** — codes have no expiration.
  * **Gift cards expire relative to creation date** — set a duration in days, weeks, months, or years from the moment each card is created.
  * **Gift cards expire on a specific date** — pick an exact calendar date.
* **Internal Note**: A private note attached to the gift card.\
  This is **only visible to store staff**, not customers. Maximum length is 255 characters.
* **Prefix**: Optional. Enable the **Prefix gift card** checkbox to add a fixed prefix to every generated code.\
  Up to **4 characters**, alphanumeric (`a-z`, `0-9`) only.

### **📤 Internal Delivery Options**

After the codes are generated you can choose how to receive them:

* **Allow gift cards data download**: Creates a download link in the **Bulk Operations** section. The link expires after **3 days** and is accessible to anyone with access to the app.
* **Send internal email with all generated gift cards codes**: Sends the full list of codes to an email address you specify. You can enter multiple addresses separated by a comma.

You can enable either option, both, or neither.

### **▶️ Running the Operation**

Two buttons are available at the bottom of the form:

* **Create now**: Runs the operation immediately.
* **Schedule**: Runs the operation at a future date and time you select.

### **FAQ**

**I didn't receive the email with my gift cards. What should I do?**\
First, check your spam or junk folder.\
If you still can't find it, please contact us at **<support@code57.pl>** for help


---

# 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://docs.giftcardfactory.app/bulk-operations/autogenerate.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.
