---
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/passport`
- URL: `https://sandbox.pismolabs.io/passport/v1/accounts/{accountId}/average-balance`
- Auth: none declared

Get an already calculated average balance for an account.

## Path parameters

- `accountId` integer, required

## Headers

- `x-idempotency-key` string

## Response `200`

Success

- GetAverageBalanceResponse
  - `account_id` number: Account ID.
  - `begin_date_datetime` string, date-time: The date and time when the calculation begins. The date and time are displayed in RFC 3339 format, for example: `2024-01-28T10:33:01Z`.
  - `end_date_datetime` string, date-time: The date and time when the calculation ends. The date and time are displayed in RFC 3339 format, for example: `2024-01-29T10:33:01Z`.
  - `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`

## Other responses

- `400`: Bad request
- `404`: Not Found
- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) - [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/platform-authentication/revisions/935b62e16de4?raw)
