GET http://[host]:[port]/psd2/v1/accounts/
HEADERS:
X-Request-ID = [request-id] – required
Consent-ID: [consent-id] – mandatory – carries the ID of the consent
Content-Type: application/json – required
PSU-ID: [user-id] – optional
Response:
{
"accounts": [{
"iban": {
"iban": "DE2310010010123456789"
},
"bban": null,
"pan": null,
"maskedPan": null,
"msisdn": null,
"resourceId": "5756e531-e1ca-4db8-9a19-9412a5539d50",
"name": "pavel",
"product": "PRD22",
"cashAccountType": "Savings account",
"currency": "BGN",
"_links": {
"self": {
"href": "/v1/accounts/5756e531-e1ca-4db8-9a19-9412a5539d50"
},
"balances": {
"href": "/v1/accounts/5756e531-e1ca-4db8-9a19-9412a5539d50/balances"
},
"transactions": {
"href": "/v1/accounts/5756e531-e1ca-4db8-9a19-9412a5539d50/transactions"
}
}
}]
}