---
title: Use a coupon code to receive a discount
related:
  - https://docs.kentico.com/k81/e-commerce-features/configuring-and-managing-your-store/discounts/working-with-discount-coupons/working-with-order-coupons.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

The example demonstrates how you can apply a coupon code to receive a discount on your [order](https://docs.kentico.com/k81/e-commerce-features/configuring-and-managing-your-store/orders.md). The 10% discount has no time limit, and is available to all your [customers](https://docs.kentico.com/k81/e-commerce-features/configuring-and-managing-your-store/customers.md). It uses a coupon code that the customers can apply up to 10 times to receive the discount. The coupon code is applied while editing an existing order in the administration interface, and while shopping on the live site.

The example uses the sample _E-commerce Site_.

## Adding an order discount

First, you need to add a new order discount.

1. Open the **Order discounts** application.
2. Click **New order discount**.         

   - The system opens a page where you can specify the discount properties.
3. Enter the following values for the discount's properties:                

   - **Name**: Sale
   - **Enabled**: Yes (checked)
   - **Discount**: Percentage
   - **Amount**: 10
   - **The customer must enter a coupon code to receive the discount**: Yes (checked)
4. Click **Save**.

The system opens the **Coupons** tab of the newly added time-unlimited order discount, available to all customers. Now you can add a coupon to the discount.

> **Tip:** For a more complex example of adding an order discount, please refer to [Example - Applying an order discount](https://docs.kentico.com/k81/e-commerce-features/configuring-and-managing-your-store/discounts/working-with-order-discounts/example-applying-an-order-discount.md).

## Adding a coupon to the order discount

1. Click **Enter coupon code**.
2. Enter the following values for the coupon's properties:

   - **Coupon code**: DC-SALE
   - **Redemption limit**: 10
3. Click **Save**.

The system adds to the order discount a coupon with the specified code, which the customers can apply up to 10 times.

## Applying the coupon code to receive the order discount

### While editing an existing order in the administration interface

1. Open the **Orders** application.
2. **Edit** () the selected order.
3. Switch to the **Items** tab.
4. Enter the coupon code:

   - **If you have a coupon, please enter it here**: DC-SALE

     ![Entering the coupon code](https://docs.kentico.com/docsassets/k81/use-a-coupon-code-to-receive-a-discount/entering_coupon_code.png "Entering the coupon code")
5. Click **Update**.

   - The system applies the discount and recalculates the order.

     ![Order discount applied](https://docs.kentico.com/docsassets/k81/use-a-coupon-code-to-receive-a-discount/order_discount_applied.png "Order discount applied")

If you now click **Next**, the system saves the order with the discount applied.

### While shopping on the live site

1. View the live site.
2. Select **Electronics -> LCD** in your on-line store main menu.

   - The system displays a list of all LCD televisions that you offer in your on-line store.
3. Click **Add to cart** in the _Sony KDL55BX520_ section.

   - The system displays the content of your shopping cart, allowing you to enter a coupon code.
4. Enter the coupon code:

   - **If you have a coupon, please enter it here**: DC-SALE

     ![Entering the coupon code](https://docs.kentico.com/docsassets/k81/use-a-coupon-code-to-receive-a-discount/entering_coupon_code_live_site.png "Entering the coupon code")
5. Click **Apply**.

   - The system applies the discount and recalculates the order.

     ![Order discount applied](https://docs.kentico.com/docsassets/k81/use-a-coupon-code-to-receive-a-discount/order_discount_applied_live_site.png "Order discount applied")

If you now click **Check out**, you can continue in the [checkout process](https://docs.kentico.com/k81/e-commerce-features/configuring-and-managing-your-store/checkout-process.md).
