Skip to main content

Mexican Voter ID Back Extraction

Extracts name, surname, date of birth, sex, document number, expiry date, nationality and code from the back of a Mexican Voter ID (INE) card.

POSThttps://sandbox/pcs/MexicanVoterIdBack

Content-Type: application/json

Headers​

HeaderTypeRequiredDescription
keystringYesAPI key issued for authentication.

Request body​

FieldTypeRequiredDescription
recordIdstringYesUnique ID you assign to correlate the request with the response.
imagestringYesBase64 string / data URI of the Mexican Voter ID back image.

Example​

POST/pcs/MexicanVoterIdBack
curl --location 'https://sandbox/pcs/MexicanVoterIdBack' \
--header 'key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "recordId": "1",
  "image": "data:image/png;base64,<BASE64_STRING>"
}'
200
{
"status": "success",
"recordId": "1",
"data": {
  "name": "name-string",
  "surname": "surname-string",
  "DOB": "31/01/96",
  "sex": "Female",
  "document_no": "131116052",
  "expiry_date": "31/12/27",
  "nationality": "MEX",
  "code": ""
},
"utc_time_stamp": "29/10/2024, 07:23:03"
}

Response​

FieldTypeDescription
statusstringsuccess when data was extracted.
recordIdstringEchoes the recordId sent in the request.
data.namestringHolder's given name.
data.surnamestringHolder's surname.
data.DOBstringDate of birth.
data.sexstringHolder's sex.
data.document_nostringDocument / OCR number.
data.expiry_datestringExpiry date.
data.nationalitystringHolder's nationality, e.g. MEX.
data.codestringMRZ code line, where present.
utc_time_stampstringUTC timestamp of the response, DD/MM/YYYY, HH:mm:ss.

Error handling​

200 on success, 422 on a validation error — see Error handling for the common error shape.