Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›How to use

MobbScan Capacitor

  • Getting started

How to use

  • Initialization
  • Onboarding process
  • Error handling
  • Validation criteria

Help

  • Changelog

Error handling

Overview

As you might have read along these documents, most of the MobbScanAPI callbacks have an error as their last argument. This is the way MobbScan let you know the reason why a process did not end successfully.

The possible error comes with the general structure as follows:

{
    "errorCode": "WRONG_PARAMETERS_ERROR",
    "errorDetails": "Some of the parameters are not valid"
}

where:

  • errorCode: is a string and represents the specific code identifying the error.
  • errorDetails: is a string and provides additional information or context about the error.

Error Codes

The following table shows the possible error codes and their meaning:

CodeMeaningMethod
CONNECTION_ERRORA network connection error happened.startScan
DOCUMENT_NOT_CLASSIFIEDThe system is unable to classify the document.scanDocument
SCAN_PROCESS_ALREADY_STARTED_ERRORThe scan process identifier (scanId) has been previously used.startScan
UNAUTHORIZED_ERRORWrong scanId, previously used or expired token.startScan, scanDocument, validateFace
USER_CANCELLED_ERRORBack button pressed during face scanning.scanDocument, validateFace
VALIDATION_ERRORThe validation criteria were not met (see below).scanDocument, validateFace
WRONG_PARAMETERS_ERRORWrong token or no scanId provided.startScan

Validation Errors

Another type of error may occur, with a structure similar to the previous ones, when one or more validations fail in the scanDocument or validateFace methods. In this case, the error will also include the details of the failed validations, as shown in the examples below.

scanDocument
validateFace
{
"errorCode": "VALIDATION_ERROR",
"errorDetails": "Some of the validation criteria have failed.",
"failedValidations": ["validationDocumentNotExpired", "validationDocumentNotSpecimen"]
}
{
"errorCode": "VALIDATION_ERROR",
"errorDetails": "Some of the validation criteria have failed.",
"failedValidations": ["validationLiveness", "validationIdentityVerification"]
}

where:

  • failedValidations: is an array of strings listing the validations that failed.
← Onboarding processValidation criteria →
  • Overview
  • Error Codes
  • Validation Errors
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2026 Mobbeel Solutions SL