# Creating and Evaluating Vouchers

## Summary

Vouchers are maintained under *eCom \\ Voucher management*.

A voucher is stored in the DeDeSales order as a **Header discount**. The usage rules and the effect in the order are described in the service description on the page *Vouchers and Special discounts*.

## Create voucher

1. Open *eCom \\ Voucher management* and add a voucher.
2. Select usage rule — one-time, multiple times, only on first order or once per customer.
3. Set discount value and specify whether it is charged **percentage** or as a **fixed value**.
4. Specify whether the voucher is **combinable with a Special discount**. See below.
5. Limit a period if necessary.
6. Save and provide data.
 

## What you specify when creating

Besides code and discount, four fields determine for whom and when the voucher applies:

<table id="bkmrk-feld-wirkung-von-%2F-b"> <thead> <tr> <th>Field</th> <th>Effect</th> </tr> </thead> <tbody> <tr> <td>From / until</td> <td>Validity period. Outside this, the shop reports *“The voucher has expired!”*</td> </tr> <tr> <td>Minimum order value</td> <td>The voucher only applies from this cart value. <code>0</code> means no limit.</td> </tr> <tr> <td>Type of customer selection</td> <td>restricts the group of customers, e.g. *all customers*</td> </tr> <tr> <td>Usability</td> <td>how often the code may be redeemed — one-time, multiple times, multiple times only on first order or multiple times only once per customer</td> </tr> </tbody> </table>

The discount is granted **only as a percentage** — the field is called *Discount %*.

## Combinable with a Special discount

<table id="bkmrk-wert-verhalten-im-sh"> <thead> <tr> <th>Value</th> <th>Behaviour in the shop</th> </tr> </thead> <tbody> <tr> <td>**Yes**</td> <td>Both discounts are added; the total goes as Header discount into the order.</td> </tr> <tr> <td>**No**</td> <td>The voucher is refused if the Special discount is higher than the voucher discount.</td> </tr> </tbody> </table>

With **No**, a comparison is made, not a blanket prohibition: If the voucher is better than the current Special discount, it is accepted. Only if the Special discount would be higher does the shop reject the voucher — the customer then keeps the cheaper Special discount.

## So that the customer can redeem the voucher

Additionally, the setting **Voucher input** under *eCom \\ Settings* must be enabled. This activates the input field in the Cart.

> **Attention:** Both places act independently. Without the *Voucher input* setting, there is no input field — the created voucher is then not redeemable, although it is valid.

## So that the discount arrives in the ERP system

> **Attention:** The Header discount only applies in your ERP system if your interface or your connector considers it. Also check how the interface is defined: fixed amounts are passed differently than percentage values.

## Evaluate who has used a voucher

1. Open *eCom \\ Voucher management*.
2. Select the desired voucher.
3. Switch to the tab **generated vouchers** on the left.
4. On the right, all vouchers that have been used appear.