Skip to main content
POST
/
v3
/
database-validation
/
curl -X POST "https://verification.didit.me/v3/database-validation/" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "issuing_state=MEX" \
  -F "services=mex_ine_vigencia" \
  -F "vendor_data=user-1234"
{
  "request_id": "req_01H…",
  "status": "Approved",
  "issuing_state": "MEX",
  "match_type": "full_match",
  "validations": [
    {
      "outcome_code": "MATCH",
      "service_id": "mex_ine_vigencia",
      "service_name": "Mexico - INE credential validity verification",
      "source_data": {
        "emission_number": "SAMPLE-12345",
        "emission_year": "sample_value",
        "expiration_date": "1990-01-01",
        "federal_district": "sample_value",
        "identification_number": "SAMPLE-ID-12345",
        "message": "sample_value",
        "message_code": "sample_value",
        "ocr": "sample_value",
        "registration_year": "sample_value",
        "validation_code": "SAMPLE-12345",
        "voter_number": "SAMPLE-12345"
      },
      "validation": {
        "identification_number": "full_match"
      }
    }
  ]
}
Verifies a Mexican INE / IFE voter ID credential against the INE registry (modelo, vigencia, válida-como-identificación, derecho-a-votar). Didit exposes this service through POST /v3/database-validation/ so you can verify the submitted data against the authoritative source and receive normalized match results.

Coverage

  • Coverage:
  • Country: Mexico
  • Service ID: mex_ine_vigencia
  • Data domain: Identity
  • Category: NationalIDRegistry

Inputs

FieldRequiredExample
cicNo123456789
identificador_ciudadanoNo123456789
ocrNo1234567890123
voter_numberNoABCDEF123456
emission_numberNo01
first_nameNoJohn
last_nameNoDoe
date_of_birthNo1990-01-01
vendor_dataNouser-1234
  • Required inputs:
  • Optional inputs: cic, identificador_ciudadano, ocr, voter_number, emission_number, first_name, last_name, date_of_birth, vendor_data
  • Consent: Not required
  • Workflow availability: Available in workflow
  • Coverage:
  • Price: $0.20 per successful query

Body parameters

issuing_state
string
default:"MEX"
required
ISO 3166-1 alpha-3 country code for this database service.Example: MEX
services
string
default:"mex_ine_vigencia"
required
Array containing this service ID. Pinning the service keeps the request scoped to this exact database.Example: mex_ine_vigencia
cic
string
default:"123456789"
cic value required by this database service.Example: 123456789
identificador_ciudadano
string
default:"123456789"
identificador_ciudadano value required by this database service.Example: 123456789
ocr
string
default:"1234567890123"
ocr value required by this database service.Example: 1234567890123
voter_number
string
default:"ABCDEF123456"
voter_number value required by this database service.Example: ABCDEF123456
emission_number
string
default:"01"
emission_number value required by this database service.Example: 01
first_name
string
default:"John"
Given name to validate.Example: John
last_name
string
default:"Doe"
Family name to validate.Example: Doe
date_of_birth
string
default:"1990-01-01"
Date of birth in YYYY-MM-DD format.Example: 1990-01-01
vendor_data
string
default:"user-1234"
Your stable user reference for this person, such as your internal user ID. Didit uses it to link standalone checks to the same end user and reduce duplicate-detection noise.Example: user-1234

Input rules & validation notes

  • Send the fields listed above exactly as captured from the user or document.
  • Didit validates required fields before calling the database. Requests rejected before source lookup are not charged.

How to call it

curl -X POST "https://verification.didit.me/v3/database-validation/" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "issuing_state=MEX" \
  -F "services=mex_ine_vigencia" \
  -F "vendor_data=user-1234"
Every successful call returns HTTP 200. The outcome_code field tells you what actually happened — distinguishing, for example, a real biometric mismatch (BIOMETRIC_NO_MATCH) from a selfie that could not be read (BIOMETRIC_IMAGE_UNUSABLE). The status shown is the default feature status; your configured Partial Match / No Match actions can override it.

Returned data

The exact fields surfaced in source_data depend on what the registry returns. The generated example for mex_ine_vigencia currently documents this normalized shape:
  • emission_number
  • emission_year
  • expiration_date
  • federal_district
  • identification_number
  • message
  • message_code
  • ocr
  • registration_year
  • validation_code
  • voter_number

Pricing & SLAs

Mexico - INE credential validity verification queries are billed only when Didit receives a conclusive result from the validation source.
  • Per-call price: $0.20 USD.
  • Billing: per successful query. You are not charged when the registry is unreachable, when required fields are missing, or when the request is rejected before reaching the source.
  • Latency: typical p95 < 2 s.
  • Availability: 99.9% per quarter on Didit’s side; downstream source availability varies by country and dataset.

Continue reading