Document Check
What kind of data I will get
By using this integration you will be able to verify identity customers' documents.
Integration Scope
You can choose which of the document types user will be allowed to pass. These include
national identity card
driving licence
passport
resident permit
Input
You can configure users' input that will be send to comply cube in order to get the most of the verifications.
The client's email address.
string
Yes
mobile
The client's mobile number.
string
No
telephone
The client's telephone number.
string
No
joinedDate
The date and time when the client was registered with you. This is relevant for users that migrate existing customers.
string (format YYYY-MM-DD)
No
PersonDetails
firstName
The client's first name.
string
Yes (required when client is a person)
middleName
The client's middle name.
string
No
lastName
The client's last name.
string
Yes (required when client is a person)
dob
The client's date of birth.
string (format YYYY-MM-DD)
No
gender
The client's gender.
string (possible values include: male, female, other)
No
nationality
The client's nationality.
string (2 letter country ISO code)
No
birthCountry
The client's birth country.
string (2 letter country ISO code)
No
ssn
The client's SSN (Social Security Number). This is for US clients.
string
No
socialInsuranceNumber
The client's Social Insurance Number.
string
No
nationalIdentityNumber
The client's National Identity Number.
string
No
taxIdentificationNumber
The client's Tax Identification Number (TIN).
string
No
CompanyDetails
name
Name of the company.
string
Yes (required if client is company)
website
Website of the company.
string
No
registrationNumber
Registration number of the company.
string
No
incorporationCountry
Country where the company is incorporated.
string (2 letter country ISO code)
No
incorporationType
Type of incorporation of the company.
string (possible values include:
sole_proprietorshipprivate_limited_companypublic_limited_companylimited_partnershipholding_companynon_government_organisationstatutory_companysubsidiary_companyunlimited_partnershipcharitable_incorporated_organisationchartered_company)
No
Input Example
Output
Client
id
string
The unique identifier for a client.
type
string, possible values include:
personcompany
The type of client.
entityName
string
The client's full name.
string
The client's email address.
companyDetails
object
Details for a client of type company.
createdAt
string
The date and time when the client was created.
updatedAt
string
The date and time when the client was updated.
Person Details
firstName
string
The client's first name.
lastName
string
The client's last name.
Company Details
name
string
The client's name.
Checks Result
Document Check
state
string, possible values include:
INITIN_PROGRESSERRORFAILEDFINISHED
The status of the client's verification
files
links
Links that allow to download client's documents.
outcome
string, possible values include:
clear
attention
not_processed
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.
Document
type
string,
valid values include:
passportdriving_licensenational_insurance_numbersocial_security_numberutility_billtax_identification_numbernational_identity_cardvisapolling_cardresidence_permitbirth_certificatebank_statementchange_of_nametax_documentcompany_confirmation_statementcompany_annual_accountscompany_statement_of_capitalcompany_change_of_addresscompany_incorporationcompany_change_of_officerscompany_change_of_beneficial_ownersunknownother
The type of document.
createdAt
string
The date and time when the document was created.
updatedAt
string
The date and time when the document was updated.
Breakdown
object
All the data extracted from the document, including data in native scripts, organized by source (e.g. Visual, MRZ, and barcode)
Extracted Data
Document Details
documentType
string, possible values include:
passportdriving_licensenational_identity_cardresidence_permitvisaunidentified
Detected document type.
hasTwoSides
boolean
A boolean indicating if both sides of the document were used for the analysis.
issuingCountry
string
The issuing country of the document. This will be the two-letter country ISO code.
documentNumber
string
Document number.
personalNumber
string
Personal number (if available).
issuingPlace
string
Issuing place of the document.
issuingAuthority
string
Issuing authority of the document.
additionalDetails
array
Any additional details extracted from the document. This will be returned as an array of key/value pair objects.
documentDiscriminator
string
Document discriminator.
cardAccessNumber
string
Card access number.
mrz
object
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:
line1line2line3
Holder Details
firstName
array<string>
The list of first/given names as an array.
lastName
array<string>
The list of last names as an array.
age
number
The age of the document holder.
birthPlace
string
Birthplace.
taxIdentificationNumber
string
Tax Identification Number (TIN).
healthInsuranceNumber
string
Health insurance number.
gender
string, values include:
malefemaleother
Gender of the document holder.
Date
day
number
The day of the month. Value range 1-31.
month
number
The month. Value range 1-12.
year
number
The year, in YYYY format.
All extracted Data
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.
MRZ Analysis
mrzFormat
string
Indicates whether the MRZ checksum test is valid.
mrzChecksum
string
Indicates whether the MRZ checksum test is valid.
Consistency Analysis
lastName
string
Indicates whether the first name on the document and MRZ are consistent.
firstName
string
Indicates whether the last name on the document and MRZ are consistent.
dob
string
Indicates whether the birth date on the document and MRZ are consistent.
documentNumber
string
Indicates whether the document number on the document and MRZ are consistent.
personalNumber
string
Indicates whether the personal number on the document and MRZ are consistent.
expirationDate
string
Indicates whether the expiry date on the document and MRZ are consistent.
issuingDate
string
Indicates whether issuing date on the document and MRZ are consistent.
Content Analysis
dataIntegrity
string
Indicates whether the extracted data passes our integrity check.
issuingDate
string
Indicates whether issuing date has valid content.
expirationDate
string
Indicates whether the expiration date has valid content.
nationality
string
Indicates whether nationality has valid content.
specimenCheck
string
Indicates whether the content has been copied from the internet.
blackListCheck
string
Indicates a competent authority blacklisted the ID document.
Format Analysis
modelIdentification
string
Indicates whether the document model has been identified.
countryModelValidity
string
Indicates whether the document model adheres to the issuing country specifications.
documentModelValidity
string
Indicates whether the document model adheres to the document type specifications.
photocopyDetected
string
Indicates whether the document is a black and white photocopy.
Forensic Analysis
documentLivenessCheck
string
Indicates if the document image is genuine and not a photo-of-an-image or photo-of-a-screen.
tamperingDetected
string
Indicates if the document image is tampered with using image manipulation software, such as Photoshop.
daylightAnalysis
string
Indicates whether the document daylight colours are valid.
mrzVisualPlacement
string
Indicates whether the MRZ is in the right location and not tampered with.
securityElements
string
Indicates whether the document security elements are valid.
photoLocation
string
Indicates whether the photo is in the correct location for a given document type.
mrzClassification
string
Indicates whether the MRZ is consistent with the document type.
Forensic Analysis Breakdown
documentFrontLivenessScore
number
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
number
Indicates the liveness score of the back side image of the document. The score will be 100 when it is assumed to be authentic.
Front And Back Analysis
formatAnalysis
string
Indicates that both sides of the document are following the document type and country specifications.
dataConsistency
string
Indicates whether data on both sides of the document are consistent.
Client Validation
ageVerification
string
Indicates whether the extracted age is greater than or equal to a predefined minimum accepted age.
clientDataConsistency
string
Indicates whether the client data (e.g. first and last names) corresponds with data extracted from the ID.
Extracted Images
type
string,
possible values include:
front_sideback_sideextracted_faceextracted_signatureextracted_security_elementextracted_codeextracted_fingerprint
Extracted image type.
data
string
BASE64 encoded image data.
Security And Pattern Analysis
similarity
string
The similarity score between the expected and actual image patterns. The higher the score, the more likely the document is authentic.
outcome
string
The outcome of the analysis. This can be clear or attention.
narrative
string
A description of the analysis performed.
actualImageData
string
The BASE64 encoded data of the actual extracted security element pattern.
expectedImageData
string
The BASE64 encoded data of the expected security element's pattern.
Output Example
Was this helpful?