Get time series
Stats expose aggregated time series built from your account, the same data that powers the Whop dashboard charts. Each query rolls financial activity into periods (group_by day, week, or month) over the from–to window and returns the total amount and line_count for each, so you can chart revenue, refunds, fees, or net activity without reconstructing raw transactions. Set resource_type to choose what you’re measuring (ex. wallet), pass account_id to read a sub-account, and narrow with reporting_category, grouping, and line_category (applied in that order).
company:balance:read permission. See
Permissions.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The type of resource to query. Currently only wallet is supported.
wallet Query a specific account's wallet instead of the caller's own.
Pass a biz_ or user_ tag. The caller must have company:balance:read
permission on the target account.
"biz_abc123"
"global"
Start date in ISO 8601 format.
"2025-01-01"
End date in ISO 8601 format.
"2025-12-31"
Time bucket granularity.
day, week, month Filter to a predefined reporting category. Each category maps to a curated set of line categories.
Call /stats/schema?resource_type=wallet to see all reporting categories and which line categories each one includes.
Filter to specific groupings. Pass multiple values to include several
(e.g. grouping[]=payments&grouping[]=refunds).
Call /stats/schema?resource_type=wallet to see all groupings and which line categories belong to each.
Filter to specific transaction types. Pass multiple values to include several
(e.g. line_category[]=payment_gross&line_category[]=payment_refund).
When omitted, all categories are included.
Call /stats/schema?resource_type=wallet to see all line categories with descriptions.
Filter to only include rows denominated in this currency.
When omitted, rows for all currencies are returned and a currency field appears on each row.
"usd"
"eur"
"gbp"
Convert all amounts to this currency using historical exchange rates, collapsing
multi-currency rows into one row per period. Can be combined with currency to
first filter then convert.
"usd"
"eur"
IANA timezone for period boundaries.
"UTC"
"America/New_York"
"Europe/London"

