Consent Management APIs provide the capability to manage consents in a web application, on behalf of an end-user. A banking service consumer/ Account Servicing Payment Service Provider (ASPSP) may need to develop their own web application or use their own mechanism to deploy the consent management capabilities. At this point, a service provider needs a way to directly present consent resources to the end-user. In order to cater to this requirement, those consent capabilities (for example, consent creation/consent deletion) are presented as API resources in the Consent Management APIs.
The Account Consent API specifies a RESTful API for consent management for accounts information sharing in WSO2 Open Banking.
You can find the REST API documentation for Accounts Information Sharing Consent Management APIs below:
The following section contains sample requests and responses to the Account Information Sharing Consent Management v1.3.0 resources.
Create account consent resource
Creates an account information consent resource at the ASPSP regarding access to accounts of a given PSU-ID specified in this request. These accounts must be addressed explicitly in the method as parameters.
POST /berlin130/accounts
Retrieve account consent resource
Reads the exact definition of the given consent resource {consentId}
including the validity status.
GET /berlin130/accounts/{consentId}
Retrieve the status of an account consent resource
Reads the transaction status of the addressed consent resource.
GET /berlin130/accounts/{consentId}
Remove consent resource
Deletes the consent resource with the given consentId
.