Get Consent Status
Check the status of an account information consent resource.
Endpoint
GET /v1/consents/{consentId}/status
Query Parameters
No query parameters.
Path Parameters
| Attribute | Type | Description |
|---|---|---|
| consentId | String | The consent identification assigned to the created resource. |
Request Headers
| Attribute | Type | Condition | Description |
|---|---|---|---|
| X-Request-ID | String | Mandatory | ID of the request, unique to the call, as determined by the initiating party (TPP). |
| Authorization | String | Mandatory | The oAuth2 Bearer token obtained from the SCA performed prior to this request. |
| API-Key | String | Mandatory | Consumer key available on the developers portal. |
Request Body
No request body.
Response Code
HTTP Response Code: 200 (OK)
Response Headers
| Attribute | Type | Condition | Description |
|---|---|---|---|
| X-Request-ID | UUID | Mandatory | ID of the request, unique to the call, as determined by the initiating party (TPP). |
Response Body
| Attribute | Type | Condition | Description |
|---|---|---|---|
| consentId | String | Mandatory | The unique identifier of the consent. |
| consentStatus | ConsentStatus | Mandatory | The overall lifecycle status of the consent. |
Example Request
curl -X GET \ https://mp-psd2-api.mypos.com/v1/consents/3c7816ee-3d51-4bf5-8ced-ece2af35d431/status \ -H 'API-Key: aGDmxHAmpMWUL1txqCsjEcOS' \ -H 'Authorization: Bearer oqeeWzoYfqkf1RsfyaB3hyNiLvY7GNAV6Kta7sGa9X' \ -H 'TPP-Redirect-URI: https://test.com' \ -H 'X-Request-ID: a552babc-7081-44e7-9361-61eb17e0bfd9'
Example Response
{
"consentId": "3c7816ee-3d51-4bf5-8ced-ece2af35d431",
"consentStatus": "Valid"
}