> For the complete documentation index, see [llms.txt](https://docs.shoffi.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shoffi.app/general/the-affiliate-commission.md).

# The affiliate commission

## Commission rate

The commission rate is the percentage of each transaction that an app owner pays an affiliate for transactions made by a referred store.

Commission can apply for as long as the store pays for the app. This includes recurring, usage-based, and one-time payments.

**Gross amount vs. net amount**

Shoffi uses the **gross amount** from Shopify Partners to calculate affiliate commissions.

This means commissions are based on the full transaction amount before Shopify fees and other deductions. The **net amount** is the final amount paid out after fees such as processing fees, taxes, currency conversion, and other applicable charges. Because these deductions vary, Shoffi does not use the net amount for commission calculations.

## Different transaction types

* **Recurring payments:**

  If the app charges a recurring fee, the affiliate gets a commission on each transaction. Annual subscriptions and payments count as earnings for the month when they were paid.
* **One-time payments**

  If the app charges a one-time fee or for in-app purchases, the affiliate gets a commission on each transaction.
* **Usage-based charges**

  If the app charges based on merchant usage, the affiliate gets a commission on each transaction.

## Commission period limit

This is the number of months an affiliate earns commission from the referred store's transactions. If there is no limit, the affiliate earns commission as long as the referral is active.

## Attribution window

Shoffi keeps a 30-day attribution window for referral links.

If a merchant visits the referral link and subscribes to the app from the same device in the next 30 days, Shoffi will count that as a successful referral.
