List accounts
const url = 'https://example.com/api/v1/money/budgets/example/accounts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/money/budgets/example/accounts \ --header 'Authorization: Bearer <token>'Return the accounts in a budget and their balances from its latest month with activity. The response uses the budget currency and scale. Route: /api/v1/money/budgets/{budget_id}/accounts. Inputs: budget_id. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Budget ID
Responses
Section titled “Responses”Accounts with balances
Accounts of a budget with totals.
object
Accounts in file order.
One account with its balances in budget minor units.
object
Balance of every recorded row.
Balance of cleared rows.
Closed accounts remain available through history and deep links (#1130).
Account currency.
For a Card account: debt its payment reserve does not cover.
Account ID.
cash, card or tracking.
Display name.
False for Tracking accounts.
For a Card account: its payment Category.
Balance of uncleared rows.
Budget ID.
Budget currency.
Sum of on-budget balances.
Decimal places of currency.
Sum of tracking balances.
Examplegenerated
{ "accounts": [ { "balance": 1, "cleared_balance": 1, "closed": true, "currency": "example", "debt_not_covered": 1, "id": "example", "kind": "example", "name": "example", "on_budget": true, "payment_category_id": "example", "uncleared_balance": 1 } ], "budget_id": "example", "currency": "example", "on_budget_total": 1, "scale": 1, "tracking_total": 1}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}