Ledgers

Get Financial Report Breakdown

Changed on

Breaks one bucket of a financial report, such as payments received or card spend, into the customers, accounts, merchants, or campaigns that contributed most, with the rest summed as a remainder. Use it to explain a total from GET /financial_reports.

get/financial_reports/breakdown

Request

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

Query parameters

account_id, string required

The owning account ID (a biz_ identifier).

bucket, 'transfers' | 'payments' | 'refunds' | 'ads' | 'application_fees' | 'card_spend' | 'card_authorization_releases' | 'withdrawals' | 'withdrawal_markup' | 'platform_markup' | 'clawbacks' | 'disputes' | 'affiliate_earnings' | 'affiliate_payouts' | 'revenue_share' | 'swaps' | 'card_loads' required

The high-level report bucket to explain.

direction, 'money_in' | 'money_out' required

Whether to explain money received or money sent.

currency, string required

The report currency to explain.

from, string date-time required

Start of the report window as an ISO 8601 timestamp.

to, string date-time required

Exclusive end of the report window as an ISO 8601 timestamp.

group_by, 'hour' | 'day' | 'week' | 'month'

Period grouping used by the parent report.

timezone, string

IANA timezone used by the parent report to bucket periods. Defaults to UTC.

Headers

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

Pins the request to a dated API version.

Response

breakdown returned

object required
activity_filters, object required
bucket, 'transfers' | 'payments' | 'refunds' | 'ads' | 'application_fees' | 'card_spend' | 'card_authorization_releases' | 'withdrawals' | 'withdrawal_markup' | 'platform_markup' | 'clawbacks' | 'disputes' | 'affiliate_earnings' | 'affiliate_payouts' | 'revenue_share' | 'swaps' | 'card_loads' required
currency, string required
direction, 'money_in' | 'money_out' required
items, object[] required
other_amount, Money nullable required
other_name, string required

Example response

{
  "activity_filters": {
    "direction": "money_out",
    "line_types": [
      "platform_balance_transfer_outgoing"
    ]
  },
  "bucket": "transfers",
  "currency": "usd",
  "direction": "money_out",
  "items": [
    {
      "amount": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "avatar": {
        "shape": "circle"
      },
      "object": "user"
    }
  ],
  "other_amount": {
    "amount": "-1234.56",
    "currency": "usd",
    "decimals": 2,
    "display_decimals": 2
  },
  "other_name": "Other"
}

Changes

    • info

      added the new enum value hour to the query request parameter group_by

    • warning

      added the new affiliate_earnings enum value to the bucket response property for the response status

    • warning

      added the new affiliate_payouts enum value to the bucket response property for the response status

    4 more changes in this revision