Skip to main content
After an account holder gives their consent, the third-party provider can check if it is still valid and see what they consented to. If an account holder wants to withdraw their consent, the third party provider can make a call to revoke that consent. This page explains how you, as a third-party provider, use the /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

To get the status of a previously granted consent:
  1. Make a GET /consents/{consent_id}/status request, where consent_id is a unique identifier for a specific consent. This is the consent_id you saved in the create a consent step. In the headers, include a UUID for the X-Request-ID and the access_token you saved in the get and access token step. Get consent status
  2. In the response, check the consentStatus. This value indicates your current stage in the consent process. See the consentStatus for all possible values. Response
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:
  1. Make a GET /consents/{consentId}/authorisations/{authorization-id-consent} request, where consent_id is a unique identifier for a specific consent and authorization-id-consent is a unique identifier for a specific consent authorization.
    • Note that this authorization-id-consent can be found in the create a consent response. This is the last set of characters at the end of thescaStatus link.
    Get authorization details
  2. The response contains the authorization status, use this to determine what part of the authentication flow your account holder is currently in. See scaStatus for all possible values. Response
To retrieve the details of a previously granted consent, such as the consent status, expiration date, scope, and other related information:
  1. Make a GET /consents/{consent_id} request, where consent_id is a unique identifier for a specific consent. Get consent details
  2. Check the response for details about account access, validity period, consent status, and links to available resources. Response
Revoking consent withdraws the account holder’s authorization to access account information or initiate payments. To revoke a previously granted consent:
  1. Make a DELETE /consents/{consent_id} request, where consent_id is a unique identifier for a specific consent. Delete a consent
  2. If the deactivation was successful, you’ll get an HTTP 200 OK response. The revokedByPsu status 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.