Get Forecasted Balances

GET {{base_url}}/forecasting/v2/balances

'Get Forecasted Balances' will return all the forecasted balances for the provided forecast id.

Query Parameters

FieldTypeDescription
bankIdintegerUnique identifier for the bank
accountIdstringUnique identifier for the bank account
forecastIdstringUnique identifier for the forecast
pageIdstringPage offset of results
fromdateTimeReturns balances posted on or after from date
todateTimeReturns balances posted on or before to date

Attributes

FieldTypeDescription
idstringUnique identifier for the balance
bankIdintegerUnique identifier for the bank
accountIdstringUnique identifier for the bank account
forecastIdstringUnique identifier for the forecast
datedatetimeBalance date
currencystringBalance currency
amountintegerBalance amount
typestringTransaction type {DEBIT,CREDIT}
sourcestringSource of data import {MANUALIMPORT, MODEL}

Error Messages

ConditionResponse StatusResponse Body
Invalid accountId404 Not Found
Invalid forecastId404 Not Found
Invalid partnerId403 Forbidden
Invalid companyId403 Forbidden
Invalid pageId400 Bad Request

Request Params

KeyDatatypeRequiredDescription
fromnullReturns forecasted balances on or after "from" date
tonullReturns forecasts balances until "to" date
bankIdnullUnique identifier for the bank
accountIdnullUnique identifier for the bank account
forecastIdnullUnique identifier for the forecast

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-partner-idstring
X-Api-Keystring
Authorizationstring
X-Company-Idstring

RESPONSES

status: OK

{"results":[{"id":"90044386-1c09-40bf-b75f-622555da29f5","bankId":16,"accountId":"accountId1234","forecastId":"forecastId1234","date":"2020-11-30T03:59Z","amount":"100000.00","currency":"GBP","type":"CREDIT","source":"MANUALIMPORT"},{"id":"6cb6c2d1-5b8e-4efc-8e69-7e051a6c3820","bankId":18,"accountId":"accountId2345","forecastId":"forecastId2345","date":"2020-12-30T03:59Z","amount":"110000.00","currency":"GBP","type":"CREDIT","source":"MANUALIMPORT"}],"links":{}}