Configure IDP Sandbox 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. These failure reasons will then be mapped to the correct requirements_not_met failure reason.

Endpoint

HTTP
Copy

Code examples

Javascript
PHP
Java
Go
Copy

Example response configuration

RTW
DBS
Identity
Identity & Address
Sharecode
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 and different aborted reasons. The below tables outlines the different scenarios that can be mocked.

Tasks

TaskReport TemplateDescriptionAborted Reason
ID_DOCUMENT_TEXT_DATA_EXTRACTIONSUCCESSThis simulates a successful automated data extraction task.N/A
ID_DOCUMENT_TEXT_DATA_EXTRACTIONUNSUPPORTED_DOCUMENT *This simulates an unsuccessful automated data extraction task.MANDATORY_DOCUMENT_NOT_PROVIDED
ID_DOCUMENT_TEXT_DATA_EXTRACTIONDOCUMENT_IS___EXPIRED *This simulates an unsuccessful automated data extraction task.MANDATORY_DOCUMENT_NOT_PROVIDED
ID_DOCUMENT_TEXT_DATA_EXTRACTIONUNABLE_TO_OCR *This simulates an unsuccessful automated data extraction task.MANDATORY_DOCUMENT_NOT_PROVIDED

*The text extraction task has multiple attempts, so multiple Report Template reasons will need to be added to the array in order to abort the session

Checks

CheckReport TemplateDescriptionAborted Reason
ID_DOCUMENT_AUTHENTICITYSUCCESSThis simulates a "APPROVE" outcome for the document authenticity checkN/A
ID_DOCUMENT_AUTHENTICITYTAMPEREDThis simulates a "REJECT" outcome for the document authenticity check, due to a fraudulent document.FRAUD_DETECTED
ID_DOCUMENT_AUTHENTICITYPHOTO_TOO_BLURRYThis simulates a "NOT_AVAILABLE" outcome for the document authenticity check, due a blurry image.UNABLE_TO_VALIDATE_DOCUMENT
ID_DOCUMENT_FACE_MATCHSUCCESSThis simulates a "APPROVE" outcome for the face match check.N/A
ID_DOCUMENT_FACE_MATCHAUTO_FAILThis simulates a "fail" outcome for the automated face match check. However the overall face match check is still an "APPROVE" due to the manual check passing.N/A
ID_DOCUMENT_FACE_MATCHMANUAL_FAILThis simulates a "REJECT" outcome for the face match check. With the manual sub check failing.FRAUD_DETECTED
LIVENESSSUCCESSThis simulates a "APPROVE" outcome for the liveness check.N/A
LIVENESSFAILThis simulates a "REJECT" outcome for the liveness check.MISSING_LIVENESS
THIRD_PARTY_IDENTITYSUCCESSThis simulates a "APPROVE" outcome for the third party identity check.N/A
THIRD_PARTY_IDENTITYNO_PROPERTIES_MATCHEDThis simulates a "REJECT" outcome for the third party identity check.IDENTITY_CHECK_FAILED
THIRD_PARTY_IDENTITY_FRAUD_1SUCCESSThis simulates a "APPROVE" outcome for the identity fraud check.N/A
THIRD_PARTY_IDENTITY_FRAUD_1FAILThis simulates a "REJECT" outcome for the identity fraud check.FRAUD_DETECTED
FACE_COMPARISONSUCCESSThis simulates a "APPROVE" outcome for the face comparison check.N/A
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard