> ## Documentation Index
> Fetch the complete documentation index at: https://dub.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing partner commissions

> Learn how partner commissions work on Dub, and how to create manual commissions or clawbacks (negative commissions).

<Tip>
  This feature is only available on [Business plans and
  above](https://dub.co/pricing).
</Tip>

## Where to find your program commissions?

When viewing your Partner Program navigation, click on the **Commissions** page, under the **Insights** group:

<Frame>
  <img src="https://mintcdn.com/dub/qZRMqQSs7P1Glr4r/images/dub-partners/commissions-nav.png?fit=max&auto=format&n=qZRMqQSs7P1Glr4r&q=85&s=decdb2c8873c196fc04e71a32754107e" alt="Commissions page within your dashboard" width="1882" height="1271" data-path="images/dub-partners/commissions-nav.png" />
</Frame>

This opens up the commissions table view, where you can see a list of your historical commissions for your program:

<Frame>
  <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/commission-table.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=e510750c9acd64b0a0a46a4c5beef8ba" alt="Commissions page within your dashboard" width="2014" height="884" data-path="images/dub-partners/commission-table.png" />
</Frame>

| Column             | Data                                                                                                                  |
| ------------------ | --------------------------------------------------------------------------------------------------------------------- |
| Date               | Commission date                                                                                                       |
| Customer           | The customer associated with the lead or sale                                                                         |
| Partner            | The partner earning the commission                                                                                    |
| Group              | The group the partner belongs to                                                                                      |
| Type               | The commission type (custom, click, lead, or sale)                                                                    |
| Amount             | The sale amount, or single count for custom, click, or lead rewards                                                   |
| Commission         | The amount the partner will receive                                                                                   |
| Status             | Current status of the commission. [Learn more about statuses](/help/article/partner-commissions#commission-statuses). |
| Additional actions | Actions to edit the commission, and copy the invoice ID                                                               |

<Note>
  To analyze commission earnings over time, see [Commission
  analytics](/help/article/commission-analytics).
</Note>

## Commission statuses

When a commission is recorded on Dub, it goes through the following statuses:

* `Pending`: This is the initial status for a commission. Depending on your program's [holding period](/help/article/partner-payouts#payout-holding-period), commissions can stay in "pending" status anywhere from less than a day to 90 days.
* `Processed`: When a commission has been added to a payout (after any applicable [holding period](/help/article/partner-payouts#payout-holding-period)), its status will change from "pending" to "processed".
* `Paid`: When the payout containing the commission has been paid, the commission will be updated to "paid" status.

If needed, you can also update the status for a given commission accordingly:

* `Refunded`: If the sale for the commission was refunded. This is usually automatically detected via our [Stripe integration](https://dub.co/integrations/stripe), or can also be manually set via the dashboard or the [API](/docs/api-reference/endpoint/update-a-commission).
* `Fraud`: If a commission event was found to be fraudulent, you can mark them as "Fraud" via the dashboard or the [API](/docs/api-reference/endpoint/update-a-commission). **This action cannot be undone.**
* `Canceled`: If a commission event was canceled/voided (e.g. in cases of self-referrals where commissions are not eligible for payout), you can mark them as "Canceled" via the dashboard or the [API](/docs/api-reference/endpoint/update-a-commission). **This action cannot be undone.**
* `Duplicate`: If a commission event was found to be a duplicate, you can mark them as "Duplicate" via the dashboard or the [API](/docs/api-reference/endpoint/update-a-commission). **This action cannot be undone.**

[Learn more about changing commissions statuses](/help/article/partner-commissions#commission-status).

## Single commission view

Each commission has its own page that provides further details about the commission, associated payout, and activity. This can be helpful when you need more details about a commission, or you want to know when something changed.

<Frame>
  <img src="https://mintcdn.com/dub/RgvrRNLELiPdn0IT/images/dub-partners/commission-single-view.png?fit=max&auto=format&n=RgvrRNLELiPdn0IT&q=85&s=7577b2d62c27613753d3dd2df0b51266" alt="Single commission view" width="2014" height="950" data-path="images/dub-partners/commission-single-view.png" />
</Frame>

## Editing commissions

You can change a commission's status and edit the earnings amount for all unpaid commissions. This can be completed from one of two areas:

<Steps>
  <Step title="Commissions table">
    From the Commissions table, click the `⋯` button and select **Edit commission**.

    <Frame>
      <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/edit-commission-table.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=c12e221108c97086c060639a922b2d1d" alt="Edit commission table" width="2014" height="950" data-path="images/dub-partners/edit-commission-table.png" />
    </Frame>
  </Step>

  <Step title="Single commission page">
    From the [single commission page](/help/article/partner-commissions#single-commission-view), click the **Edit** button in the top right.

    <Frame>
      <img src="https://mintcdn.com/dub/RgvrRNLELiPdn0IT/images/dub-partners/edit-commission-single.png?fit=max&auto=format&n=RgvrRNLELiPdn0IT&q=85&s=f76303894875b15ac04cfe73357486b9" alt="Single commission edit" width="2014" height="950" data-path="images/dub-partners/edit-commission-single.png" />
    </Frame>
  </Step>
</Steps>

With the edit commission modal open, you can change the status and earnings amount of any commission that hasn't been paid yet.

<Frame>
  <img src="https://mintcdn.com/dub/ekwYpueVEM-7sKVr/images/dub-partners/edit-commission.png?fit=max&auto=format&n=ekwYpueVEM-7sKVr&q=85&s=95a1c1ffaf3bab0e5d00ce1459e5f5c0" alt="Edit commission modal" width="2014" height="1036" data-path="images/dub-partners/edit-commission.png" />
</Frame>

If you change a commission's status to `Canceled` or `Fraud`, you're also able to mark all previous commissions for this customer-partner pair as that status too. This will also prevent the partner from earning future commissions from this customer.

<Frame>
  <img src="https://mintcdn.com/dub/ekwYpueVEM-7sKVr/images/dub-partners/edit-commission-mark-all.png?fit=max&auto=format&n=ekwYpueVEM-7sKVr&q=85&s=4871c91160dc792ab34beb4d7bd3c94f" alt="Mark all commissions" width="2014" height="1298" data-path="images/dub-partners/edit-commission-mark-all.png" />
</Frame>

### Earnings amount

You can only edit the earnings amount for [custom commissions](#one-time-commissions) that haven't been paid yet. If the earnings amount is changed, it will also appear in the activity log on the [commissions page](/help/article/partner-commissions#single-commission-view).

<Frame>
  <img src="https://mintcdn.com/dub/_IPpbIB_tIprQk0w/images/dub-partners/edit-commission-custom-1.png?fit=max&auto=format&n=_IPpbIB_tIprQk0w&q=85&s=25bd97f9d5f0d4c9774bfd1f0054a147" alt="Edit commission earnings modal" width="2014" height="1034" data-path="images/dub-partners/edit-commission-custom-1.png" />
</Frame>

### Bulk editing

You can bulk edit the status of multiple commissions at once by clicking the checkboxes next to the commissions you want to edit, then click **Edit commissions**.

<Frame>
  <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/bulk-edit-commissions.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=a7b74fb36db4b699498e79e6fd1c02c3" alt="Bulk edit commissions selection" width="2625" height="1358" data-path="images/dub-partners/bulk-edit-commissions.png" />
</Frame>

From the modal, select the new status for the commissions and click **save**.

<Frame>
  <img src="https://mintcdn.com/dub/_IPpbIB_tIprQk0w/images/dub-partners/bulk-edit-commission-modal.png?fit=max&auto=format&n=_IPpbIB_tIprQk0w&q=85&s=f7faa70f2f35c2d4526f9e1392263b05" alt="Bulk edit commissions editing" width="2014" height="950" data-path="images/dub-partners/bulk-edit-commission-modal.png" />
</Frame>

<Tip>
  You can only bulk edit the status of commissions that haven't been paid yet.
</Tip>

## Creating manual commissions

Occasionally, you might need to create a one-off or recurring commission to account for a missed commission or other reasons. On Dub, you can easily create those commissions via the dashboard, and they will be included in the next payout for that partner.

This can be accomplished by clicking **Create commission** from your **Commissions** page.

<Frame>
  <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/create-commission-main.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=1fb8c2bdc750f4c46dfe7c80431fd21c" alt="Create one-time commission" width="2739" height="1294" data-path="images/dub-partners/create-commission-main.png" />
</Frame>

It can also be accomplished by clicking **Create commission** from an individual partner profile

<Frame>
  <img src="https://assets.dub.co/cms/create-commission-partner.png" alt="Create one-time commission" />
</Frame>

### One-time commissions

Manual one-time commissions are often used when you want to send a thank-you or bonus, fix a missed commission due to a clerical or tracking error, or create a payout that isn’t tied to a customer, referral link, or transaction.

<Frame>
  <img src="https://assets.dub.co/cms/create-commission-onetime-01.png" alt="Create one-time commission" />
</Frame>

| Input            | Description                                                                                               | Required |
| ---------------- | --------------------------------------------------------------------------------------------------------- | -------- |
| Amount           | Commission amount                                                                                         | ✅        |
| Description      | Add a custom description                                                                                  | ❌        |
| Commission date  | Enable to add a custom date. If a custom date isn't added, it will auto-fill to the current date and time | ❌        |

### Lead commission

Manual lead commissions are one-time and based on your [reward settings](/help/article/partner-rewards), so the commission is automatically calculated. Use this for rewarding a partner for a qualified signup or referral. If your program doesn't have a lead reward, this option won't show.

<Frame>
  <img src="https://assets.dub.co/cms/create-commission-lead-01.png" alt="Create one-time commission" />
</Frame>

| Input           | Description                                                                                                                            | Required |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| Referral link   | The referral link that the lead is attributed to                                                                                       | ✅        |
| Customer        | The customer associated with the lead. [Read more about adding a customer ](/help/article/partner-commissions#creating-a-new-customer) | ✅        |
| Lead event date | The date of the lead event. If no date is selected, it will auto-fill to the current date and time                                     | ❌        |
| Lead event name | The name of the lead event.                                                                                                            | ❌        |

### Recurring sale commission

Manual sale commissions are recurring and based on your [reward settings](/help/article/partner-rewards), so the partner commission is calculated automatically after entering the sale amount. Sale commissions also create a `sale event` under your analytics, and updates your revenue statistics.

<Frame>
  <img src="https://assets.dub.co/cms/create-commission-sale-01.png" alt="Create sale commission" />
</Frame>

| Input         | Description                                                                                    | Required                                |
| ------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------- |
| Referral link | The referral link that the sale is attributed to                                               | ✅                                       |
| Customer      | The customer associated with the sale. Read more about adding a customer                       | ✅                                       |
| Event source  | Create a new sale event, or import from Stripe                                                 | ✅                                       |
| Sale date     | The date of the sale. If no date is selected, it will auto-fill with the current date and time | ❌                                       |
| Sale amount   | The amount of the sale in USD.                                                                 | Required if not reusing existing events |
| Invoice ID    | The invoice ID of the sale. Can be used to fetch the commission later via the API              | ❌                                       |
| Product ID    | The product ID of the sale. Can be used to fetch the commission later via the API              | ❌                                       |

### Creating a new customer

If the customer you need to associate the commission with doesn't exist, you can create one in Dub to match your records. To do this, when searching for a customer in the customer field, click on **Create new customer**.

This will open up a modal where you can add your customer's details or import from Stripe.

<Frame>
  <img src="https://mintcdn.com/dub/nPBAuYDYSWm_ZYUo/images/dub-partners/create-customer-location.png?fit=max&auto=format&n=nPBAuYDYSWm_ZYUo&q=85&s=53b9bb9fca6eca6b5c990f491aa11062" alt="Create new customer location" width="2014" height="1008" data-path="images/dub-partners/create-customer-location.png" />
</Frame>

Once the customer is created, you can then associate any commissions to them, and future commissions will automatically be associated with that customer.

<Frame>
  <img src="https://assets.dub.co/cms/create-new-customer-01.png" alt="Create customer modal" />
</Frame>

| Input              | Description                                                          | Required |
| ------------------ | -------------------------------------------------------------------- | -------- |
| Name               | The name of the customer                                             | ❌        |
| Email              | The customer's email                                                 | ❌        |
| Country            | The customer's country                                               | ✅        |
| External ID        | Your unique ID for this customer (e.g. database ID of email)         | ✅        |
| Stripe Customer ID | Add a Stripe customer ID to attribute recurring sales to the partner | ❌        |

#### Importing customers from Stripe

If you've already [connected to Stripe](/docs/integrations/stripe#stripe), you can import your customer by clicking on **Import from Stripe**. This will allow you to search existing Stripe customers by their email, and click to import their details into Dub.

<Tip>
  If a customer with the same Stripe Customer ID already exists in Dub, you
  won't be able to import that customer.
</Tip>

>

<Frame>
  <img src="https://assets.dub.co/cms/import-customer-from-stripe-01.png" alt="Importing a Stripe customer" />
</Frame>

Once selected, it will auto-fill the customer profile details. Click **Create customer** to add them to Dub.

<Frame>
  <img src="https://assets.dub.co/cms/import-customer-from-stripe-02.png" alt="Importing a Stripe customer" />
</Frame>

### Importing commissions from Stripe invoices

During the commission creation flow, you can choose between the following options:

1. **Create new events**: Create a new sale event entirely.
2. **Import from Stripe**: Create commissions from the customer's existing Stripe invoice payment events

<Frame>
  <img src="https://assets.dub.co/cms/import-invoices-from-stripe-01.png" alt="Importing invoices from Stripe" />
</Frame>

Then, once you click **Create commission**, this will import the customer's paid invoices and record them as sale events + partner commissions to their [customer page](help/article/customer-insights).

## Creating a clawback

In the event an incorrect commission has been paid to a partner, you can create a clawback commission, which results in a negative commission for the partner and is subtracted from their next payout.

To create a clawback, click the **More button** next to **Create commissions**, then **Create clawback**.

<Frame>
  <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/commissions-create-clawback.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=2f39cb93d45b8efdb2f35f89398a87e6" alt="Commissions dropdown" width="1066" height="616" data-path="images/dub-partners/commissions-create-clawback.png" />
</Frame>

Fields required to create a clawback:

* **Partner**: The partner receiving the clawback
* **Amount**: The clawback amount
* **Clawback reason**: *Order canceled, Fraud, Terms violation, Tracking error, Payment failed, Ineligible partner, Duplicate commission, Other*

After the clawback is created, you'll see a negative commission in your table view:

<Frame>
  <img src="https://assets.dub.co/cms/clawback-created.png" alt="Clawback created" />
</Frame>

The partner affected will see this reflected in their earnings view on their dashboard:

<Frame>
  <img src="https://assets.dub.co/cms/clawback-partner-view.png" alt="Clawback partner view" />
</Frame>

## Exporting commissions

To export your commissions, click the more button next to **Create commissions** then **Export as CSV**.

<Frame>
  <img src="https://mintcdn.com/dub/AFIUasEa1Zcd20pv/images/dub-partners/commissions-export-csv.png?fit=max&auto=format&n=AFIUasEa1Zcd20pv&q=85&s=fb4b4da7064939e765cac9bd262b4ab8" alt="Commissions dropdown with export option" width="1066" height="610" data-path="images/dub-partners/commissions-export-csv.png" />
</Frame>

In the **Export commissions** modal, select which fields you want to include in your export, then click **Export commissions** to initiate. An email will be sent to you with a link to download the CSV file.

<Frame>
  <img src="https://mintcdn.com/dub/qZRMqQSs7P1Glr4r/images/dub-partners/commissions-export-options.png?fit=max&auto=format&n=qZRMqQSs7P1Glr4r&q=85&s=db1c40f343bd4fd81ef08bfc5a66188a" alt="Commission export options modal" width="2014" height="1316" data-path="images/dub-partners/commissions-export-options.png" />
</Frame>

<Tip>
  To export commissions with any filters you currently have applied, make sure to toggle on "Apply current filters". This will ensure that only the commissions matching your current filters will be included in the export.
</Tip>

After receiving the email, click **Download export** to download your commissions CSV file.

<Frame>
  <img src="https://mintcdn.com/dub/qZRMqQSs7P1Glr4r/images/dub-partners/commissions-export-email.png?fit=max&auto=format&n=qZRMqQSs7P1Glr4r&q=85&s=2b9c3614c4d53824e01009d46cc5a20d" alt="Commission export email" width="2014" height="1274" data-path="images/dub-partners/commissions-export-email.png" />
</Frame>
