Retrieve Bank Consents

GET {{base_url}}/banking/v2/consents

Bank consents can be retrieved by filtering by bankId. This filter can be used in combination with companyId to search your application users' consents.

The consent response will include the date of authorisation and the status.

Query parameters

FieldTypeDescription
bankIdintegerUnique identifier for the bank
pageIdstringPage offset of results

Attributes

FieldTypeDescription
companyIdstringUnique identifier for the company
permissionsstring{READALLBANKDATA (download all bank data), READACCOUNTSDETAIL (download account details only)}
expiryDatedatetimeDate when the consent expires
consentIdstringUnique consent id returned by the bank
bankIdintegerUnique id for the bank
authorisedDatedatetimeDate when authorisation was provided by the user
statusstringStatus of consent {Authorised, AwaitingAuthorisation, Rejected}

Error Messages

ConditionResponse StatusResponse Body
Invalid bankId403 Forbidden

Request Params

KeyDatatypeRequiredDescription
pageIdnullPage offset of results

HEADERS

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

RESPONSES

status: OK

{"results":[{"companyId":"CompanyID1234","permissions":"READALLBANKDATA","consentId":"ConsentID12","bankId":6,"status":"AwaitingAuthorisation"},{"companyId":"CompanyID5678","expiryDate":"2021-01-06T17:28:14.759Z","permissions":"READACCOUNTSDETAIL","consentId":"ConsentID34","bankId":6,"authorisedDate":"2020-10-08T17:28:14.759Z","status":"Authorised"},{"companyId":"CompanyID9878","permissions":"READALLBANKDATA","consentId":"ConsentID98","bankId":6,"status":"Rejected"}],"links":{}}