Document Check
Check your clients documents to extracts details and confirm their authenticity.
Run a document check
To run a Document Check, you must create a check with the type
set to document_check
The provided document must have an issuingCountry
and associated image attachments that adhere to our image specifications.
The front side of the document will always be required. For certain document types, you should also provide the back side.
If the back side is not provided, our engine will conduct the check based on the front side alone. It is highly recommended to provide both sides of documents for more robust checks to take place.
Image specifications
Image attachments must comply with the following:
The images must be of good quality, with a minimum of 150 DPI.
The images must be either in JPG, PNG, or PDF format.
The images must be provided without blur or glare.
You must not take the image at an angle.
Each side of the document must be between 34 KB and 4 MB.
Check request
clientId
string
The ID of the client associated with this check. (Required)
type
string
This must be set to document_check
. (Required)
documentId
string
The ID of the document. (Required)
The options
object
options
object analysisCoverage
array[string]
The types of analysis to conduct as part of a document check. Valid values include:
consistency_analysis
forensic_analysis
content_analysis
format_analysis
front_back_analysis
mrz_analysis
When this attribute is not provided, we will conduct all analysis types.
minimumPermittedAge
number
The minimum acceptable age before your client ID is flagged. When this attribute is not provided, we will default the minimum age to 18.
clientDataValidation
boolean
Adds an additional check that compares the client record data (first and last names) with data extracted from an ID document. When this attribute is not provided, it will default to false.
Example requests
Simple request
Request with optional attributes
Result object
The result
object is only returned when the status of the check is complete
. It has two components - outcome
and breakdown
.
Outcome
The outcome attribute represents the overall check result. Returned values include:
clear
: Indicates every analysis type conducted returned a successful result, and hence the document is authentic.attention
: Indicates at least one of the analysis results requires attention.not_processed
: Indicates that ComplyCube was not able to process the images. Reasons include:The image is of low quality.
The image is blurred or glared.
The image is at an angle.
The ID type and country provided do not correspond with the actual document provided uploaded.
Breakdown
The breakdown comprises the following objects:
extractedData
object
extractedData
objectThe data extracted using Optical Character Recognition (OCR). It has the following constituents:
documentDetails
: Data relating to the document.documentType
: The detected document type. Values include:passport
driving_license
national_identity_card
residence_permit
visa
unidentified
hasTwoSides
: A boolean indicating if both sides of the document were used for the analysis.issuingCountry
: The issuing country of the document. This will be the two-letter country ISO code.expirationDate
: The expiry date of the document. This will be a structured date.documentNumber
: The document number.personalNumber
: The personal number, if available.issuingDate
: The issuing date of the document. This will be a structured date.issuingPlace
: The issuing place of the document.issuingAuthority
: The issuing authority of the document.additionalDetails
: Any additional details extracted from the document. This will be returned as an array of key/value pair objects.documentDiscriminator
: The document discriminator.cardAccessNumber
: The card access number.mrz
: The Machine Readable Zone (MRZ), which is usually at the bottom of the identity page of a passport or the back of an identity card, can be up to 3 lines depending on the document type:line1
line2
line3
holderDetails
: Data relating to the document holder.firstName
: The list of first/given names as an array.lastName
: The list of last names as an array.dob
: The date of birth. This will be a structured date.age
: The age of the document holder. This will be anumber
.birthPlace
: The birthplace.nationality
: The nationality. This will be the two-letter country ISO code.taxIdentificationNumber
: The Tax Identification Number (TIN).healthInsuranceNumber
: The health insurance number.gender
: The gender. Values include:male
female
other
allExtractedData
: All the data extracted from the document, including data in native scripts, organized by source (e.g. Visual, MRZ, and barcode)visual
: All data extracted through the Visual Inspection Zone (VIZ).mrz
: All data extracted through the MRZ.barcode
: All data extracted through the barcode or QR code.rfid
: All data extracted through the RFID chip.
extractedImages
array
extractedImages
arrayThe images extracted from the document. It's an array of type/data objects:
type
: The extracted image type. Values include:front_side
back_side
extracted_face
extracted_signature
extracted_security_element
extracted_code
extracted_fingerprint
data
: TheBASE64
encoded data content.
Analysis
For each conducted analysis, the returned values include:
clear
: Indicates the analysis returned a successful result.attention
: Indicates a potential falsified or fraudulent document.not_processed
: Returned when the analysis does not apply to a document type, e.g. MRZ Analysis on a document without an MRZ. It will also be returned if ComplyCube does not support a given country's particular analysis for a document type.
mrzAnalysis
object
mrzAnalysis
objectThe MRZ analysis results. It has the following constituents:
mrzChecksum
: Indicates whether the MRZ checksum test is valid.mrzFormat
: Indicates whether the MRZ format is valid.
rfidAnalysis
object
rfidAnalysis
objectThe RFID chip analysis results. It has the following constituents:
basicAccessControl
: Indicates whether the RFID chip passes a Basic Access Control (BAC) inspection.chipAuthentication
: Indicates whether the RFID chip is original and secure.passiveAuthentication
: Indicates whether the digital signature of the RFID chip is authentic and has not been tampered with.activeAuthentication
: Indicates whether the RFID chip passes our advanced dynamic authentication checks.pace
: Indicates whether the RFID chip passes the Password Authenticated Connection Establishment (PACE) inspection in line with standards.chipAndVisualFacialSimilarity
: Indicates whether the portrait image extracted from the RFID chip matches the one extracted from the visual ID document.breakdown
: Breakdown related to RFID analysis.chipAndVisualFacialSimilarityScore
: Indicates whether the portrait images extracted from the RFID chip and visual ID document are of the same person. The score will be 100 for a perfect match.
consistencyAnalysis
object
consistencyAnalysis
objectThe consistency analysis results. It has the following constituents:
firstName
: Indicates whether the first name on the document and MRZ are consistent.lastName
: Indicates whether the last name on the document and MRZ are consistent.dob
: Indicates whether the birth date on the document and MRZ are consistent.documentNumber
: Indicates whether the document number on the document and MRZ are consistent.personalNumber
: Indicates whether the personal number on the document and MRZ are consistent.issuingDate
: Indicates whether issuing date on the document and MRZ are consistent.expirationDate
: Indicates whether the expiry date on the document and MRZ are consistent.
contentAnalysis
object
contentAnalysis
objectThe content analysis results. It has the following constituents:
dataIntegrity
: Indicates whether the extracted data passes our integrity check.issuingDate
: Indicates whether issuing date has valid content.expirationDate
: Indicates whether the expiration date has valid content.nationality
: Indicates whether nationality has valid content.specimenCheck
: Indicates whether the content has been copied from the internet.blackListCheck
: Indicates a competent authority blacklisted the ID document.
formatAnalysis
object
formatAnalysis
objectThe format analysis results. It has the following constituents:
modelIdentification
: Indicates whether the document model has been identified.countryModelValidity
: Indicates whether the document model adheres to the issuing country specifications.documentModelValidity
: Indicates whether the document model adheres to the document type specifications.photocopyDetected
: Indicates whether the document is a black and white photocopy.
forensicAnalysis
object
forensicAnalysis
objectThe forensic analysis results. It has the following constituents:
documentLivenessCheck
: Indicates if the document image is genuine and not a photo-of-an-image or photo-of-a-screen.tamperingDetected
: Indicates if the document image is tampered with using image manipulation software, such as Photoshop.daylightAnalysis
: Indicates whether the document daylight colours are valid.mrzVisualPlacement
: Indicates whether the MRZ is in the right location and not tampered with.securityElements
: Indicates whether the document security elements are valid.photoLocation
: Indicates whether the photo is in the correct location for a given document type.mrzClassification
: Indicates whether the MRZ is consistent with the document type.breakdown
: Breakdown related to forensic analysis.documentFrontLivenessScore
: Indicates the liveness score of the front side image of the document. The score will be 100 when it is assumed to be authentic.documentBackLivenessScore
: Indicates the liveness score of the back side image of the document. The score will be 100 when it is assumed to be authentic.
frontAndBackAnalysis
object
frontAndBackAnalysis
objectThe front and back of the image analysis results. It has the following constituents:
formatAnalysis
: Indicates that both sides of the document are following the document type and country specifications.dataConsistency
: Indicates whether data on both sides of the document are consistent.
securityAndPatternAnalysis
array
securityAndPatternAnalysis
arrayThe security and pattern analysis results. It constitutes of an array of objects taking the following form:
expectedImageData
: TheBASE64
encoded data of the expected security element's pattern.actualImageData
: TheBASE64
encoded data of the actual extracted security element pattern.similarity
: The similarity score between the expected and actual image patterns. The higher the score, the more likely the document is authentic.outcome
: The outcome of the analysis. This can beclear
orattention
.narrative
: A description of the analysis performed.
clientValidation
object
clientValidation
objectThe client validation results. It has the following constituents:
ageVerification
: Indicates whether the extracted age is greater than or equal to a predefined minimum accepted age.clientDataConsistency
: Indicates whether the client data (e.g. first and last names) corresponds with data extracted from the ID.
Sample response
Last updated