# Lifetime Payout

A **Lifetime** payout enables affiliate commissions for conversions generated by clients that have a lifetime association with the affialite (even if they do not visit the affiliate link or use an affilaite coupon code).

***

### Creating a Lifetime Payout

Navigate to **Campaigns** → Locate the relevant campaign → Click the three dot icon under the **Actions** column → **Payout Settings** → **Add Payout** → Choose **Lifetime** as the **Payment Type**

<figure><img src="https://1097958070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHX682uo79XLNkfkN58br%2Fuploads%2FGJbws7XiqADYu4ACiFPl%2Fchrome_rN0henzjzQ.gif?alt=media&#x26;token=5eb34ed4-d0f9-4d15-ab68-cd6d5275733d" alt=""><figcaption></figcaption></figure>

The rest of the payout settings can be configured based on your requirements.

***

### Creating a New Lifetime Association

New lifetime association can only be created when the client is **new.**

To indicate to our system that the client is new, your postback must include `new_customer=true` and it must include a `customer_id={value}` (for example, the client's email address).

#### Payout Example

Let's create a lifetime payout that is triggered on the client's first purchase:

<figure><img src="https://1097958070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHX682uo79XLNkfkN58br%2Fuploads%2FBAwpi94ugT6EuijAMSHC%2Fimage.png?alt=media&#x26;token=7e921567-09d3-4c5a-973c-c2c64b165714" alt=""><figcaption></figcaption></figure>

The following settings were used:

| Field                         | Value          |
| ----------------------------- | -------------- |
| **Title**                     | Purchase       |
| **Custom Payout Text**        | -              |
| **Payout Type**               | General Payout |
| **Commission Type**           | Percentage     |
| **Payment Type**              | Lifetime (%)   |
| **Countries**                 | -              |
| **Disallowed Countries**      | -              |
| **Affiliate Commission**      | 5%             |
| **Max Commission**            | -              |
| **Goal Value**                | -              |
| **Default Conversion Status** | -              |

When a new customer completes a purchase and the postback includes both `customer_id` and `new_customer=true`, the Lifetime payout is triggered.

At that point:

* The referring affiliate receives **5% of the purchase amount**.
* Tracknow creates a **lifetime association** between that `customer_id` and the affiliate.

Once this association is established, the affiliate will automatically earn commissions on all future qualifying purchases made under that same `customer_id`.

#### Postback Example

```
https://example-tracking.tracknow.info/postback?click_id=48645abf-a999-43b1-8831-9074b41bcd4a&order_id=10596&amount=100&new_customer=true&customer_id=john%40gmail.com
```

This postback represents a purchase made by a new client and it contains the following details:

* `click_id=48645abf-a999-43b1-8831-9074b41bcd4a` - Represents the affiliate's identifier that was generated when the client clicked the affiliate's link and passed on to the website's landing page. With this parameter our system knows who the referring affilaite is and what is the correct campaign.
* `order_id=10596` - The store's internal order ID represnting this purchase
* `amount=100` - The purchase amount from which the percentage based commission is calcauted
* `new_customer=true` - Indicates that this is a new client and this is his first purchase
* `customer_id=john%40gmail.com` - The client's email that will be used to form the association with his referring affiliate
