> For the complete documentation index, see [llms.txt](https://docs.tracknow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tracknow.io/affiliates/coupon-requests.md).

# Coupon Requests

A campaign can be configured to allow affiliates to request coupon codes. When enabled, affiliates can submit requests for their desired coupon codes directly from the affiliate portal.

You can choose between two approval workflows:

* **Manual approval** - A manager reviews and approves each request before the coupon is created.
* **Automatic approval** - Coupon requests are automatically sent to your system, where the requested coupon codes are created without manual intervention.

***

### Enabling Coupon Requests

Navigate to:

**Campaigns** → Locate the campaign you want to enable this on → **Actions** → **Edit** → **Affiliate Coupon Creation** setting

<figure><img src="/files/1Wnaj1kByEMFU35EnhDm" alt=""><figcaption></figcaption></figure>

#### Setting Options

**Never (Default)**\
Affiliates cannot request coupon codes.

**Approve Manually**\
Affiliates can submit coupon code requests. Each request must be reviewed and approved by a manager, and the coupon must be created manually in your system.

**Approve Automatically**\
Affiliates can submit coupon code requests. Configure a GET endpoint to receive these requests and create the coupons in your system automatically. If your endpoint responds with HTTP status `200` or `201`, indicating that the coupon was created successfully, Tracknow will automatically approve the request and create the coupon on the affiliate's account.<br>

**Example**

{% code overflow="wrap" %}

```
GET https://your-domain.com/api/create-coupon?coupon={coupon_code}
```

{% endcode %}

> **{coupon\_code}** - A macro that Tracknow replaces with the coupon code requested by the affiliate before sending the GET request to your endpoint.

***

### Affiliate Submitting a Coupon Request

Affiliates can request coupons on the campaign page.

**Campaign/s** → Click on the relevant campaign → **Coupons** section → **Request Coupon** → Fill out the coupon value → **Submit**

<figure><img src="/files/rc0qcTWXZ9BbENMzJ412" alt=""><figcaption></figcaption></figure>

***

### Manager Manual Coupon Approval

Once an affiliate submits his coupon for manual approval, his manager will get a notification.

<figure><img src="/files/lZQXrZIA5HsyYyBbCqK1" alt=""><figcaption></figcaption></figure>

Clicking on the notification will take he manager to the coupon request.

Alternatively, you can reach the coupon list by clicking **Affiliates** → **Coupons.**

To approve or decline a coupon request, click **Actions** → **Edit** → Change the **Status** → **Save.**

<figure><img src="/files/dzY3yXWIoSwYD1tm9lur" alt=""><figcaption></figcaption></figure>

The affiliate associated with the request will recieve a notification that his coupon request was Approved/Declined.

<figure><img src="/files/6P3yW1hBpyB4mhbe31x4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.tracknow.io/affiliates/coupon-requests.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
