Retrieve Bank Accounts

GET {{base_url}}/banking/v2/accounts

This endpoint can be used to retrieve bank accounts for a business (using the bank id). The endpoint will return all the banks that a business has connected.

Bank Accounts can be filtered by providing a bankId

April 2021: Updated this endpoint and added consentId to the response

Query Parameters

FieldTypeDescription
bankIdintegerUnique identifier for the bank
pageIdstringPage offset of results

Attributes

FieldTypeDescription
idstringUnique identifier for the account
bankIdintegerUnique identifier for the bank
consentIdstringUnique identifier for the consent
currencystringAccount currency
nicknamestringNickname
accountJSON objectAccount information
account -> schemenamestringIBAN or Account and sort code
account -> identificationstringUnique id per bank account
account -> namestringAccount name
account -> secondaryIdentificationstringAny optional extra information about account
externalIdstringAn Id linked to an external source
sourcestringSource of data import {MANUALIMPORT, OPENBANKING}

Error Messages

ConditionResponse StatusResponse Body
Invalid partnerId403 Forbidden
Invalid companyId403 Forbidden
Invalid pageId400 Bad Request{ error: "Missing/Invalid pageId” }

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results
bankIdnullUnique identifier for the bank

HEADERS

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

RESPONSES

status: OK

{"results":[{"id":"accountId1234","consentId":"consentId5324","bankId":6,"currency":"GBP","nickname":"Business Account","account":[{"schemeName":"IBAN","identification":"GBBANKIDEN1234","name":"Debit Account","secondaryIdentification":"Merrchant"}],"externalId":"extenalid123","source":"MANUALIMPORT"},{"id":"accountId5678","consentId":"consentId1324","currency":"GBP","nickname":"Debit Account - NatWest - Demo","account":[{"schemeName":"UK.OBIE.SortCodeAccountNumber","identification":"5000004001234","name":"Debit Account - NatWest - Demo","secondaryIdentification":""}],"externalId":"","source":"OPENBANKING"}],"links":{}}