Error Handling

Error Response

Here is a sample object for the error response, check the below table for more detailed information:

{
  "success": false,
  "message": "ERROR MESSAGE",
  "error_code":"<ERROR_CODE>"
}
PropertyDescription
successType: bool
A boolean indicates whether the operation completed successfully or not.
messageType: string
A descriptive message that provides additional context about the error.
error_codeType: string
A code that identifies the type of error encountered during the process. Useful for troubleshooting, this code allows developers to pinpoint specific issues and consult related documentation or support resources. Please check below for possible error codes.

Error Codes

Error CodeDescriptionAPI ApplicabilityResponse Status
missing_authorization_headerThe request does not include an Authorization header, which is required for authentication.all APIs401
invalid_credentialsThe credentials provided in the request are invalid. This error typically occurs when the username/ password or API Key/API Secret are incorrect or do not match the records.all APIs401
invalid_authentication_formatThe authentication information provided in the request is improperly formatted. This error typically occurs when the Authorization header does not adhere to the required structure (e.g., missing token type or malformed token).all APIs401
unauthorizedThe credentials provided in the request belong to a different environment (e.g., sandbox or live) or tenant. This error occurs when there is a mismatch between the authentication key and the target resource. Double check the API Key/API Secret pair you are using belong to the correct tenant and environment of the journey you are trying to accessall APIs403
not_allowed_ip_addressThe request has been denied because the IP address of the client is not on the allowed whitelist. Access is restricted to specific IP addresses configured in the system.all APIs403
missing_requested_resourceThis error typically occurs if the request resource does not exist in the system, or has been deleted.all APIs404
invalid_requestThe request is not valid for the current state of the resource or operation.all APIs400
missing_parameterThis error occurs when mandatory fields are not included in the payload, query string, or headers.all APIs400
invalid_flow_definitionThe flow definition provided in the request is invalid. This could be due to missing or incorrect steps, or invalid configurations.start journey400
invalid_step_idThis error occurs when the step ID is either missing or not defined as part of the flow.process journey step400
invalid_imageThis error is triggered when the uploaded file is not an image or is a corrupted image file.process journey step400
invalid_image_formatThis error occurs when the provided image is not in an acceptable format or does not meet the necessary specifications required by the system.process journey step400
invalid_image_dimensionsThe uploaded image does not meet the required height and width specifications.process journey step400
invalid_spot_check_requestThe spot check request is invalid because there is either no associated onboarding journey, or the onboarding journey exists but does not include a selfie step.start journey
process journey step
400
invalid_aml_configurationThe Anti-Money Laundering (AML) configuration provided in the request is invalid. This error occurs when the configuration settings for the AML process are incorrect or incompatible with the system requirements.update aml whitelist status400
ogm_error_no_aml_recordThe operation could not be completed because no AML record exists for the specified entity.set ongoing monitoring400
ogm_error_no_successful_amlThe operation could not be completed because there is no successful AML check for the specified entity.set ongoing monitoring 400
ogm_error_incomplete_journeyThis error occurs when the journey required for enabling ongoing monitoring is incomplete.set ongoing monitoring 400
internal_server_errorThis error indicates that an unexpected internal server error occurred while processing the request. This is a generic error for issues within the server.all APIs500
generic_errorIndicates a generic or unexpected error. Please reach out to support if the issue persists.all APIs-