Passport verification API
Validate an Indian passport file number with date of birth.
Overview
Checks the passport application file number and date of birth, and returns the name and issue details on record.
POST/v1/verify/passport
Where it’s used
- Travel and visa services
- Forex and remittance
- NRI account opening
How the check runs
- You send the passport file number (on the last page) and date of birth.
- We check Passport Seva records.
- You get the name, passport number and issue details.
Request
| Field | Description |
|---|---|
file_number | Passport file number |
dob | Date of birth, DD-MM-YYYY |
consent | "Y" once your user has agreed to the check. Required for any check on a person. |
curl -X POST https://api.yetlix.com/v1/verify/passport \
-H "x-client-id: $YETLIX_CLIENT_ID" \
-H "x-client-secret: $YETLIX_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"file_number":"DL1061234567890","dob":"21-11-1988","consent":"Y"}'
{
"status": "success",
"request_id": "req_7Hq2kD91",
"data": {
"name": "NEHA KAPOOR",
"passport_number": "Z1234567",
"date_of_issue": "10-01-2022",
"application_type": "Normal"
}
}
Response fields
Inside the data object. The envelope (status, request_id, billable, timestamp) is the same for every API and is described in the docs.
| Field | Type | Meaning |
|---|---|---|
name | string | Name on the passport. |
passport_number | string | Passport number linked to the file. |
date_of_issue | string | Issue date. |
application_type | string | Normal or Tatkaal. |
status | enum | ISSUED, NOT_FOUND or DOB_MISMATCH. |
Outcomes and what to do
Every check can end in a handful of ways. Decide up front what your product does in each case, so nothing falls through to a support ticket.
ISSUED
Passport found and issued.
Do this: Match name and passport number against what the user gave you.
DOB_MISMATCH
File exists, DOB doesn’t match.
Do this: Ask the user to confirm DOB.
NOT_FOUND
No such file number.
Do this: Check the file number. It is not the passport number.
Sandbox test values
Send these values in file_number with your sandbox key to get each result. Anything else returns INVALID_INPUT in sandbox.
| Value | Returns |
|---|---|
DL1061234567890 | Issued |
DL1060000000000 | Not found |
Best practices
- Users often enter the passport number instead of the file number. Show an image hint of where the file number is printed.
Compliance note. A passport is an officially valid document for KYC and is the main ID for NRI and cross-border use cases.
Frequently asked
Does this work for foreign passports?
No. It covers passports issued by the Government of India.