Engineering

⌘K
  1. Home
  2. Docs
  3. Engineering
  4. ID Card Verification

ID Card Verification

MongoDB Schema

No.FieldTypeDescription
1kindString/EnumC = Citizen card
D = Driver’s license
P = Passport
F = KITAS
T = Tax card
2identifierStringNIK for KTP (Indonesian ID card), SIM card number, passport number, etc. depending on “kind”
3nameString
4birthPlaceString
5birthDateDate
6genderString/EnumM = Male
F = Female
7bloodTypeString/EnumA
B
O
AB
8addressString
9religionString
10marriageStatusString/EnumS = Single
M = Married
V = Divorced
W = Widowed
11occupationString
12nationalityCodeStringExample :
Japan = JP
13expiryDateString
14facePhotoMedia
15cardImageMedia
16personWithCardPhotoMedia
17issuerCountryCodeStringExample :
Japan = JP
18issuerProvinceString
19issuerCityString
20issuedDateDate
21faceTopInteger
22faceLeftInteger
23faceWidthInteger
24faceHeightInteger
25statusCodeString/EnumD = Draft (user hasn’t uploaded completely)
U = User has uploaded, need verification
P = Automatically filled by AI, not yet verified
V = Verified by admin or by AI with high confidence
T = Trusted (provides external or supporting evidence)
R = Rejected
26uploadedAtDateTimeStamp when uploaded to Strapi. This is set automatically by upload, cannot be changed.
27extractedAtDateTimeStamp when extracted to AI program. This is set automatically by AI extractor, cannot be changed
28verifiedAtDateTimeStamp after verified by the admin. An ID card reviewer can modify `statusCode`, and if statusCode becomes V/T, then verifiedAt is changed automatically to current time.

ID card extractor docs : https://id-card-extractor.lovia.life/redoc

AWS S3 Storage

Files uploaded to ID Card Repository (Strapi) are stored in AWS S3 bucket media-app-staging.lovia.life (“samara” AWS account).

CORS Configuration

These files need to be downloadable by ID Card Review PWA, so bucket must have CORS configuration below (Buckets > Permissions > CORS). Reference: Using cross-origin resource sharing (CORS) | AWS S3.

[
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

How can we help?