CustomerDataNgDrivingLicense
Extends CustomerDataDto: the object also contains its base fields (country, documentType, firstName, lastName and the optional customerId), which are not repeated below. The fields listed here are specific to this country and document type.
The middle name(s): the given names that follow the first one. The first space or comma ends the first name ("AMINA, ZAINAB" or "AMINA ZAINAB" -> middle name "ZAINAB"), a hyphen does not ("ADA-OBI, ZAINAB" -> first name "ADA-OBI", middle name "ZAINAB"). Optional: sending all the given names together in firstName is also accepted. On the licence the given names follow the surname ("OKORO, DANIEL CHUKWU" -> middle name "CHUKWU"). Every word is fuzzy-matched individually against the OCR. Never fails the match: a middle name the document does not show is reported as not matching in the breakdown, without rejecting the document.
The licence number (L/NO) as printed, one token (e.g. "DKA12616AB03"). Spaces are stripped.
birthDate object
Printed DD-MM-YYYY; on temporary licences it may appear only on the back and with slashes (DD/MM/YYYY) β both are handled.
- MOD1
- MOD2
Unix timestamp in milliseconds
Date string, ISO 8601 recommended (e.g. 1995-04-29)
issueDate object
The issue date (ISS), printed DD-MM-YYYY
- MOD1
- MOD2
Unix timestamp in milliseconds
Date string, ISO 8601 recommended (e.g. 1995-04-29)
expirationDate object
The expiration date (EXP), printed DD-MM-YYYY
- MOD1
- MOD2
Unix timestamp in milliseconds
Date string, ISO 8601 recommended (e.g. 1995-04-29)
firstIssueDate object
DATE OF 1st ISS (differs from ISS on renewed licences).
- MOD1
- MOD2
Unix timestamp in milliseconds
Date string, ISO 8601 recommended (e.g. 1995-04-29)
The residential address as printed on the licence. Every word is fuzzy-matched individually.
The sex of the licence holder β printed short
Possible values: [F, M]
The height, canonically as printed (e.g. "1.86M"); "1.86", "1,86", "186" and "186cm" are normalized to it. Fuzzy-matched: the 0.8 threshold on the 4-char value rejects any digit difference (exact with format tolerance).
The blood group (BG), e.g. "O+" or "UNK" as printed
N of K phone number, digits only (e.g. "08172750494"). Spaces are stripped.
e.g. "D". Weak single-letter verification; included so Document Analysis extracts it.
{
"middleName": "string",
"documentNumber": "string",
"birthDate": 0,
"issueDate": 0,
"expirationDate": 0,
"firstIssueDate": 0,
"address": "string",
"sex": "F",
"height": "string",
"bloodGroup": "string",
"nextOfKinPhone": "string",
"licenceClass": "string"
}