# Coupons code

You can generate promo codes with a percentage or a fixed reduction valid on all or part of the products in your store.

To do this, go to the [COUPON ](https://tip4serv.com/dashboard/my-coupons)administration page and click on the **Create coupon code** button.

### Configure coupon rules

In this example we are creating a **50%** coupon code only valid on theses products: **VIP, VIP+ and MVP+**. And the discount will **end on June 24, 2023**.

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2F136XmnMdvyyTmvqCs0a2%2F14dff7d976521fccab748248299f0c72.png?alt=media&#x26;token=eac98a2c-1548-4b4c-8ca5-1e41ec56f3af" alt=""><figcaption><p>Coupon code editor</p></figcaption></figure>

### Result on the checkout

The customer applies the code in the checkout page.

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2F8Y6Ztow7noNnCg2g4WdN%2F7e4a8f1970104ae612a65ec60ac15df5.png?alt=media&#x26;token=3665d56b-387f-4b13-a0e9-4a646da35d09" alt=""><figcaption><p>Checkout page screenshot</p></figcaption></figure>

### Configure limit options

{% hint style="info" %}
Once the limit is reached, the customer will receive a message on the payment page indicating that the usage limit has been reached.
{% endhint %}

<details>

<summary>Expiration date</summary>

Select the date on which the coupon becomes invalid.

</details>

<details>

<summary>Global usage limit</summary>

Specify how many times this coupon can be used in your store.

</details>

<details>

<summary>Minimum spend</summary>

Specify what is the minimum amount of the basket for the customer to use this coupon.

</details>

<details>

<summary>Maximum spend</summary>

Specify what is the maximum amount of the basket for the customer to use this coupon.

</details>

<details>

<summary>Limit per user</summary>

Specify how many times a player can use this coupon.&#x20;

This limit works according to the [player's ID](https://docs.tip4serv.com/store-setup/server-commands/players-id-markers) you use in your products: steam\_id, minecraft\_uuid, username, discord\_id...

</details>

<figure><img src="https://2187496599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrJFlpzFF4M0XjvFfIMsk%2Fuploads%2FrSG5m1fBKNQ93rltTr4y%2Fd91f298f78f4657201e30d01584be468.png?alt=media&#x26;token=4d72a5ca-bbf9-45c5-8f59-827d550f3f21" alt=""><figcaption><p>Limit reached in the checkout page</p></figcaption></figure>


---

# 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.tip4serv.com/store-setup/coupons-code.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.
