7. KYC
To initiate KYC, you have to call following API endpoint
POST /api/veriff/sessions
with following payload:
{
    "lang": "en", // or pl
    "platform": "RENTINVESTO" // or CROWDEX
}Authorization: Bearer ACCESS_TOKEN
and response will be:
{
    "sessionUrl": "https://alchemy.veriff.com/v/eyJhbGc..."
}The sessionUrl should be then passed to veriff sdk widget to start verification.
In case of failure because of integration exception, you will get response as:
{ 
    "error": "Failed to create verification", 
    "status": "FAILED"
}with status code 500
In case user already completed KYC, then the response will be:
{ 
    "error": "User already completed KYC", 
    "status": "CONFLICT"
}with status code 400