Skip to main content

CustomerDataNgDigitalIdCard

documentNumberstring

The Digital ID number: the letter M followed by digits (e.g. "M0067910"). Spaces are stripped, so the grouped print ("M0 067 910") is also accepted. OCR often confuses the 0 after M with the letter O, so it is fuzzy-matched (one-character tolerance). Included so Document Analysis extracts it in parsed form.

ninstring

The 11-digit National Identification Number (NIN), e.g. "12345678901". Spaces are stripped, so the grouped print is also accepted. Printed in red on the BACK of the card; NOT encoded in the MRZ.

sexstring

The sex of the document holder β€” printed short on the front

Possible values: [F, M]

nationalitystring

Nationality of the document holder (ISO-3 "NGA" as printed).

birthDateobject

Verified STRICTLY against the MRZ (YYMMDD). Genuine cards with a face/MRZ mismatch exist; they fail automated verification by design and are resolved at manual review.

expirationDateobject

Not printed on the card; exists only in the MRZ.

CustomerDataNgDigitalIdCard
{
"documentNumber": "string",
"nin": "string",
"sex": "F",
"nationality": "string",
"birthDate": {},
"expirationDate": {}
}