1. Home
  2. APIs
  3. Identity

Passport verification API

Validate an Indian passport file number with date of birth.

Mode: Instant
Checked against: Passport Seva records

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

  1. You send the passport file number (on the last page) and date of birth.
  2. We check Passport Seva records.
  3. You get the name, passport number and issue details.

Request

FieldDescription
file_numberPassport file number
dobDate 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"}'

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.

FieldTypeMeaning
namestringName on the passport.
passport_numberstringPassport number linked to the file.
date_of_issuestringIssue date.
application_typestringNormal or Tatkaal.
statusenumISSUED, 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.

ValueReturns
DL1061234567890Issued
DL1060000000000Not found

Run these in the playground

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.

Often used with