# Payout as voucher

{% hint style="info" %}
As an alternative to cash payments, affiliates can choose to receive promotion codes via this configuration. The extension automatically generates individual promotion codes, which are sent to the affiliates. When configuring the promotion, it is important that it is active, assigned to the sales channel during the valid period, and has an absolute discount value. In addition, 'Individual promotion codes' must be specified as the promotion code type.
{% endhint %}

#### Promotions for payouts

An unlimited number of discount promotions can be stored here, which affiliates can use to generate promotion codes. The promotion codes are generated individually and, of course, take into account whether an affiliate's outstanding credit balance is sufficient. The promotion codes are sent by email as standard.

It is important for a promotion that it meets the following requirements:

* Must be active
* Must be within the valid period
* Must be assigned to the correct sales channel
* Must have an absolute discount
* The promotion code type "Individual promotion codes" must be selected

In the personal affiliate area, discount promotions are automatically sorted according to the value of the absolute discount.

#### Individual pattern for the promotion codes sent to affiliates

This allows you to define a user-defined pattern for the promotion codes, which are then automatically generated according to this pattern. This can be changed at any time and does not affect codes that have already been created. Codes should not be generated manually in the promotion, as the extension takes care of this automatically. The following value is stored here by default:

It should be noted that only a consecutive set of variables can be converted.

The possible variables are:

* `%d` - Digits 0-9
* `%s` - Letters A-Z

The default value is: `AFFILIATE-%s%s%s%s%s`

All placeholder variables are automatically replaced with a character from the corresponding set when the promotion code is generated. The system checks whether the promotion code has already been generated. `%s` will be replaced for a `C` or `G`, for example.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codegiganten.de/plugin-documentation/en/apps/affiliate-marketing/configuration/payout-as-voucher.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
