Accounts
Rename an account
Change an account's label or kind. Moves no money. Freezing and closing are separate, and are the dashboard's: a key can do neither.
Before you call this endpoint
- An API key needs the
accounts:writescope. - Once your business has an IP allowlist, every live key must call from an address on it.
- Guide: Rename an account
Change an account's label or kind. Moves no money.
Freezing and closing are separate, and are the dashboard's: a key can do neither.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
What to change. Omit a field to leave it alone.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/b/v1/accounts/string" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}Fetch an account
One account and its balances, scoped to your business and key's mode.
An account's statement
Entries for a period on one account, with the balances that bracket it. The same statement `GET /statements` gives for the main account: opening plus credits minus debits equals closing, from the ledger. A transfer shows on both accounts, as a debit on one and a credit on the other. A test account's statement is always empty. One currency per statement, as `GET /statements`: a running balance exists only within a currency. For every currency's totals in one call, `GET /accounts/{reference}/statement/summary`.