---
title: "Retrieve balances for multiple accounts and all active usage sources."
method: GET
path: "/v2/accounts/balances"
tags: ["Accounts"]
---

# Retrieve balances for multiple accounts and all active usage sources.

`GET /v2/accounts/balances`

Returns active grant totals, corrected usage totals, and balances for every active metric and granted currency across up to 100 accounts. The PostgreSQL and ClickHouse aggregates run in parallel.

## Query parameters

- `account_ids` string, required

## Response `200`

Balances for the requested accounts and all active metrics and granted currencies.

- object
  - `data` AccountBalance[], required
    - `account_id` string, required — LedgerUp account identifier.
    - `metric_id` string, nullable, required — LedgerUp metric identifier. Null for a currency balance.
    - `currency` string, nullable, required — Lowercase currency code. Null for a metric balance.
    - `grant_total` string, required — Sum of all grants for the account, serialized as a string.
    - `usage_total` string, required — Sum of corrected usage events for the metric, serialized as a string.
    - `balance` string, required — grant_total minus usage_total, serialized as a string.

## Other responses

- `400` — Bad request, invalid header, invalid amount/quantity/currency, or text validation failure.
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission, or reset was attempted outside the test namespace.
- `404` — Referenced or requested resource was not found.
- `408` — Request exceeded the 30 second timeout.
- `429` — Rate limit exceeded.
- `500` — Internal server error or queue failure.

---

[API](https://skmtc.dev/ledgerup/apis/ledgerup-api.md) · [All operations](https://skmtc.dev/ledgerup/apis/ledgerup-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ledgerup/ledgerup-api/revisions/be257191807b/schema)
