Calculate average balance

Calculate an average balance for an account.
Using this endpoint, you specify a datetime range and calculate the average balance of an account for that period. The calculation multiplies each unchanged balance by the number of days it remains constant, sums those values, and divides the total by the number of days in the selected range.
This endpoint generates the Average balance calculated event once calculation is complete.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Account ID

Body Params
number

Account identifier.

date-time

The specified datetime when the average balance calculation begins. The datetime is displayed in the RFC 3339 format; for example: 2024-01-28T10:33:01Z.

date-time

The specified datetime when the average balance calculation ends. The datetime is displayed in the RFC 3339 format; for example: 2024-01-29T10:33:01Z.

balance_types_to_calculate
array of strings

Choose a balance to calculate its average balance, you can select multiple balance types to calculate their average balances simultaneously. The balance types are:

  • available
  • savings
  • held_funds
balance_types_to_calculate
Allowed:
Headers
string
required

A unique identifier for the request. If you need to retry a request, use the same idempotency key to avoid creating duplicate resources.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json