Skip to main content

CustomerDataNgVotingCard

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.

middleNamestring

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 card the given names follow the surname ("EZE, CHIOMA GRACE" -> middle name "GRACE"). 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.

vinstring

The Voter Identification Number, e.g. "INC2200000014076811". Spaces are stripped, so the grouped print ("INC2 2000 0001 4076 811") is also accepted.

serialNumberstring

The serial number as printed on the back (e.g. "41973169"), WITHOUT the "A" prefix of the vertical front print. Spaces are stripped.

codestring

The polling unit code with dashes (e.g. "32-15-07-025"). Spaces are stripped; the dashes are meaningful and stay.

sexstring

Send "M"/"F"; the card prints the full word (GENDER MALE/FEMALE).

Possible values: [F, M]

addressstring

The residential address as printed on the card. Every word is fuzzy-matched individually.

occupationstring

As printed (e.g. "OTHER", "TRADER"); may be multi-word.

birthDate object

The date of birth, printed DD-MM-YYYY

oneOf
number

Unix timestamp in milliseconds

registrationDate object

DATE OF REG., printed month-first: "APR 13,2022".

oneOf
number

Unix timestamp in milliseconds

delimitationstring

DELIM line: state, LGA and ward (e.g. "RIVERS OBIO/AKPOR RUMUOKORO"). EXTRACTION-ONLY: deliberately not verified β€” the line is OCR-fragile (a real specimen misread IJERO as WERO), and locality is already verifiable through address and code. Present in the DTO so Document Analysis extracts it in parsed form.

batchNumberstring

BATCH. value (e.g. "A/32-15-07-025/18"). EXTRACTION-ONLY, not verified.

CustomerDataNgVotingCard
{
"middleName": "string",
"vin": "string",
"serialNumber": "string",
"code": "string",
"sex": "F",
"address": "string",
"occupation": "string",
"birthDate": 0,
"registrationDate": 0,
"delimitation": "string",
"batchNumber": "string"
}