What is a LedgerAccount?
A LedgerAccount is a financial account that:- Sends and receives funds: Acts as a wallet for representing money
- Tracks balances: Maintains balance information for each currency
- Supports multiple currencies: Can hold balances in different currencies simultaneously
Balance information
The LedgerAccount object contains balance information in thebalances array. Each balance entry includes:
- balance: The current available balance
- currency: The ISO currency code (e.g., “usd”, “eur”)
- pending_balance: Funds that are pending and not yet available. It can take anywhere from one to seven days for funds to settle into an account, depending on the payment method and transaction type.
- reserve_balance: Funds held in reserve. In some instances, Whop will take out a reserve against an account due to suspected fraud or elevated risk.
A LedgerAccount can have balances in multiple currencies. Check the
balances
array to see all currencies and their respective amounts.API Reference
Retrieve Ledger Account API
See the full API reference for retrieving ledger accounts and all available
fields
Retrieving a LedgerAccount
You can retrieve a LedgerAccount using the company’s ID (thebiz_ ID). Each Company on your platform has a LedgerAccount associated with it, and you can access it directly using the company identifier.
Example
Here’s an example of how to retrieve a LedgerAccount using a company ID (biz_) with the Python SDK:
- The ledger account is retrieved using the company ID (
biz_xxxxxxxxxxxxx) idis the unique identifier for the ledger accountbalancesis an array containing balance information for each currencyownercontains information about the company that owns this ledger accountledger_typeindicates the type of ledger account (e.g., “primary”)ledger_account_audit_statusandpayments_approval_statusshow the current status of the account

