Skip to main content

Consents

EnableNow offers the ability to retrieve specific information about a consent.

Using the access token requested in the authentication chapter, retrieve the consent details using endpoint:

https://api.enablenow.nl/cfa/consents

Use any of the following request parameters:

Parameter
Required
Description
ConsentId
No
The Consent ID (retrieved as parameter from the consent redirect URI).
UserId
No
The EnableNow generated UserId (more info: User-based access).
ExternalUserId
No
The External UserId (more info: User-based access).

The response is an array of objects of consent.

Response model

[
{
"id": "392a6e3b-bd67-419e-98ea-a7f707ca8f4c",
"status": "UPDATED",
"dateStatusUpdated": "2023-08-18T13:14:58.7566045",
"dateRequested": "2023-08-18T13:14:29.9290302",
"dateExpire": "2023-11-16T13:14:56.4364593",
"dateTransactionsUpdated": "2023-08-18T13:15:01.4291241",
"providerKey": "ABNANL2A",
"errors": []
}
]

Inside the data collection, the consent object consists of the following properties:

Property
Type
Availability
Description
id
UUID
Required
The unique EnableNow ID for this consent.
status
string
Required
The current status of the consent (e.g., UPDATED).
dateStatusUpdated
datetime
Required
The DateTime when the status of the consent was last updated in UTC time.
dateRequested
datetime
Required
The DateTime when the consent was originally requested in UTC time.
dateExpire
datetime
Required
The DateTime when the consent will expire in UTC time.
dateTransactionsUpdated
datetime
Required
The DateTime when transactions related to the consent were last updated in UTC time.
providerKey
string
Required
The key representing the provider associated with the consent (e.g., ABNANL2A).
errors
array
Optional
An array containing any errors related to the consent. Empty if no errors exist.

Inside the error array you can find error objects with the following properties:

Property
Type
Availability
Description
date
string
Required
DateTime of the error in UTC time.
type
string
Required
code
string
Required
message
string
Required
The provided error message.