Accounts

Get average daily balance for an account

Fetches the average of daily end-of-day balance for the specified account and date range. A maximum of one year can be provided as date range. If the account has no balance for a given day because for example it was opened after the start_date OR closed before end_date, those days will have end-of-day balance as 0. If end_date is in the future, those days' balance is equal to the latest balance. It is recommended to present the average balance to the Customer as Yearly for past years and Year to Date for current year.

get/v1/accounts/{account_id}/average_daily_balance

Path parameters

account_idstring required

Unique identifier to an account.

Query parameters

start_datestring date required
Example:2020-01-31

Starting date (inclusive) for balance calculation

end_datestring date required
Example:2020-12-31

End date (inclusive) for balance calculation

Response

Average daily balance successfully calculated.

acccount_idstring

Example response

{
  "acccount_id": "e48c29b85992b8772eb7ddd518490920cacc",
  "average_daily_balance": {
    "value": 2000,
    "unit": "cents",
    "currency": "EUR"
  }
}