Ledgers

List Financial Activity

Changed on

Returns an account's or user's activity feed: every movement of money in or out.

get/financial_activity

Request

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

Query parameters

account_id, string

The owning account ID (a biz_ identifier). Provide this or user_id.

user_id, string

The owning user ID (a user_ identifier). Provide this or account_id.

include_owned_accounts, boolean

When true, aggregates the authenticated user's personal ledger with the businesses they own (owner role with balance read) into one feed. Requires user_id to be the authenticated user; cannot be combined with account_id or the settlement-date filters. Each returned row includes the owning account.

include_resource, boolean

Whether to include the resource field in the response or not. Consider passing false if you need a fast response without as many rich details.

line_types, string[]

Optional ledger line categories to include. Some categories (for example onchain_deposit, which covers inbound crypto deposits such as MoonPay onramps) are only returned when explicitly requested here.

[
  "onchain_deposit"
]
direction, 'money_in' | 'money_out'

Optional direction filter. money_in returns positive activity and money_out returns negative activity.

resource_id, string

Optional prefixed resource ID. Returns activity associated with that resource.

payment_id, string

Filter activity by payment ID (pay_), including related refunds, disputes, and fees. Combines with resource_id and other filters within the selected accounts. Unknown payments return an empty list.

activity_id, string

Optional ledger activity ID (for example line_3). Returns at most that one activity.

exclude_internal_movements, boolean

Whether to exclude balance reservations and balanced movements between the account's own balances.

balance_type, 'total' | 'available'

Which balance the activity changes. total includes available, pending, and reserved funds. available includes only movements into or out of available funds, including reservations, releases, and fees. Movements within the selected balance are omitted. Omit to preserve the existing activity feed. Requires account_id or user_id; cannot be combined with available_after or available_before.

withdrawal_id, string

Withdrawal ID (wdrl_). With balance_type=available, selects the same period as its statement, after the previous withdrawal and through this withdrawal, excluding this withdrawal and its fee. Requires a single account. Overrides currency and posted-date filters.

currency, string

Optional currency code filter, for example usd.

posted_after, string date-time

Only include rows posted after this ISO 8601 timestamp.

posted_before, string date-time

Only include rows posted before this ISO 8601 timestamp.

available_after, string date

Only include balance credits and debits available on or after this YYYY-MM-DD date (UTC), distinct from posted_at. Requires currency.

available_before, string date

Only include balance credits and debits available on or before this YYYY-MM-DD date (UTC). Set equal to available_after for a single day. Requires currency.

limit, integer

Maximum number of rows to return.

cursor, string

Cursor returned by the previous page.

Response

activities listed for a user

object required
data, LedgerActivity[] required
page_info, object required

Example response

{
  "data": [
    {
      "account": {
        "id": "biz_xxxxxxxxxxxxxx",
        "logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/shine-time-logo",
        "object": "account",
        "route": "biz_xxxxxxxxxxxxxx",
        "title": "Shine Time Auto Detailing"
      },
      "amount": "2375000000",
      "available_at": "2026-01-01T12:00:00.000Z",
      "currency": {
        "code": "usd",
        "precision": "100000000"
      },
      "id": "line_3",
      "ledger_account_id": "ldgr_xxxxxxxxxxxxxx",
      "line_type": "payment_gross",
      "object": "ledger_activity",
      "payment": {
        "amount": {
          "amount": "-1234.56",
          "currency": "usd",
          "decimals": 2,
          "display_decimals": 2
        },
        "object": "payment"
      },
      "posted_at": "2026-01-01T12:00:00.000Z",
      "resource": {
        "id": "biz_xxxxxxxxxxxxxx",
        "logo_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/shine-time-logo",
        "object": "account",
        "route": "biz_xxxxxxxxxxxxxx",
        "title": "Shine Time Auto Detailing"
      },
      "source": {
        "amount_float": 1500,
        "chain": "plasma",
        "claim_url": "https://whop.com/claim",
        "created_at": "2026-01-01T12:00:00.000Z",
        "created_by_user": {
          "badges": [
            {
              "type": "verified_partner"
            }
          ],
          "id": "user_xxxxxxxxxxxxxx",
          "name": "Dana Whitfield",
          "profile_picture": {
            "url": "https://ui-avatars.com/api/"
          },
          "username": "danawhitfield"
        },
        "estimated_arrival": "2026-01-01T12:00:00.000Z",
        "fee_amount": {
          "amount": "-1234.56",
          "currency": "usd",
          "decimals": 2,
          "display_decimals": 2
        },
        "fee_kind": "swap",
        "fee_type": "exclusive",
        "from_amount": "502.51",
        "from_currency": "usdt",
        "id": "airdrp_xxxxxxxxxxxxxx",
        "object": "airdrop_link",
        "payer_name": "MassPay",
        "payment_amount": {
          "amount": "-1234.56",
          "currency": "usd",
          "decimals": 2,
          "display_decimals": 2
        },
        "payout_amount": {
          "amount": "-1234.56",
          "currency": "usd",
          "decimals": 2,
          "display_decimals": 2
        },
        "payout_destination": {
          "icon_url": "https://whop-assets-example.s3.amazonaws.com/uploads/image/2026-01-01/ach-activity-icon",
          "payer_name": "ACH Bank Deposit"
        },
        "payout_token_nickname": "Ops checking",
        "reason": "bounty_payout",
        "risk_review_hold": true,
        "sender_address": "0x8a4de51b9c37f2e6a0d1b8c94e5f7a2d3c6b0e19",
        "status": "fully_claimed",
        "to_amount": "500.0",
        "to_currency": "usd",
        "tx_hash": "0x5d84a1c7e2f9b036d48c5a7e1b9f2d6c3a8e0b4f7c1d9e5a2b6f8c0d3e7a1b52"
      },
      "usd_amount": "23.75"
    }
  ],
  "page_info": {
    "end_cursor": "cursor_2",
    "has_next_page": true,
    "start_cursor": "cursor_1"
  }
}

Changes

    • info

      the security scope company:balance:read was added to the endpoint's security scheme bearerAuth

    • info

      the security scope user:balance:read was removed from the endpoint's security scheme bearerAuth

    • info

      the security scope company:balance:read was added to the endpoint's security scheme bearerAuth

    1 more change in this revision