Validate Document
This endpoint allows the OCR validation process on the document sent on the request.
To perform a document validation, the method to be used is Validate Document. The request to this method requires the upload two photos (front & back of the document).
This process will perform:
Automatic ID type recognition
Algorithmic-based checks
Detect security features in global identity documents
Reading and extraction of all documents fields
In case of a validation success BiometrID will retrieve all the data extracted from the document.
Validate Document
POST
Https://api.biometrid.com/api/1.0/document/validate
Validate document process
Headers
Content-type
string
Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }
x-biometrid-key
string
Application Client Key
x-biometrid-secret
string
Application Client Secret
Request Body
doctype
string
Required if document type different than idcard. Possible values: idcard, passport
. If not present, by default, the system will expect idcard evaluation.
front
object
Image file containing document's front for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.
back
object
Image file containing document's front for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.
processId
string
Optional process id. Setup a specific process id.
Success 200
Field
Type
Description
status
Boolean
Response status.
data
Object
Response main data.
message
String
Message regarding the document's process.
result
String
Result of the document's process.
side
String
Code for the document side that were processed. 0: both sides were processed 1: front side was processed, 2: back side was processed.
reference
String
Process identifying code.
frontCut
String
Front image cut result. Image in Base64 string.
backCut
String
Back image cut. Image in Base64 string.
photo
String
Photo image cut. Image in Base64 string.
signature
String
Signature image cut. Image in Base64 string.
fields
String
Document's processed fields.
normal
String
Processed fields values.
validation
String
Processed fields validation.
Last updated
Was this helpful?