Get Forecasts

GET {{base_url}}/forecasting/v2/forecasts

Get all forecasts for the company. Each forecast has an id, timestamp, source and name.

Query parameters

FieldTypeDescription
bankIdintegerUnique identifier for the bank
accountIdstringUnique identifier for the bank account
pageIdstringPage offset of results

Attributes

FieldTypeDescription
idstringUnique identifier for the forecast
bankIdintegerUnique identifier for the bank
accountIdstringUnique identifier for the bank account
datedatetimeDate when the forecast was generated
sourcestringSource of forecast {MODEL, MANUALIMPORT}
namestringName of Forecast

Error Messages

ConditionResponse StatusResponse Body
Invalid accountId404 Not Found
Invalid pageId400 Bad Request

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results
bankIdnullUnique identifier for the bank
accountIdnullUnique identifier for the bank account

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
X-Partner-Idstring
X-APi-Keystring
Authorizationstring
X-Company-Idstring

RESPONSES

status: OK

{"results":[{"id":"forecastId1234","bankId":16,"accountId":"9aed0933-8e38-4571-93dd-8e775c8233e7","name":"Forecast-Mar1","date":"2021-03-01T09:34:00.284Z","source":"MANUALIMPORT"},{"id":"forecastId3456","bankId":16,"accountId":"9aed0933-8e38-4571-93dd-8e775c8233e7","name":"model_forecast_21_03_01.09:32","date":"2021-03-01T09:32:39.831Z","source":"MODEL"}],"links":{}}