A Yapily knowledge article about the different authorisation flows available in the platform
There are several different flows you may be required to use in order to obtain a consentToken
for requesting a user financial data or to execute a payment
depending on the Institution
that the authorisation request is being sent to.
Note: Each of the flows listed below will assume you are a SafeConnect customer in order to keep the number of diagrams and explanations minimal. If you are a direct customer, see the "Direct Customers" dropdown in the following article to see how each of the flows differ for you.
In each endpoint in Obtaining a Consent, you can optionally specify to use the callback
.
As explained in the Callback Url article, if you are a SafeConnect customer, it is recommended that you always use the callback
when
possible. This must be explicitly stated in the authorisation request as by default, the callback
is not a required parameter.
When you use the callback
for a particular authorisation, the following flow:
is replaced with this flow:
In each endpoint in Obtaining a Consent, you can optionally specify to use a one-time-token
when the callback
is also
specified.
This provides an additional level of security by not exposing the consent-token
as a query parameter to your callback
. Instead, a short lived token is
returned which much be exchanged using POST Exchange One Time Token to obtain the consent-token
. This allows you to
get all the same information you would when using a callback
but in the response as opposed to query parameters.
When you use the callback
with the one-time-token
for a particular authorisation, the following flow:
is replaced with this flow:
Institution
that has the INITIATE_ACCOUNT_REQUEST
feature will always use the "one-legged" flowInstitution
in the authorisation flowcallback
is specified in the single authorisation requestInstitution
that uses the INITIATE_ACCOUNT_REQUEST
feature
Show Details
Institution
using
the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_AUTHORIZATION
until the user authorises the
request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
that can access the user account information
Consent
object is updated with the
consent-token
consent-token
to access the account information using GET Accounts and other financial data
belonging to the user
Show Details
Institution
using the qrCodeUrl
or authorisationUrl
returned by the
Yapily API. The status
of the Consent
will be AWAITING_AUTHORIZATION
until the user authorises the request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
to iniaite the payment on behalf of the user
Consent
object is updated with the
consent-token
consent-token
to initate the payment using POST Create Payment or POST Create Bulk Payment
consent-token
along with the payment-id
from the response of the previous request to check the status
of the payment using
GET Payment Details
Institution
that has the INITIATE_PRE_AUTHORISATION
feature will always use the "default two-legged" flowInstitution
in the authorisation flowcallback
is specified in both authorisation requests-Institution
that uses the INITIATE_PRE_AUTHORISATION
feature
Show Details
scope: AIS
and redirect the user to the
Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_PRE_AUTHORIZATION
until the
user authorises the request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
to authorise the pre authorisation request
Consent
object is updated with the consent-token
consentToken
and redirect the user to
the Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_AUTHORIZATION
until the
user authorises the request
Institution
for the second time, the user will be redirected to the redirectUrl
where the Consent
object will
be updated with the consent-token
to iniaite the payment on behalf of the user
Consent
object is updated with the
consent-token
consent-token
to access the account information using GET Accounts and other financial data
belonging to the user
Show Details
scope: PIS
and redirect the user to the
Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_PRE_AUTHORIZATION
until the
user authorises the request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
to authorise the pre authorisation request
Consent
object is updated with the consent-token
consentToken
and redirect the user to
the Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_AUTHORIZATION
until the
user authorises the request
Institution
for the second time, the user will be redirected to the redirectUrl
where the Consent
object will
be updated with the consent-token
to iniaite the payment on behalf of the user
Consent
object is updated with the
consent-token
consent-token
to use the consent-token
to initate the payment using POST Create Payment
consent-token
along with the payment-id
from the response of the previous request to check the status
of the payment using
GET Payment Details
Institution
that has the INITIATE_PRE_AUTHORISATION
feature and returns the AWAITING_DECOUPLED_AUTHORIZATION
status
in the second authorisation will always
use the "decoupled two-legged" flow.Institution
in the authorisation flowInstitution
that uses the INITIATE_PRE_AUTHORISATION
feature
Show Details
scope: AIS
and redirect the user to the
Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_PRE_AUTHORIZATION
until the
user authorises the request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
to authorise the pre authorisation request
Consent
object is updated with the consent-token
consentToken
. The status
of the Consent
will be AWAITING_DECOUPLED_AUTHORIZATION
until the user authorises the request on their device
Institution
for the second time, unlike other flows, the user will not be redirected to the redirectUrl
Consent
object is updated with the
consent-token
consent-token
to access the account information using GET Accounts and other financial data
belonging to the user
Show Details
scope: PIS
and redirect the user to the
Institution
using the qrCodeUrl
or authorisationUrl
returned by the Yapily API. The status
of the Consent
will be AWAITING_PRE_AUTHORIZATION
until the
user authorises the request
Institution
, the user will be redirected to the redirectUrl
where the Consent
object will be updated with
the consent-token
to authorise the pre authorisation request
Consent
object is updated with the consent-token
consentToken
. The status
of the Consent
will be AWAITING_DECOUPLED_AUTHORIZATION
until the user authorises the request on their device
Institution
for the second time, unlike other flows, the user will not be redirected to the redirectUrl
Consent
object is updated with the
consent-token
consent-token
to use the consent-token
to initate the payment using POST Create Payment
consent-token
along with the payment-id
from the response of the previous request to check the status
of the payment using
GET Payment Details
More information coming soon.