Validate Document (base64)
This endpoint allows the OCR validation process on the document sent on the request. ( Expecting images to be string base64)
To perform a document validation, the method to be used is Validate Document. The request to this method requires the sending of two photos (front & back of the document represented in string base64).
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 (base64)
POST
Https://api.biometrid.com/api/1.0/document/validate-base64
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": "application/json" }
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
string
Image (base64 string) representation of the document's front side for biometric analysis.
back
string
Image (base64 string) representation of the document's back side for biometric analysis.
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?