Consents - API definition
Consents - API definition
PSD2 - CONSENTS (Collapsed)
Get list of consents
Get a list of consents for the PSU doing this call (indicated by the JWT token).
Query Parameters
- Type: booleanactiverequired
If true then the response will contain the active consents.
- Type: booleanhistoricalrequired
If true then the response will contain the historical consents.
- Type: booleanopenrequired
If true then the response will contain the open (initiated) consents.
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/?active=true&historical=true&open=true' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": [
{
"consentId": "f3cb5c80-6520-4bf7-b02b-593db8d1ad5a",
"consentedServices": [
"BALANCES",
"TRANSACTIONS",
"DETAILS"
],
"lastUpdated": "2020-03-04T10:04:52.179Z",
"providerConsentId": "c9c473d9-5bae-42a5-8493-0ec60c8ba304",
"validUntil": "2020-06-02T00:00:00.000Z",
"created": "2020-03-04T09:59:04.450Z",
"frequencyPerDay": 4,
"consentedAt": "2020-03-04T09:59:22.000Z",
"aisStatus": "RISK_OK",
"recurringIndicator": true,
"consentStatus": "VALID",
"nearlyExpired": true,
"userId": "14dd3422-fbd1-4254-8a68-d4bbf59f24dd",
"provider": "RABO",
"options": {
"transactions": {
"dateFrom": "2013-03-04T09:59:22.927Z",
"dateTo": "2020-03-04T00:00:00.000Z",
"dateFormat": "YYYY-MM-DDTHH:mm:ss.SSSZ"
},
"access": {
"ais.transactions.read-90days": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
],
"ais.transactions.read-history": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
],
"ais.balances.read": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
]
}
},
"region": "NL",
"type": "AIS",
"providerUrl": "https://api.rabobank.nl/openapi/oauth2/authorize?client_id=f68c877b-7f34-4433-ab37-55f66356713e&redirect_uri=cashws%3A%2F%2Fauth_token&response_type=code&scope=ais.balances.read%20ais.transactions.read-90days%20ais.transactions.read-history%20oauth2.consents.read"
}
],
"pagination": {
"index0": {
"pagination": {
"next": {},
"prev": {}
}
},
"index1": {
"pagination": {
"next": {},
"prev": {}
}
},
"index2": {
"pagination": {
"next": {},
"prev": {}
}
}
}
}OK
Create Consent
Create Consent
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Body·
- Type:providerrequired
Identifies bank provider:
- 'INGB': ING Bank,
- 'ABNA': ABN AMRO,
- 'RABO': Rabobank,
- 'RETB': Revolut,
- 'SNSB': SNS Bank,
- 'ASNB': ASN Bank,
- 'RBRB': Regiobank,
- 'TRIO': Triodos,
- 'BUNQ': Bunq,
- 'KNAB': KNAB,
- 'BNPF': BNP Paribas Fortis Easybank,
- 'HELO': BNP Paribas Fortis Hellobank,
- 'FINT': BNP Paribas Fortis Fintro,
- 'GKCC': Belfius,
- 'DP...': Mock Data Provider starts with DP, e.g. 'DP-INTEGRATION' or 'DP-TESTBANK'.
- Type: stringregionrequired
Region in which consent is provided
- Type: enumtyperequired
PSU consent type:
- 'AIS': The account information service consent type,
- 'PIS': The payment initiation service consent type,
- 'CAF': The confirmation of available funds consent type,
valuesAISPISCAF - Type: stringredirect
Url Optional redirect url
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/ \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"provider": "ABNA",
"region": "NL",
"type": "AIS",
"redirectUrl": "https://sandbox.api.bittiq.cloud/consents-ui/created"
}'
{
"id": "1234-hello-5678",
"providerUrl": "https://api-sandbox.rabobank.nl/openapi/sandbox/oauth2/authorize?client_id=d43a6138-5402-4e25-9edc-ec6653f784f0&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2FauthToken&response_type=code&scope=ais.balances.read%20ais.transactions.read-90days%20ais.transactions.read-history"
}OK - Consent Created
Get Consent
Returns the consent resource matching the given consent id
Path Parameters
- Type: stringconsent
Id requiredResource identification of the generated consent resource.
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/{consentId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"consentId": "f3cb5c80-6520-4bf7-b02b-593db8d1ad5a",
"consentedServices": [
"BALANCES",
"TRANSACTIONS",
"DETAILS"
],
"lastUpdated": "2020-03-04T10:04:52.179Z",
"providerConsentId": "c9c473d9-5bae-42a5-8493-0ec60c8ba304",
"validUntil": "2020-06-02T00:00:00.000Z",
"created": "2020-03-04T09:59:04.450Z",
"frequencyPerDay": 4,
"consentedAt": "2020-03-04T09:59:22.000Z",
"aisStatus": "RISK_OK",
"recurringIndicator": true,
"consentStatus": "VALID",
"nearlyExpired": true,
"userId": "14dd3422-fbd1-4254-8a68-d4bbf59f24dd",
"provider": "RABO",
"options": {
"transactions": {
"dateFrom": "2013-03-04T09:59:22.927Z",
"dateTo": "2020-03-04T00:00:00.000Z",
"dateFormat": "YYYY-MM-DDTHH:mm:ss.SSSZ"
},
"access": {
"ais.transactions.read-90days": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
],
"ais.transactions.read-history": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
],
"ais.balances.read": [
{
"currency": "EUR",
"iban": "NLXXRABO03500XXXXX"
}
]
}
},
"region": "NL",
"type": "AIS",
"providerUrl": "https://api.rabobank.nl/openapi/oauth2/authorize?client_id=f68c877b-7f34-4433-ab37-55f66356713e&redirect_uri=cashws%3A%2F%2Fauth_token&response_type=code&scope=ais.balances.read%20ais.transactions.read-90days%20ais.transactions.read-history%20oauth2.consents.read"
}OK
Terminate Consent
Terminate Consent - this revokes a valid consent at the provider resulting in a TERMINATED_BY_TPP status
Path Parameters
- Type: stringconsent
Id requiredResource identification of the generated consent resource.
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- 204
Resource updated OK
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/{consentId}/terminate' \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Resource updated OK
Cancel Open Consent
Cancels an open consent (one that has not been previously approved by the PSU)
Path Parameters
- Type: stringconsent
Id requiredResource identification of the generated consent resource.
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- 204
Resource updated OK
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/{consentId}/cancel' \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Resource updated OK
Refresh the consent details from the provider
Initiates a synchronous call to the provider to obtain the latest consent details (and status).
Path Parameters
- Type: stringconsent
Id requiredResource identification of the generated consent resource.
Query Parameters
- Type: stringprovider
Authentication Code requiredOne-time authentication code returned by the provider.
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- 204
Resource updated OK
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/{consentId}/refresh?providerAuthenticationCode=' \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Resource updated OK
Refresh the user's consents via the linked provider(s)
Initiates one or more asynchronous calls to the provider(s) to obtain the latest consent details (and status) for the PSU associated with the JWT
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- 202
Resource update accepted
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/refresh \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Resource update accepted
Revokes all the user's consents via the linked provider(s)
Initiates one or more synchronous calls to the provider(s) to revoke all the consents for the PSU associated with the JWT
Headers
- Type: stringx
-correlation -id Correlation ID for tracking requests across multiple services
Responses
- 202
Resource updated OK
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.acc.ockto.cloud/open-banking/sandbox/ais/consents/terminate \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Resource updated OK

