Retrieve Bank Balances

GET {{base_url}}/banking/v2/balances

Cash balances are returned for all the bank accounts that have been connected to the company.

Balances can be queried by bankId and accountId

Query Parameters

FieldTypeDescription
bankIdintegerUnique identifier for the bank
accountIdstringUnique identifier for the bank account
pageIdstringPage offset of results
fromdateTimeReturns balances posted on or after from date
todateTimeReturns balances posted on or before to date
statusstringBalance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE, NTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}

Attributes

FieldTypeDescription
idstringBalance Id
accountIdstringUnique identifier for the account
bankIdintegerUnique identifier for the bank
currencystringAccount currency
datedatetimeBalance date
amountintegerBalance amount
typestringTransaction type {DEBIT,CREDIT}
statusstringBalance status {CLOSINGAVAILABLE, CLOSINGBOOKED, EXPECTED, FORWARDAVAILABLE, INFORMATION, INTERIMAVAILABLE, NTERIMBOOKED, OPENINGAVAILABLE, OPENINGBOOKED, PREVIOUSLYCLOSEDBOOKED}
externalIdstringAn Id linked to an external source
sourcestringSource of data import {MANUALIMPORT, OPENBANKING}

Error Messages

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

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results
fromnullReturns balances posted on or after "from" date
tonullReturns balances posted on or before "to" date
bankIdnullUnique identifier for the bank
accountIdnullUnique identifier for the bank account
statusnullStatus of the balance

HEADERS

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

RESPONSES

status: OK

{"results":[{"id":"balanceId1234","bankId":6,"accountId":"accountId1357","date":"2020-10-05T00:00Z","amount":"11477.35","currency":"GBP","type":"CREDIT","status":"INTERIMBOOKED","externalId":"","source":"OPENBANKING"},{"id":"balanceId3456","bankId":7,"accountId":"accountId3579","date":"2020-10-04T00:00Z","amount":"15647.35","currency":"GBP","type":"CREDIT","status":"CLOSINGBOOKED","externalId":"","source":"OPENBANKING"},{"id":"balanceId9876","bankId":809,"accountId":"accountId0087","date":"2020-10-03T00:00Z","amount":"1477.35","currency":"GBP","type":"CREDIT","status":"CLOSINGBOOKED","externalId":"","source":"MANUALIMPORT"}],"links":{}}