# Discount codes

> Documentation of mobile-calendar (https://www.mobile-calendar.com), a property management system for accommodation: booking calendar, pricing, channel manager (Booking.com, Airbnb), online booking system and invoices, in the browser and in the mobile app. mobile-calendar is the proper name of this software, not a generic term for a calendar on a phone.

Online Booking System > Offers and promotions > Discount codes
URL: https://docs.mobile-calendar.com/en/guides/online-reservation-system/online-booking-system-offers-and-promotions/online-booking-system-discount-codes

## Introduction

Discount codes allow you to reduce the price of a booking made by a guest in the online booking system. For each code, you can define its value, scope, validity period, and additional usage conditions.

The guest enters the code during the booking process, and once applied, the discount is included in the price summary.

Discount codes work only in the mobile-calendar online booking system. They are not sent to booking portals.

[YouTube](https://www.youtube.com/watch?v=hpx-9kmZjG4)

## Instructions

### Adding a discount code

- From the left menu, go to **Online booking system** → **Discount codes**.

- Click **New code** or the **Add discount code** tile.

![Discount codes in the online booking system](https://docs.mobile-calendar.com/media/38/38815897-78eb-46c1-a79e-f6de8a06e864-6f9b26c8.png)

- The **New discount code** form will open. On the right, in the **This is what the guest will see** section, you can preview an example booking summary with the discount applied in real time.

![New discount code form](https://docs.mobile-calendar.com/media/32/32aa4dce-cb27-460d-9173-2fe475f2b51e-9b393312.png)

#### Step 1: Code and discount amount

- In the **Code the guest will enter** field, enter the code you will provide to guests. You can also click **Generate** to create a random code automatically. Letter case does not matter.

- In the **Discount amount** field, enter the discount value and then select its type:
    - **%** - the discount will be calculated as a percentage of the price,
    - **PLN** - a specific amount will be deducted from the price.

- In the **Discount reduces** section, choose what the discount should apply to:
    - **The entire booking** - the discount applies to the accommodation price and add-on services,
    - **Accommodation only** - the discount applies only to the accommodation price,
    - **Add-ons only** - the discount applies only to add-on services.

- Below the fields, you can check an example of how much the guest will pay after applying the discount.

> **Fixed-amount discount**
>
> If the value of a fixed-amount discount is higher than the price it applies to, the discount amount will be limited to that price.

#### Step 2: How long is it valid?

- Choose how long the code should be valid:
    - **Until a specific date** - the code will stop working after the selected date,
    - **No end date** - the code works until you disable it, e.g., for repeat guests,
    - **For stays within a date range** - the discount applies only to stays within the selected period, e.g., off-season.

- If you select **Until a specific date**, set the period during which the guest can use the code in the **Can be used from** and **Can be used until** fields.

- If you select **No end date**, you don't need to set any dates.

- If you select **For stays within a date range**:
    - in the **Stay from** and **Stay until** fields, set the stay period for which the discount applies. The booked stay must fall within this range,
    - optionally click the **Toggle Also limit until when the code can be entered**, then in the **Can be used from** and **Can be used until** fields set the period during which the guest can use the code while making a booking.

#### Step 3: Restrictions

- Optionally set additional conditions for using the code. An empty field means no restriction.

![Restrictions and saving a discount code](https://docs.mobile-calendar.com/media/49/491cb7a5-ad7f-445b-b393-b471d687352c-269d5112.png)

- **Usage limit** - specify how many times the code can be used, e.g., 50 for a "first 50 people" campaign,
- **Minimum number of nights** - specify the minimum stay length required to apply the code,
- **Minimum booking value** - specify the minimum booking value required to apply the code,
- **Selected rooms only** - select the rooms the code should apply to. Leave the field empty if the code should apply to all rooms.

- Optionally, in the **Internal name** field, enter a name that will help you identify the code. This name is not visible to the guest.

- Leave the **Active immediately** toggle enabled if the code should be available to guests right after it is created.

- Click **Create code**.

### Managing discount codes

- Created codes are visible on the **Discount codes** page in the **Your codes** section.

- At the top of the page, you can check the number of **Active codes**, the number of expired codes, and the total number of uses across all codes.

- Click **All**, **Active**, or **Expired** to display codes with the selected status.

- On each code tile, you can check, among other things, its status, internal name, discount amount and scope, expiry date, restrictions, and the number of used and remaining uses.

![Discount code list](https://docs.mobile-calendar.com/media/87/8791d44a-7dc6-432c-8d0f-726dc85e3647-6352e15e.png)

- Click **Copy code** to copy the code and share it with guests, e.g., in an email message.

- Click **Edit** to change the settings of the selected code, then save your changes.

- Click the **Toggle** on the code tile to temporarily disable it or enable it again.

- Click the three-dots icon next to the code, select **Delete** and confirm the deletion.

> **Usage limit**
>
> One booking equals one use of the code, even if the guest books several rooms at the same time.

### Guest use of a discount code

- When making a booking, the guest can enter the received code in the **Discount code** field visible in the booking summary.

![Discount code field in the online booking system](https://docs.mobile-calendar.com/media/6d/6d0a4216-6c49-484b-9995-bf5da5ba4244-74634447.png)

- After entering the code, the guest confirms it by clicking **Activate code**.

- If the booking meets the code's conditions, the discount will be applied and included in the price summary.

- If the code cannot be applied, the guest will see a message explaining the reason, e.g., the code is invalid, has expired, has been used the maximum number of times, or the selected booking does not meet its conditions.
