# Redeem a coupon code to issue a discount

> For the complete documentation index, see [llms.txt](https://docs.talon.one/llms.txt).

Once we have created [random coupon codes](/docs/product/campaigns/coupons/create-coupons.md#generate-random-codes) and have distributed them among our customers, let's set up a [standard campaign](/docs/product/campaigns/overview#standard-campaigns) to provide them with a 20% discount on their orders when they redeem a valid coupon code and the session total reaches $60.

:::note
The [**Coupons** feature](/docs/product/campaigns/settings/manage-campaign-features.md)
has to be enabled.
:::

## Issue a discount on the session total

Let's build a [promotion rule](/docs/product/rules/overview.md#promotion-rules) and name it
`20% discount with coupon code`. It has two conditions and one effect.

### Conditions

- **Coupon code is valid**.
- **Check attribute value**:

  - Attribute is **Cart items total (Current session)**.
  - **Is greater than or equal to** `60`.

:::note
The **coupon code is valid** condition redeems the code if the rule is successful. The corresponding
counter in [the **Redemptions** column on the **Coupons** page of the campaign](/docs/product/campaigns/coupons/coupon-page-overview.md#list-coupon-codes-and-gift-cards)
is automatically updated once the session is closed.
:::

### Effect

**Discount session total**: **Name** is `20% off` and **Discount value** is `[Session.Total]*20%`.

## Related pages

- [Create a gift card campaign](/docs/product/tutorials/coupons/giftcard.md)
- [Create a discount using cart item filters](/docs/product/tutorials/coupons/cart-item-filters-discount.md)
- [Create a community buying campaign](/docs/product/tutorials/coupons/community-buy.md)
- [Create a channel-specific coupon campaign](/docs/product/tutorials/coupons/segmentation-coupon-campaign.md)
