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

# Discount Codes

> Creates promotional codes that buyers enter at checkout for a discount.

## Who this is for

Authors running promotions or rewarding readers.

## Overview

Creates promotional codes that buyers enter at checkout for a discount.

### Code types

* **Percentage off** (0–100% of subtotal)
* **Fixed amount off** (USD off subtotal, capped at subtotal)
* **Free shipping** (sets shipping cost to zero)

## Settings and limits

* Code string (case-insensitive at checkout)
* Type
* Value (percent or dollars)
* Optional **usage limit** (total uses across all buyers)
* Optional **minimum subtotal** required

### Usage tracking

* Usage count shown per code (e.g., "47 / 100 used")
* Cannot exceed the usage limit
* One code per checkout (no stacking)

### Storefront behavior

* Buyer enters code in cart or checkout
* Discount applies immediately
* Invalid code shows a clear error message
* Usage recorded only on successful payment

## **Default-discount-from-campaign:** Campaign preset URLs can carry a `?discount=` parameter that auto-applies the code.

## Next steps

[**Abandoned Cart Tracking**](/shop/abandoned-cart-tracking)
