Create Allowed Redirect URL

POST

/public/v3/allowed-redirect-urls

The endpoint is to register URLs that we will use to redirect the customer from their online banking provider to your application.

You must use this endpoint to register redirect URLs for your web application or if you are building an Android with App Links or iOS app with Universal Links to redirect the customer back to your mobile application.

For mobile applications with custom scheme please use our Android or iOS SDK.

We will redirect the customer to your application with a GET request, containing the query parameters listed below:

ParameterData typeRequired?Description
statusstringyesSuccess if the customer successfully shared their online banking accounts. Error, otherwise
messagestringnoAdditional description if status is error
customer_idstringyesCustomer ID
consent_idstringyesBank Consent ID (provided in the response for creating the bank flow URL)
statestringyesUnique state of the operation (provided in the response for creating the bank flow URL)
bank_slugstringyesBank slug

Parameters

none

Query parameters

none

Request Body Parameters

ParameterData typeRequired?Description
urlstringyesURL to which we will redirect the customer back to your application
commentstringnoA description for the URL

Response Body Parameters

ParameterData typeRequired?Description
allowed_redirect_url_idintyesID of the Allowed Redirect URL

Request example

1 2 3 4 5 6 7 curl --location --request POST 'https://api.friendlyscore.com/public/v3/allowed-redirect-urls' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {access_token}' \ --data-raw '{ "url": "http://localhost:8081/redirect", "comment" : "Placeat pariatur sit fuga velit." }'

Response example:

1 2 3 { "allowed_redirect_url_id": 123456 }

Was this article helpful?

Friendly Score UK Ltd.

84 Brook Street

London W1K 5EH

Call us on +44 20 3709 6726

Company registered in England

Company number 09168668, ICO ZA111687

VAT registration number 206 9758 80

Authorised and Regulated by the Financial Conduct Authority. (FRN: 821100, 781963)