---
title: "Discounts and campaigns"
description: "Create code discounts and campaigns, and review their usage."
---

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

# Discounts and campaigns

**Promotions** manages discount codes and campaigns. The cart evaluates
promotions when calculating totals.

## Create a discount code

1. Open **Promotions**.
2. In the **Promotions** form, enter a **Code**, such as `SAVE10`.
3. Set the **Order discount %**.
4. Select **Add**.

The promotion appears in the table with its code, type, status, and usage. Use
the delete action to remove it.

## Create a campaign

1. In **Campaigns**, enter a **Name**.
2. Select **Add**.

Campaigns group promotions and can carry a budget. The campaign row shows
`budget used/limit` when a budget is set.

## Verify

- The code appears in **Promotions** with the expected status.
- A shopper can apply the code at checkout and see the discount in the cart.
- Usage counts increase after a completed order.

> **The admin creates simple order discounts**
>
> The admin form creates a code with an order-level percentage discount.
> Advanced promotion types — line or shipping targets, buy-get rules,
> automatic promotions, and campaign budgets — are configured through the
> Admin API. Editing promotions is API-only today. See
> [current limitations](https://edgecart.dev/reference/limitations).

## Related

- [Understand the Sales module](https://edgecart.dev/modules/sales)
- [Understand the Cart module](https://edgecart.dev/modules/cart)
- [Check current limitations](https://edgecart.dev/reference/limitations)

Source: https://edgecart.dev/merchants/promotions/index.mdx
