Skip to main content
Version: v2

ConsentInfo

The ConsentInfo endpoint provides a list of approved consents for requested ConsentCollectionId's. These can be used to check if (any) consents have been given and for which bank accounts.

Calling ConsentInfo

Endpoint:             https://openbanking.invers.nl/api/v1/consents/info
Method: GET

Header: ApiKey: string (required)
X-Request-ID: string (required)

Get-Parameters: ConsentCollectionId: string (required)

Body: empty

Errors: 400, 403 or 500

Parameters

ParameterDescription
ApiKeyApiKey
Example:cEZrSmVPLTN1XzVDM09nVDhEanlZaUJwYzRXTldpVUc=
X-Request-IDRequest identifier, guid that is unique for each request.
Example: f1b8d9bd-0118-47ff-bdb7-5e2956ad0e9f
ConsentCollectionIdConsent Collection Identifier from which information is being requested.
Example: d2c95f1b-6802-459e-ba7d-70491ac27d24

Output

FieldTypeDescription
bankIdguidBank identifier
bankNamestringName of the bank
consentedOndatetimeDate of consent
expiresOndatetimeDate untill the consent is valid
fromHistoryDatedatetimeOldest date for which transactions are available; if downloading of history is allowed
statusintConsent status, see Consent status
accountslistList of information regarding the accounts in this consent collection

Account info

FieldTypeDescription
iBanstring
statusint, see Consent account status
lastdownloaddatetimeLast download datedownload
historyAvailableboolTrue if historical transactions may be downloaded
namestringBank account owner's name
productstringBank account type if available

ConsentStatus
ValueNameDescription
0ReceivedConsent has been received
1RejectedConsent has been rejected
2ValidConsent is valid
3RevokedByPsuConsent has been revoked by user
4ExpiredConsent has expired
5TerminatedByTppConsent has been terminated by the provider

The most frequent values are valid and expired; Others are much less common.


ConsentAccountState
ValueNameDescription
0NoneConsent has no state (yet)
1ValidData can be downloaded of this account
2ExpiredConsent has expired
3WithdrawedConsent has been withdrawn by account owner

Example output
[
{
"bankId":"f3746abd-df60-4185-9b53-6f4e6652458b",
"bankName":"SNS bank",
"consentedOn":"YYYY-MM-DDTHH:MM:SS+HH:MM",
"expiresOn":"YYYY-MM-DDTHH:MM:SS+HH:MM",
"fromHistoryDate":"YYYY-MM-DDTHH:MM:SS+HH:MM",
"status":2,
"accounts":[
{
"iBan":"NL00SNSB0123456789",
"status":1,
"lastdownload":null,
"historyAvailable":true,
"name":"Hr A B Janssen",
"product":"SNS BETALEN"
}
]
}
]