Accounts
List your accounts
Your main account first, then the others in the order they were opened, each with what it holds per currency. A test key sees only test accounts. The first time it asks, a test main account is opened for it, so there is always one to transfer from.
Before you call this endpoint
- An API key needs the
accounts:readscope. - A test key sees only test accounts. Its first list opens a test main account.
- Once your business has an IP allowlist, every live key must call from an address on it.
- Guide: List and read accounts
Your main account first, then the others in the order they were opened, each with what it holds per currency.
A test key sees only test accounts. The first time it asks, a test main account is opened for it, so there is always one to transfer from.
Query Parameters
Include closed accounts, which hold nothing.
trueResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/b/v1/accounts"{ "accounts": [ { "reference": "acct_4f1c9a2b7d3e8f6a0b1c2d3e", "label": "Salary", "kind": "payroll", "is_main": true, "status": "active", "frozen_by": "string", "is_test": true, "currencies": [ "USD", "RWF" ], "balances": [ { "currency": "string", "balance_minor": 0 } ], "created_at": "2019-08-24T14:15:22Z", "closed_at": "2019-08-24T14:15:22Z" } ], "limit": 10}Balances this business holds, per currency
Per currency, from the ledger. Readable by anybody who can see the business, and by an API key with the `balances:read` scope. **Live keys only**: these are live balances, there is no test-mode ledger, and a test key is never shown live money - it gets `401 WRONG_KEY_MODE`.
Open an account
Open a sub-account, self-serve, in one call. It holds the currencies your main account holds, starts empty, and is ready at once: name it as `account` on a charge to collect into it, on a payout to pay from it, or in `POST /transfers` to fund it. Sub-accounts are for splitting your own money - Collections, Salary, Cashbook. They are not for holding money on behalf of your customers.