GloRep Actions/Endpoints
Actions:
Get verification link
You need to be an authorized user to perform this request, as the user who makes the request is taken.
Query:
query{
getVerificationLink
}
Response:
{
"data": {
"getVerificationLink": "https://dev.glorep.com/user/#/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1c2VyIiwic3ViIjp7Im9yZ2FuaXphdGlvbk5hbWUiOiJBRlJJREFYIiwib3JnYW5pc2F0aW9uTWFpbCI6ImZyYW5uaWNrMzJAZ21haWwuY29tIiwiX2lkIjoiNjRmNWNkMDkwYjIwZDU4NGM1OTJhZmQ4In0sImlhdCI6MTcxMDkzMzU4ODA4NiwiZXhwIjoxNzM0MTk0MzY1fQ.ZBG76RJ2dEMDc7K3CLJMF6PZ3768V2zoD9SlTmhoBZ8/661e1249f27e55598dff6d54"
}
}
After clicking on the link, the user will be redirected to the workflow created and selected in the GloRep Dashboard. After successful completion, an event about the verification status will be sent to the endpoint, which will process it and change the verification status in our system along with the withdraw level of user.
Endpoins:
Get event and update user status
<BASE_URL>/glorep/updateKYC
- endpoint for get event from GloRep
Example for Final Status:
{
"userId":"6604023a5ae5550c4a11185b",
"event":"Final Status",
"finalStatus":"failed",
"organizationId":"64f5cd555b20d584c592afd8",
"individualId":"6604023555e2660c4a11185b",
"individualExternalReference":""
}
Example for Risk:
Final Status
When the final status arrives that the user has passed validation, we check his risk status and, depending on it, set him a withdrawLevel. The main thing is that such levels are in the system (1,2,3)
Risk
If a risk update event arrives, we do the same.