Skip to main content

Step 1. Initiating authorization for selected bank

Maxime avatar
Written by Maxime
Updated over 4 months ago

GET /api/bank/<BANKID>/authorize\

INPUT

  • bankID – identifier of the bank the authorization flow should be initiated to


​OUTPUT

  • success- status of the call

  • data - JSON file providing the list of required attributes (driven by AFI API)- JSON to be rendered in consuming app

Example error response

Content-Type: application/json; charset=utf-8
{
"errorCode":404,
"errorMessage":"Bank with Id = 99 does not exist."
}

Example success response

The format of response structure depends on AFI AISP implementation. In the example below, there are 2 parameters required to initiate the oAuth session: IBAN and Currency.

Content-Type: application/json; charset=utf-8
{
"success":true,
"data":{

"sections":[


{

"items":[


{

"key":"IBAN",

"type":"input",

"format":"String",

"label":"IBAN"

},

{

"key":"Currency",

"type":"input",

"format":"String",

"label":"Currency"

}

]

}

]

}

}

Did this answer your question?