Configure response

AI Tools

Instead of relying on the Yoti default sandbox response, integrators can configure which checks pass or fail and specify the failure reasons within a session. This is done using an object that includes defined task_results and check_reports.

Endpoint

HTTP
Copy

Code examples

Javascript
PHP
Python
Java
Go
Copy

Example Response Configuration

JSON
Copy

On completion of this API request, you will simply receive a 200 response.

In the sandbox you can configure both successful outcomes and unsuccessful outcomes of checks & tasks to mock multiple different scenarios. The below tables outlines the different scenarios that can be mocked.

Tasks

TaskReport templateDescription
ID_DOCUMENT_TEXT_DATA_EXTRACTIONSUCCESSThis simulates a successful automated data extraction task.
ID_DOCUMENT_TEXT_DATA_EXTRACTIONUNSUPPORTED_DOCUMENTThis simulates an unsuccessful automated data extraction task.
ID_DOCUMENT_TEXT_DATA_EXTRACTIONDOCUMENT_IS_EXPIREDThis simulates a unsuccessful automated data extraction task.
ID_DOCUMENT_TEXT_DATA___EXTRACTIONUNABLE_TO_OCRThis simulates a unsuccessful automated data extraction task.

Checks

CheckReport templateDescription
ID_DOCUMENT_AUTHENTICITYSUCCESSThis simulates a "APPROVE" outcome for the document authenticity check
ID_DOCUMENT_AUTHENTICITYTAMPEREDThis simulates a "REJECT" outcome for the document authenticity check, due to a fraudulent document.
ID_DOCUMENT_AUTHENTICITYDOCUMENT_COPYThis simulates a "REJECT" outcome for the document authenticity check, due to an image of a document being used instead of a live capture.
ID_DOCUMENT_AUTHENTICITYPHOTO_TOO_BLURRYThis simulates a "NOT_AVAILABLE" outcome for the document authenticity check, due a blurry image.
ID_DOCUMENT_AUTHENTICITYFRAUD_LIST_MATCHThis simulates a "REJECT" outcome for the document authenticity check, due to a fraudulent document.
ID_DOCUMENT_AUTHENTICITYGLARE_OBSTRUCTIONThis simulates a "NOT_AVAILABLE" outcome for the document authenticity check, due to glare obstruction.
ID_DOCUMENT___FACE_MATCHSUCCESSThis simulates a "APPROVE" outcome for the face match check.
ID_DOCUMENT_FACE_MATCHAUTO_FAILThis simulates a "REJECT" outcome for the face match check. With the automated sub check failing.
ID_DOCUMENT_FACE_MATCHMANUAL_FAILThis simulates a "REJECT" outcome for the face match check. With the manual sub check failing.
ID_DOCUMENT_FACE_MATCHFAILThis simulates a "REJECT" outcome for the face match check. With both the automated and the manual sub check failing.
ID_DOCUMENT_TEXT_DATA_EXTRACTIONSUCCESSThis simulates a "APPROVE" outcome for the data extraction manual check.
ID_DOCUMENT_TEXT_DATA_EXTRACTIONEXTRACTION_FAILEDThis simulates a "NOT_AVAILABLE" outcome for the data extraction manual check.
LIVENESSSUCCESSThis simulates a "APPROVE" outcome for the liveness check.
LIVENESSFAILThis simulates a "REJECT" outcome for the liveness check.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard