# Mexico

# Instituto Nacional Electoral (INE)

In Mexico, the INE plays a significant role in identity verification by providing biometric verification services, particularly using facial recognition technologies. INE manages a comprehensive database that includes biometric data such as facial images, which are used to verify the identity of individuals. Incode provides direct connection to INE for face and data verification.

> 📘 Verification type: Data and Face

| Verification Type | Supported Document Types        | Data that can be verified                                                                                                                            |
| :---------------- | :------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------- |
| Data and Face     | INE Card (Voter Identification) | Name, Date of birth, Personal ID (curp), Document number (ocr, cic), Electors key (clave de elector), Emission number, Issue Date, Registration Date |

<br />

> 📘 Verification type: Data only

| Verification Type | Supported Document Types       | Data that can be verified                                                                                   |
| :---------------- | :----------------------------- | :---------------------------------------------------------------------------------------------------------- |
| Data              | INE Card (Voter Identification | Issue Date, Registration Date, Document number (ocr, cic), Electors key (clave de elector), Emission number |

<br />

# Standalone API

## Request Body

`POST` `/omni/process/government-validation?countryCode=MEX`

```json
{
    "claveElector": "ABCDEF12345678",
    "curp": "ABCD123456HDFABC01",
    "nombre": "JUANTEST",
    "apellidoPaterno": "GARCIATEST",
    "apellidoMaterno": "LOPEZTEST",
    "anioEmision": "2020",
    "ocr": "1234567890123",
    "cic": "123456789",
    "numeroEmisionCredencial": "01",
    "anioRegistro": "2015",
    "base64Image": {{selfie}}
}
```

## Response Body

```json
{
   "valid":true,
   "statusCode":0,
   "governmentValidation":{
      "recognitionConfidence":{
         "value":"91.1",
         "status":"OK"
      },
      "validationStatus":{
         "value":"0",
         "status":"OK",
         "key":"ok"
      },
      "ocrValidation":[
         {
            "value":"true",
            "status":"OK",
            "key":"firstName"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"maternalLastName"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"paternalLastName"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"personalId"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"electorsKey"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"issueDate"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"ocr"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"emissionNumber"
         },
         {
            "value":"true",
            "status":"OK",
            "key":"registrationDate"
         }
      ],
      "ocrValidationOverall":{
         "value":"100.0",
         "status":"OK"
      },
      "overall":{
         "value":"91.1",
         "status":"OK"
      }
   }
}
```
