INE antispoofing service

INE antispoofing service

The service do the processes of validation of the voter identification card issued by detecting of spoofing.

~/api/Business/antispoofing

Parameters

Tag Type Required Description
frontFile file yes Image File of the front side of INE, png, jpg, jpeg are allowed formats.
backFile file yes Image File of the back side of INE, png, jpg, jpeg are allowed formats.

Headers

Tag Type Required Description
apikey string yes Customer key.

FormData

{
  "frontFile": file,
  "backFile": file
}

Response:

Correct:

Name Type Description
frontValidation
isSpoofing boolean Checks if the front image it is spoofing.
probability double Precision of spoofing in range of 0 a 1. Where 0.5 represents 50%.
backValidation
isSpoofing boolean Checks if the back image it is spoofing.
probability double Precision of spoofing in range of 0 a 1. Where 0.5 represents 50%.

JSON file

{
  "frontValidation": {
    "isSpoofing": boolean,
    "probability": double
  },
  "backValidation": {
    "isSpoofing": boolean,
    "probability": double
  }
}

Error:

Name Type Description
code string Error code.
message string Error message.
{
  "code": "string",
  "message": "string"
}

Service messages

Code Message Description
00 Success Indicates whether the request was successful or unsuccessful. If everything goes well, the structure of the data will be displayed.
Errors
INE001 Incorrect params. There is no backFile or frontFile. Message that is displayed when the request has been completed successfully but its response has no content, (Example: when the front and back image is not sent).
INE002 Incorrect information. There is not frontFile. Message that is displayed when the front image is not sent.
INE003 Incorrect information. There is not backFile. Message that is displayed when the back image is not sent.
INE004 The format of the input document does not correspond to any of the allowed JPG, JPEG and PNG Message that is displayed when the back or front file is not an image format file.
INE006 The file size is not within the approximate range of 4 MB allowed. Message displayed when the file is larger than the allowed.
INE008 Something was wrong, we are working on the failure. Message displayed when there is an error on the server.
INE009 Access Denied. ApiKey not present. Message displayed when a request is received with an unauthorized ApiKey.
INE016 Response time has exceeded Message displayed when a request waiting time is too large.