---
title: "Retrieve Partner Revenue Lines"
method: GET
path: "/stats/reports/partner_revenue_lines"
tags: ["Stats"]
---

# Retrieve Partner Revenue Lines

`GET /stats/reports/partner_revenue_lines`

## Request

- Base URL: `https://api.whop.com/api/v1`
- URL: `https://api.whop.com/api/v1/stats/reports/partner_revenue_lines`
- Auth: HTTP bearer

The revenue lines charged to the businesses that the team of a partner business referred. Each row shows the commission paid to the partner business on that line. Lines that share an income source show the whole commission of that source. A team member who is not an owner sees only the referrals of their own team. While a day of the window is still being read, `commission` and `paid` are `null` on every row. A line may be missing. The days fill within minutes, so read the report again.

## Query parameters

- `referring_account_id` string, required
- `breakdown_by` 'revenue_line'
- `columns` string
- `windows` string
- `time_zone` string
- `revenue_line` string
- `income_source` string
- `order` 'commission' | 'paid'
- `direction` 'asc' | 'desc'
- `convert_to` string
- `first` integer
- `after` string
- `mode` 'owner'

## Headers

- `Api-Version-Date` string

## Response `200`

Each revenue line's figures for each requested window, with rows in the same order in every window.

- object
  - `data` object, required
    - `breakdown_by` string, nullable, required: What each row is, or `null` for one total row per window.
    - `columns` object[], required: The breakdown first, then each requested column, in row order.
    - `data_as_of` string, required: When the data was read, as an ISO 8601 timestamp.
    - `report` string, required: The report's key.
    - `reports` object[], required: One entry per requested window, in request order. Rows line up by index across entries.
      - `rows` object[], required: The page of rows. Only the requested columns are present.
        - `commission` Money, nullable
          - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
          - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
          - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
          - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
        - `income_source` object, nullable
          - `id` string, required: The income source that pays commission on this line. `null` when no source pays on it.
          - `name` string, required: Display name.
        - `paid` integer, nullable: `1` when the line's income source paid commission in the window, else `0`. `null` while a day of the window is still being read.
        - `revenue_line` object, nullable
          - `id` string, required: The ledger category of the revenue line.
          - `name` string, required: Display name.
      - `window` object, required: The window that answered, with the bounds of its data.
  - `page_info` object, required
    - `end_cursor` string, nullable, required: Pass as `after` for the next page.
    - `has_next_page` boolean, required: Whether more rows follow this page.
    - `has_previous_page` boolean, required: Whether rows precede this page.
    - `start_cursor` string, nullable, required: The cursor of the first row on this page.

## Other responses

- `400`: Invalid Parameters
- `403`: Forbidden

## Changes

- **2026-11-24** `14d574f2e215`: 1 info
  - added the new optional `query` request parameter `mode`
- **2026-11-19** `c78a76f211d1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/whop/apis/whop-api/changes/stats/reports/partner_revenue_lines/get.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
