# Discount Codes

In Payrexx, you can create discount codes to grant your customers a price reduction on their purchases.

## Discount Codes as a Marketing Tool

Discount codes are a proven marketing instrument in e-commerce. They can help you achieve the following goals:

* **Increase sales:** Discounts can create purchase incentives and help boost sales in the short term.
* **Acquire new customers:** Discount codes can attract new customers to your shop.
* **Enhance customer loyalty:** Reward existing customers with exclusive discounts to encourage repeat purchases.
* **Reduce cart abandonment:** A discount code can help customers complete their purchase more quickly.
* **Run seasonal promotions:** Discounts can help increase sales of seasonal products.
* **Measure campaign performance:** Discount codes can be used to track the success of specific campaigns.

## Availability of Discount Codes

Discount codes created in Payrexx can be redeemed by your customers in the following [e-commerce tools](https://docs.payrexx.com/merchant/english/account/tools):

* ✅ Pages
* ❌ Paylink
* ❌ QR Pay
* ✅ Terminal
* ❌ Invoice
* ❌ Donation

## Creating a Discount Code

* To create a discount code, go to **Pages > Discount Codes** in the merchant administration of your Payrexx account.
* Click the "Add" button:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2F3F1mTkl3qBXIt4uZLZgs%2Fimage.png?alt=media&#x26;token=e8aad1da-863d-4c26-af5b-f1d57ce98f2f" alt=""><figcaption><p>Adding a new discount code</p></figcaption></figure></div>

### Discount code for use in the "Pages" tool

Apply the following settings to create a discount code that your customers can redeem in your [Pages](https://docs.payrexx.com/merchant/english/account/tools/pages) shop:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FFhykY0XFZWpokimg78HR%2Fimage.png?alt=media&#x26;token=70f42aac-f88f-4317-a097-91bc454024e2" alt=""><figcaption><p>Creating a discount code for the "Pages" e-commerce tool</p></figcaption></figure></div>

1. **Use Terminal:** Make sure that the toggle "Use Terminal" is deactivated. This ensures that the discount code is available in the "Pages" tool.
2. **Payment Page:** Select the payment page (Page) on which the discount code should be redeemable.

{% hint style="info" %}
Please note that only payment pages with a predefined amount can be selected.
{% endhint %}

3. **Discount Code:** Assign any name to the discount code.
4. **Type:** Define whether you want to offer a fixed price reduction (e.g. EUR 10.00) or a percentage discount (e.g. 20%).
5. **Discount:** Enter the discount amount.
6. **Available Amount:** Specify how many times the discount code can be redeemed in total. If you leave this field empty, the discount code can be redeemed an unlimited number of times or by an unlimited number of customers.
7. **Valid Till:** Define the expiration date of the discount code, or leave the field empty to create a discount code without a time limit.

Click "Save" to create the discount code.

### Discount code for use in the "Terminal" tool

Apply the following settings to create a discount code that your customers can use with your [Terminal](https://docs.payrexx.com/merchant/english/account/tools/terminal):

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FeqaDcDoc8rycYafbJq4a%2Fimage.png?alt=media&#x26;token=0710c429-169c-4217-be46-73a749a51974" alt=""><figcaption><p>Creating a discount code for the "Terminal" e-commerce tool</p></figcaption></figure></div>

1. **Use Terminal:** Activate the "Use Terminal" toggle.
2. **Discount Code:** Assign any name to the discount code.
3. **Type:** Specify whether you want to offer a fixed price reduction (e.g., EUR 10.00) or a percentage discount (e.g., 20%).
4. **Discount:** Enter the discount amount.
5. **Available Amount:** Define how many times the discount code can be redeemed in total. If you leave this field empty, the discount code can be redeemed an unlimited number of times or by an unlimited number of customers.
6. **Valid Till:** Set the expiration date of the discount code, or leave the field empty to create a discount code without a time limit.

Click "Save" to create the discount code.

{% hint style="warning" %}
Please note that it is not possible to offer a 100% discount.
{% endhint %}

## Importing Discount Codes

In addition to manually creating discount codes, you can also import them from a file. This is particularly useful when managing a large number of discount codes.

### Creating the import file

You can use the following file types for the import:

* Excel file (XLSX)
* CSV file

Create the discount code table with the following columns. To illustrate, the example table below contains five sample entries:

<table><thead><tr><th>Discount code</th><th>Type</th><th>Amount</th><th>Currency</th><th data-type="number">Quantity</th><th>Valid until</th></tr></thead><tbody><tr><td>xHze6a9</td><td>price-amount</td><td>10</td><td>CHF</td><td>50</td><td>31.12.2024</td></tr><tr><td>Zf2mf2p</td><td>price-amount</td><td>20</td><td>CHF</td><td>50</td><td>31.12.2024</td></tr><tr><td>W3n6Zlf</td><td>price-amount</td><td>5</td><td>CHF</td><td>1</td><td>30.06.2025</td></tr><tr><td>r6gS9uu</td><td>percentage</td><td>10</td><td></td><td>20</td><td>31.12.2025</td></tr><tr><td>7tAnu7h</td><td>percentage</td><td>30</td><td></td><td>1</td><td>31.12.2025</td></tr></tbody></table>

{% hint style="info" %}
The "price-amount" type creates a discount code with a fixed discount amount (e.g., 10.00 CHF). If you choose the "percentage" type, a percentage discount (e.g., 10%) will be applied.
{% endhint %}

{% hint style="info" %}
The columns "Quantity" and "Valid until" are optional. All other columns are mandatory.
{% endhint %}

### Importing discount codes

Please note that at least one [page](https://docs.payrexx.com/merchant/english/account/tools/pages) must exist in order to import discount codes from a file. To start the import, follow these steps:

1. Navigate to **Pages > Overview** in the Payrexx backend.
2. Select the desired page.
3. Hover over the row and click the upload icon:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FKBjnEp60svXjAaE9s3ew%2Fimage.png?alt=media&#x26;token=4bc62326-6853-4533-82be-92e1d9de8361" alt=""><figcaption><p>Starting the import of discount codes in Payrexx</p></figcaption></figure></div>

4. Click on "Select File" and then click "Go to the next step".
5. Map the columns from the CSV or XLS(X) file to the corresponding fields in Payrexx. Then click "Go to the next step".

The imported discount codes are now visible under **Pages > Discount Codes**.

## Redeeming Discount Codes from the Customer’s Perspective

Customers can redeem discount codes on the sales page to which you have assigned them. After clicking "Do you have a discount code?", a field will appear where they can enter the code.

The customer enters the discount code and clicks "Redeem", after which the purchase price is automatically adjusted accordingly.

The customer then clicks "Proceed to Checkout" and completes the order.

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2Fd6sozKP6HBeB5Zn3A2rd%2Fimage.png?alt=media&#x26;token=5a978d91-82a3-48af-adca-26d742dbeeab" alt="" width="267"><figcaption><p>Link for entering the discount code</p></figcaption></figure></div>
