Client mobile sends consent (authorization token) to banqware API using the following API method.
Consent will be stored in PSD2Hub vault. Once consent is provided, PSD2Hub triggers the data retrieving process (account details and transactions).
POST /api/bank/<BANKID>authorize
INPUT
userId- identifier of the user (PSU)
months - number of months to retrieve historical transactions. Transactions will be retrieved from NOW - months (MONTH)
sessionId - sessionId identifier provided before by the hub
values - consent value (key = "Consent")
OUTPUT
success- status of the call
REQUEST
Content-Type: application/json
{
userId: "22",
months: 2,
sessionId: "fa48ec41-799b-42a9-7099-08d563d83867",
values:[
{
key: "Consent",
value:"<CONSENT>"
}
]
}
βExample error response
Content-Type: application/json; charset=utf-8
{
"errorCode":404,
"errorMessage":"Bank with Id = 99 does not exist."
}
βExample success response
Content-Type: application/json; charset=utf-8
{
"success":true,
"data":null
}