# Create single-use codes
Create a batch of unique coupon codes that each work for one order, then download them as a CSV to send to customers.
Single-use codes give every customer their own code, and each code works for one order only. Use them for thank-you notes, giveaways or a list of VIP customers, so a code shared online can't be used again and again.
> [!NOTE]
> Single-use codes are a kind of coupon. If you haven't made a coupon before, read [Create a discount code](/docs/marketing-growth/create-a-discount-code) first: the value, dates and limits work the same way.
## Step 1: Start a coupon
1. Go to **Marketing → Coupons** and select **Create coupon**.
2. Under **Basics**, enter a **Name**, for example `VIP thank-you`.
3. Enter any word in **Coupon code**, for example `VIP`. The field must be filled in to save, but a batch doesn't use it: each buyer gets one of the generated codes instead.
## Step 2: Set the number of codes
1. Under **Codes**, enter how many codes you need in **Unique codes**, for example `200`. Any number above 1 makes single-use codes.
2. Optional: enter a **Prefix**, for example `VIP-`. Use up to 12 letters, numbers, `-` or `_`.
3. Choose a **Length** for the random part, from 6 to 16 characters. The default is 16.
An example code appears under the fields, such as `VIP-XXXXXXXX`.
```screenshot marketing-growth/generate-bulk-single-use-codes/01-codes-card
alt: The Codes card in the coupon editor with Unique codes set to 200, the Prefix VIP-, Length 8, and the example code VIP-XXXXXXXX below
caption: More than 1 code turns the coupon into a batch of single-use codes.
1: 50,40 Unique codes
2: 30,62 Prefix
3: 70,62 Length
```
## Step 3: Set the saving and save
1. Choose the **Value type**, **Value**, **Applies to**, dates and any **Minimum purchase**, as for any coupon.
2. Select **Create coupon**.
The codes are made when you save. A large batch is made in the background: if the coupon's page says "Codes are still generating. Reload in a moment.", wait a few seconds and reload.
## Step 4: Download and send the codes
1. Open the coupon. The **Generated codes** card shows how many are left, how many are used and the first 25 codes.
2. Select **Download CSV**. You can also open the coupon's menu on the **Coupons** list and select **Download codes**.
3. Send one code to each customer yourself, for example in a personal email or a handwritten card in the parcel. An [email campaign](/docs/email-marketing/create-and-review-email-campaign) sends the same message to everyone, so use it for a shared code, not a batch.
The CSV has four columns: **Code**, **Status** (**Available** or **Used**), **Order** and **Redeemed at**.
```screenshot marketing-growth/generate-bulk-single-use-codes/02-generated-codes
alt: The VIP thank-you coupon page with the Generated codes card listing codes, each marked Available or Used with an order number, a count of codes left, and the Download CSV link
caption: See which codes are used and by which order, then download the full list.
1: 30,70 Download CSV
```
## Check the limits
- A batch can have up to 5,000 codes.
- Each code works for one order. Once used, it shows "This coupon has already been used" to anyone else who tries it.
- The **Total usage limit** and **Per-customer limit** still apply across the whole batch.
- After you save, the number of codes is fixed. To make more, open the coupon's menu, select **Duplicate**, and save it as a new batch.
## Troubleshooting
- **"This coupon has already been used"**: that code was used on another order. Send the buyer an unused code from the CSV.
- **"Invalid coupon"**: the code was typed wrong, or the coupon is a draft. Codes are not case sensitive, so check for swapped letters and numbers.
- **The Coupons list shows no uses for the batch**: the list's **Uses**, **Discount given** and **Revenue** columns track shared codes. For a batch, open the coupon: **Generated codes** shows which codes were used and on which order, and **Performance** shows the discount given and revenue earned across the whole batch.
## Related guides
- [Create a discount code](/docs/marketing-growth/create-a-discount-code)
- [Track how a discount performs](/docs/marketing-growth/discount-performance)
- [How discounts combine](/docs/marketing-growth/discount-combinations-and-limits)
