Retrieve Partner Revenue Lines
Changed onThe 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.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
Partner business to report on, prefixed biz_.
revenue_line for one row per revenue line. Omit it for one row per window with the total commission.
Comma-separated columns to return on each row. Defaults to commission,paid. income_source is available on revenue_line rows.
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.
IANA zone that the days of each window fall in. Defaults to Etc/UTC.
Comma-separated revenue lines to keep.
Comma-separated income sources to keep.
The requested metric that ranks rows, by its value in the first window. Defaults to the first requested metric.
Ranking direction. Defaults to desc.
Currency code to return money in. Defaults to usd.
Number of results to return from the start of the range.
Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.
Whose figures the report reads, one of the modes the report has. global reads all of Whop with nothing left out.
Headers
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.
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
- info
added the new optional
queryrequest parametermode
- info
- info
endpoint added
- info