/consents endpoint to:
- Check if an account holder’s consent is still valid and how a third party provider can use the consent.
- Revoke consent on the account holder’s behalf.
Requirements
Check if the account holder granted consent
To get the status of a previously granted consent:-
Make a GET
/consents/{consent_id}/statusrequest, whereconsent_idis a unique identifier for a specific consent. This is theconsent_idyou saved in the create a consent step. In the headers, include a UUID for theX-Request-IDand theaccess_tokenyou saved in the get and access token step. Get consent status -
In the response, check the
consentStatus. This value indicates your current stage in the consent process. See theconsentStatusfor all possible values.Response
Check the authorization status of an account holders consent
To get information about consent authorization and to determine where your account holder is in the authentication flow, for accessing account information, or to initiate payments:-
Make a GET
/consents/{consentId}/authorisations/{authorization-id-consent}request, whereconsent_idis a unique identifier for a specific consent andauthorization-id-consentis a unique identifier for a specific consent authorization.- Note that this
authorization-id-consentcan be found in the create a consent response. This is the last set of characters at the end of thescaStatuslink.
- Note that this
-
The response contains the authorization status, use this to determine what part of the authentication flow your account holder is currently in. See
scaStatusfor all possible values.Response
Check consent details of an account holder
To retrieve the details of a previously granted consent, such as the consent status, expiration date, scope, and other related information:-
Make a GET
/consents/{consent_id}request, whereconsent_idis a unique identifier for a specific consent. Get consent details -
Check the response for details about account access, validity period, consent status, and links to available resources.
Response
Delete a consent
Revoking consent withdraws the account holder’s authorization to access account information or initiate payments. To revoke a previously granted consent:-
Make a DELETE
/consents/{consent_id}request, whereconsent_idis a unique identifier for a specific consent. Delete a consent -
If the deactivation was successful, you’ll get an HTTP 200 OK response. The
revokedByPsustatus will appear in future calls when you check if the account holder granted consent.
Next steps
AISP interface
Learn how to consume our dedicated AISP endpoints.
PISP interface
Learn how to consume our dedicated PISP endpoints.
PIISP interface
Learn how to consume our dedicated PIISP endpoints.