> ## Documentation Index
> Fetch the complete documentation index at: https://storekit.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Discount Codes

> Create percentage, fixed amount, and free delivery discount codes in storekit. Set custom rules, redemption limits, and expiry dates for any promotion.

Discount codes let customers enter a code at checkout to receive a discount. This guide covers creating and managing discount codes.

## Creating a Discount Code

1. Go to **Discounts** in the sidebar
2. Click **Add Discount**
3. Enter a **discount code** (minimum 3 characters, letters and numbers only)
4. Choose the **discount type**:
   * Percentage (e.g., 10% off)
   * Fixed amount (e.g., £5 off)
   * Free delivery
5. Enter the **discount value**
6. Configure any restrictions (see below)
7. Click **Save**

## Discount Code Rules

* Minimum 3 characters
* Letters and numbers only (no spaces or special characters)
* Case insensitive (SAVE20 = save20)
* Must be unique

## Restrictions

### Availability

Limit when the discount can be used:

* **Days of week** - Only valid on specific days (e.g., weekends)
* **Time range** - Only valid during certain hours (e.g., 12pm-3pm for lunch deals)
* **Date range** - Valid between specific dates

### Order Requirements

* **Minimum spend** - Order must meet a minimum value
* **Order type** - Limit to dine-in, takeaway, or delivery

### Usage Limits

* **Total redemptions** - Maximum times the code can be used across all customers
* **Per-customer limit** - Maximum times each customer can use the code

### Delivery Fee

Choose whether the discount:

* Applies before or after the delivery fee
* Includes the delivery fee in percentage calculations

## Managing Discounts

### Viewing Usage

Click on a discount to see:

* Total redemptions
* Revenue impact
* Recent orders using the code

### Editing Discounts

Click the **edit icon** next to a discount to modify its settings. Changes apply to future orders only.

### Deactivating Discounts

Toggle a discount off to prevent it from being used. The discount remains in your list for reference and can be reactivated later.

### Deleting Discounts

Click **Delete** to permanently remove a discount. This cannot be undone.

## Tips

* **Use memorable codes** - SUMMER20 is better than XYZ123
* **Set expiry dates** - Prevent old codes from being used indefinitely
* **Limit redemptions** - Protect against excessive use
* **Track performance** - Review which discounts drive the most orders
* **Test before sharing** - Place a test order to verify the discount works as expected

## Troubleshooting

<AccordionGroup>
  <Accordion title="Code says invalid">
    Check the following:

    1. **Is the code active?** — The discount must be toggled on in Discounts.
    2. **Has it exceeded its usage limit?** — Check total redemptions against the configured maximum.
    3. **Does the order meet the minimum spend?** — The subtotal must reach the required value.
    4. **Is the code within its valid date range?** — Verify the start and end dates are current.
  </Accordion>

  <Accordion title="Code works but discount doesn't appear in total">
    The code may be targeting specific products or categories only. Check the targeting settings for the discount — if product-level targeting is enabled, the discount only applies to matching items in the cart, not the entire order total.
  </Accordion>
</AccordionGroup>
