---
title: "Get average balance"
method: GET
path: "/v1/accounts/{accountId}/average-balance"
tags: ["Average balance"]
---

# Get average balance

`GET /v1/accounts/{accountId}/average-balance`

## Request

- Base URL: `https://sandbox.pismolabs.io/savings-products`
- URL: `https://sandbox.pismolabs.io/savings-products/v1/accounts/{accountId}/average-balance`
- Auth: HTTP bearer

Get an already calculated average balance for an account.

## Path parameters

- `accountId` string, required

## Headers

- `idempotency` string, required

## Response `200`

Success

- GetAverageBalanceResponse
  - `account_id` number: Account ID.
  - `external_account_id` string: External account ID resolved from the account context. Returned when available, including while the calculation status is `PROCESSING`.
  - `begin_date_datetime` string, date-time: The date and time when the calculation begins, normalized to the beginning of the day (`00:00:00`) in the account's timezone and returned with that timezone offset. The date and time are displayed in RFC 3339 format, for example: `2024-01-28T00:00:00-03:00`.
  - `end_date_datetime` string, date-time: The date and time when the calculation ends, normalized to the end of the day (`23:59:59`) in the account's timezone and returned with that timezone offset. The date and time are displayed in RFC 3339 format, for example: `2024-01-30T23:59:59-03:00`.
  - `balance_types_to_calculate` string[]: Choose a balance to calculate its average balance, you can select multiple balance types to calculate their average balances simultaneously. The balance types are:<br> * `available` * `savings` * `held_funds` example: [ "AVAILABLE", "SAVINGS", "HELD_FUNDS" ]

## Other responses

- `400`: Bad request
- `404`: Bad request
- `500`: Internal error

---

[API](https://skmtc.dev/pismo/apis/banking-interest-bearing-accounts.md) - [All operations](https://skmtc.dev/pismo/apis/banking-interest-bearing-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/banking-interest-bearing-accounts/revisions/c68f61feb8a8?raw)
