Session statuses

The status of a KYC session is returned in the status field of the kyc/session/status response, in the session list and in the SESSION_COMPLETE webhook (see Webhooks).


Values

StatusMeaningFinal
idleThe session is created, processing has not startedNo
processingThe session is being processed, including database checksNo
successVerification passedYes
failedVerification failedYes, once the session lifetime is over; with the [legal] database check failed or [general] too many tries code — immediately
suspiciousThe session is flagged as suspiciousYes
exceptionProcessing errorNo
expiredThe user did not finish the session within its lifetimeYes

When the result is final

  • The simplest way is the isFinal field in the kyc/session/status response, in the session list and in the SESSION_COMPLETE webhook: true — the user can do nothing more in the session and its processing is over, including the checks the scenario runs. While isFinal is false, wait for the next SESSION_COMPLETE or repeat the request later. The rules below describe when this happens.
  • While the session has time left (secondsToLive greater than 0) and attempts remain, the user can retake a step. So failed can change to success.
  • Treat the result as final when secondsToLive = 0, or when the status is success or suspicious.
  • When the lifetime is over, a session in idle becomes expired, and SESSION_COMPLETE with the status expired is sent to the webhook address of the scenario. A session in processing gets its final status when processing finishes.
  • failed with the [legal] database check failed code in errors is a refusal by a blocking database check. Treat it as a final refusal without waiting for the lifetime to end: secondsToLive may still be greater than 0 (see the section below).
  • failed with the [general] too many tries code in errors means the user has run out of attempts for a step; the same code comes in the errors of that step. This result is final even if secondsToLive is greater than 0: after the liveness attempts run out the remaining session time is not reset to zero, but the session cannot be continued.
  • Receive the result by webhook in the default mode, where a webhook comes on every change of the session result, and pick the final statuses on your side by the rules above. With the "Notify only when the session is finalized" setting a webhook comes only when the session is over: the status is success or suspicious, the attempts of a step have run out, the database checks have given their outcome (including a refusal by a blocking check) or the status was changed manually. An intermediate failed, after which the user can still retake the step, does not come in this mode.

Refusal by a database check

A database check can be marked as blocking in the scenario. If a blocking check fails, a session that passed its steps gets the failed status, and the [legal] database check failed code appears in errors. Non-blocking checks do not affect the session status: their outcome is only in the database check results.

If the check is run again and passes, the code is removed and the session status is worked out anew.


The suspicious status

A session with the suspicious status is blocked: it accepts no more images and secondsToLive is 0. A session becomes suspicious if:

  • the face images show different people: the selfie face did not match the liveness face;
  • the face did not match the reference session (see kyc/session/reference);
  • the selfie or liveness face did not match the document photo and the scenario has "Block session on the first face mismatch" on; without it the user is asked to retake the step;
  • the user's face is found in the faces black list of the scenario — the [fraud] black list code;
  • two different documents were uploaded in one step and the scenario has "Block session when 2 different documents are found in one step" on — the [fraud] manipulation detected code;
  • the same person earlier submitted a document of the same type with different data and the scenario has "Block session if user came with same document type but different data" on — the [fraud] multiple documents code;
  • the person has already passed verification with another clientUser and the scenario has "Block session if the client tries to open another account" on — the [general] duplicate account code;
  • the age by the date of birth in the document is outside the range set in the scenario — the [general] age requirement mismatch code; there is no retake, the session is blocked on the first attempt. If an operator clears this error in the personal account or corrects the date of birth to a matching one, the session status is recalculated from the other steps;
  • the critical error limit set in the scenario ("Number of critical errors before blocking a session (0-infinite)") is reached.

The scenario settings are described in the KYC (Know Your Customer) / AML manual, the General options section.


The exception status

exception on a whole session is rare: request the status again. More often exception is the status of a single step or check inside the session.


Changing the status manually

The status can be changed with kyc/session/status/change or in the session card in your account. The method accepts any of the seven values above. After a manual status change the session is closed and the result is final at once (isFinal: true): secondsToLive is 0, and database checks no longer change that status.

The status is also worked out anew when an operator corrects a recognized value or lifts a step error in the account. After the correction your server receives a SESSION_COMPLETE webhook with the new result; with the "Notify only when the session is finalized" setting — only if the correction gave a new final status.


Questionnaire statuses

A stage-1 questionnaire record (see Two-stage verification: questionnaire → KYC) has two statuses:

StatusMeaning
idleThe questionnaire is open, the answers have not been submitted
successThe questionnaire answers are recorded

success on a questionnaire is not a decision about the user. Database check results are in the checks field.


Session not found

If there is no session with the given identifier, the method answers HTTP 200 with the body:

{
  "status": "error",
  "message": "session not found"
}

Check the status field of the response body, not only the HTTP code.