Stats

Retrieve Partner Revenue Lines

Changed on

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.

get/stats/reports/partner_revenue_lines

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

referring_account_id, string required

Partner business to report on, prefixed biz_.

breakdown_by, 'revenue_line'

revenue_line for one row per revenue line. Omit it for one row per window with the total commission.

columns, string

Comma-separated columns to return on each row. Defaults to commission,paid. income_source is available on revenue_line rows.

windows, string

Comma-separated windows of at most 366 days, at most four, in the syntax every report accepts. Each window covers whole days, through the end of its last day. A prev: window covers as many days and ends where the window it precedes starts. Defaults to 30d.

time_zone, string

IANA zone that the days of each window fall in. Defaults to Etc/UTC.

revenue_line, string

Comma-separated revenue lines to keep.

income_source, string

Comma-separated income sources to keep.

order, 'commission' | 'paid'

The requested metric that ranks rows, by its value in the first window. Defaults to the first requested metric.

direction, 'asc' | 'desc'

Ranking direction. Defaults to desc.

convert_to, string

Currency code to return money in. Defaults to usd.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

mode, 'owner'

Whose figures the report reads, one of the modes the report has. global reads all of Whop with nothing left out.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

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

object required
data, object required
page_info, object required

Example response

{
  "data": {
    "breakdown_by": "revenue_line",
    "columns": [
      {
        "key": "revenue_line",
        "name": "Revenue line",
        "type": "property"
      }
    ],
    "data_as_of": "2026-01-01T12:00:00.000Z",
    "report": "partner_revenue_lines",
    "reports": [
      {
        "rows": [
          {
            "commission": {
              "amount": "-1234.56",
              "currency": "usd",
              "decimals": 2,
              "display_decimals": 2
            },
            "income_source": {
              "id": "sales",
              "name": "Sales"
            },
            "paid": 1,
            "revenue_line": {
              "id": "payment_processing_percentage_fee",
              "name": "Payment processing percentage fee"
            }
          }
        ],
        "window": {
          "as_of": null,
          "from": "2026-01-01T12:00:00.000Z",
          "key": "2026-06-01..2026-06-30",
          "kind": "range",
          "time_zone": "Etc/UTC",
          "to": "2026-01-01T12:00:00.000Z"
        }
      }
    ]
  },
  "page_info": {
    "start_cursor": "MQ"
  }
}

Changes