Get Javascript One Time Url
POST
/public/v3/component_auth/init
Get a one-time url to render the Planky WebComponent
Please also read detailed information How to implement Web Component
none
none
Parameter | Data type | Required? | Description |
---|---|---|---|
ip | string | yes | IP address of the customer. Put 0.0.0.0 if the IP address is unknown |
user_agent | string | yes | User Agent of the customer. Put "" if the user agent is unknown |
user_reference | string | yes | User Reference |
origin | string | yes | Set the origin where Web Component will be placed. Please remember to add this origin in Developer Panel |
Parameter | Data type | Required? | Description |
---|---|---|---|
url | string | yes | URL of the One Time Javascript URL |
created_at | integer | yes | Timestamp of creation |
expires_in | integer | yes | Timestamp of expiration |
flow | array<string> | yes | Returns always: open-banking |
1
2
3
4
5
6
7
8
9
curl --location --request POST 'https://api.friendlyscore.com/public/v3/component_auth/init' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access_token}' \
--data-raw '{
"user_reference": "customer-1",
"user_agent": "user-agent-data",
"ip": "127.0.0.1",
"origin": "http://localhost"
}'
1
2
3
4
5
6
7
8
{
"url": "https://component.friendlyscore.com/render/token=123456789",
"created_at": 1541014557,
"expires_in": 1800,
"flow": [
"open-banking"
]
}
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)