A passport verification API in India does not always do what the name suggests, so start with the identifier. StampMitra's Passport endpoint takes the passport application file number, not the number printed inside the passport booklet, together with the applicant's date of birth and, optionally, a name. You send POST /v1/verify/passport with fileNumber, dob and optionally name, using a key that carries the verification.passport.read scope. The response returns a valid flag, the name and dob on the record, the applicationType (the sample shows NORMAL), the applicationReceivedDate, the fileNumber echoed back, a status, and a referenceId and verificationId.
That is a narrower result than many teams expect, and a lot of integration mistakes come from the gap between the expectation and the contract. This page is about closing that gap. It covers what a file number is and where an applicant finds it, what the response can and cannot support, which workflows it suits (forex and remittance onboarding, travel and visa agencies, overseas education and recruitment), how to handle names that are written differently on different documents, the access controls this premium endpoint needs, what a call costs, and how to run it with a privacy posture that matches how sensitive passport data is.
Everything about the contract is taken from the Passport entry in StampMitra's API reference; where that entry says nothing, so does this page. Treat it as general information, not legal advice.
Key takeaways
- The call:
POST https://api-b2b.stampmitra.in/v1/verify/passportwithfileNumberanddob, both required, and an optionalname. The key needsverification.passport.read. - The input is the passport application file number, not the passport booklet number. The sample is
PA1079341954215. - The response guarantees
referenceId,verificationIdandvalid. When the passport office provides them it also carriesstatus,fileNumber,name,dob,applicationTypeandapplicationReceivedDate. It has no passport number, issue or expiry date, or validity status. - Passport sits in the premium price band, ₹9 per completed call on pay-as-you-go, excluding GST. Sandbox is free and never debits the wallet.
- Access is restricted to IP-allowlisted keys, as with Driving Licence. Whether your plan offers an allowlist decides if you can launch at all.
- Passport details are among the most sensitive data you will ever hold. Ask for little, keep it out of logs, and retain the decision and
referenceIdinstead. - Bad input is rejected with
400at no charge. A "not found" answer is billed like any other completed check. - Use it where an application-file check answers a real question. Where you need to read a passport's number or expiry, plan a different step.
The identifier question: file number or passport number
An Indian passport carries a passport number in the booklet. A person who applies for a passport, or for a reissue, is given an application file number, which appears on the acknowledgement or receipt generated at the time of the application. They are different identifiers. A passport booklet number is typically a letter followed by seven digits. The file number in StampMitra's sample, PA1079341954215, is two letters followed by thirteen digits, fifteen characters in all.
Why this matters in practice. If your form says "passport number" and the user types the booklet number, the call will fail validation, and you will have trained users to blame your product. Label the field precisely, show a short hint ("the 15-character file number on your passport application receipt") and, if you can, an image of where it appears. The validation message the endpoint returns reads "fileNumber must match the format PA1079341954215", which tells you the shape it expects.
A related consequence: the people who can supply a file number are those who applied for a passport and kept the receipt, which is not the same population as everyone who holds a passport. For some customers, especially those whose passport is years old, the file number may be hard to find. Your flow needs a fallback document.
The leading letters of a file number typically relate to the issuing office, but the reference does not document this, so do not build logic on it. Treat the number as opaque, normalise it and let the API validate.
export function normaliseFileNumber(raw) {
return String(raw).toUpperCase().replace(/[\s\-.]/g, "");
}What the lookup returns
The reference documents this request and response.
Request parameters
| Field | Type | Description |
|---|---|---|
Authorizationrequired | header | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
fileNumberrequired | string | Passport application file number, format PA1079341954215. Not the passport number. |
dobrequired | string | Date of birth (YYYY-MM-DD). |
name | string | Name to match against records. |
Response fields
| Field | Type | Description |
|---|---|---|
referenceId | string | StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. |
verificationId | string | StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests. |
valid | boolean | Whether the passport application file number is valid. Always present. |
status | string | Outcome of the lookup: VALID or INVALID. |
fileNumber | string | The passport application file number that was looked up. This is the application file number, not the passport number. |
name | string | The applicant's name as held on the application, when valid. |
dob | string | The applicant's date of birth, ISO yyyy-mm-dd, when valid. |
applicationType | string | The type of passport application (for example NORMAL), when valid. |
applicationReceivedDate | string | Date the application was received, ISO yyyy-mm-dd, when valid. |
valid says whether the file number and date of birth together resolved to a record. A false result can mean a mistyped number, a wrong date of birth, or no such file; the response does not distinguish them.
name is the applicant's name on the record. In the sample it is a single string (John doe, exactly as the record holds it), so you do not get separate given-name and surname fields, and you should not rely on its letter case.
dob is the date of birth on the record, as an ISO date. Compare it with the value you sent.
applicationType describes the kind of application. The sample shows NORMAL. The reference documents only that example, so do not assume the full list of values, and handle unfamiliar values by reviewing the case.
applicationReceivedDate is the date the application was received, as an ISO date. It is the date of the application, not an issue or expiry date of any passport. fileNumber echoes the application file number the lookup was for, and status is VALID or INVALID and agrees with valid; branch on valid. verificationId (format VRF- plus 12 characters) is StampMitra's own id for this verification, generated for every call; quote it in support requests.
referenceId is StampMitra's transaction identifier, SMV-YYYYMMDD-XXXXXXX, present on every completed call including a negative one, and not an idempotency key.
What it cannot support
A lot of the value of this page is in being specific about limits.
It does not return the passport number. If you need the booklet number for a record, a visa application or a regulatory form, this endpoint will not supply it.
It has no issue date, expiry date or validity status. The documented response says nothing about whether a passport has been issued, when, or until when it is valid. If the thing you need to know is "is this passport valid for six more months", the endpoint cannot answer it.
It does not return a photograph, address or nationality statement. None is documented.
It does not prove the person presenting the details is the applicant. Someone with another person's file number and date of birth can submit them. If you need to bind the details to a person, add a selfie and liveness step or an in-person check.
It does not carry a match score. name is an optional input documented as a name to match, but the documented response has no match result. You compare the returned name yourself.
Because of this, the endpoint is best described accurately as an application-record check. It confirms that a passport application exists with this file number and date of birth, and what name, application type and received date are on it.
Choosing the right check
| You need to know | Use | Note |
|---|---|---|
| A passport application exists for this person with this name and date of birth | This endpoint | Application-record check |
| The booklet number, expiry or validity | A step outside this API | Not in the documented response |
| A tax identity and registered name | PAN verification | Often required alongside |
| A licence to drive | Driving Licence verification | Also needs an IP-allowlisted key |
| A voter record | Voter ID verification | No photo in the response either |
| A payable bank account | Bank account verification | Confirms the holder name |
If your regulator or partner requires passport details that this endpoint does not return, do not describe the check to them as passport verification in the broad sense. Describe what it does.
Names across documents
Passport names are a recurring source of false mismatches. The passport may hold a given name and surname as separate fields, while the record here is one string. People who changed their name after marriage or by gazette notification may carry different names on different documents. Many have a single name, or use initials for one part. Some documents spell the same name differently because of transliteration.
A useful matching approach is to normalise to upper case, strip punctuation and honorifics, split into tokens and compare token sets, allowing an initial to match a full token, and to ignore token order.
const STOP = new Set(["MR", "MRS", "MS", "DR", "SHRI", "SMT", "KUMARI"]);
export function tokens(raw) {
return String(raw).toUpperCase().replace(/[^A-Z\s]/g, " ").split(/\s+/).filter((t) => t && !STOP.has(t));
}
export function overlap(a, b) {
const A = tokens(a), B = tokens(b);
if (!A.length || !B.length) return 0;
const same = (x, y) => x === y || (x.length === 1 && y.startsWith(x)) || (y.length === 1 && x.startsWith(y));
return A.filter((x) => B.some((y) => same(x, y))).length / Math.max(A.length, B.length);
}Three bands work well. A high overlap passes. A middle band goes to a person with both names on screen. A low overlap is rejected with a request to supply a document that shows the name change. Choose the thresholds from real applicants, not from sandbox, whose names are synthetic, and write them down with a date.
Why the date of birth is in the request
Passport is one of two verification calls that ask for a date of birth as well as an identifier. In effect the date is a second half of the lookup key, which makes it harder to probe the service with guessed file numbers. For you, that has a few knock-on effects.
A valid: false answer is ambiguous. The file number might be wrong, or the date, or the application might not exist. Your error copy has to cover all three without pretending to know which one it is. Collect the date with a picker that produces YYYY-MM-DD, since a swapped day and month is a classic cause of false negatives. And remember that a date of birth you collect for this call is personal data from the first keystroke, so it should not land in logs or in a table that outlives the decision.
export function isIsoDate(s) {
return /^\d{4}-\d{2}-\d{2}$/.test(s) && !Number.isNaN(Date.parse(s));
}Billing and failure behaviour
What does a call cost? Passport is metered as passport.verify and sits in the premium band alongside Vehicle RC: ₹9 per completed call on pay-as-you-go, less on larger plans, before 18% GST. Your plan's figure is on the pricing page. The wallet is debited the moment a production verification finishes.
Is a "not found" answer free? No. If the lookup completes and the file number and date of birth match nothing, you received a determination: it is logged, charged, and carries a referenceId.
What is never charged? Anything that fails before verification starts: a malformed input (400), an unusable key (401), or a missing scope or non-allowlisted key (403).
What about the other failures? A low wallet answers 402, and the remedy is a top-up. Exceeding the limit answers 429; the documented example reads "Rate limit exceeded: 60 requests per 60 seconds for this endpoint." An unreachable upstream answers 502, and since nothing completed, nothing is billed for it. After a timeout you cannot tell whether the charge happened, because the route has no idempotency header and the referenceId is not one.
| Status | Code | Meaning | Your action |
|---|---|---|---|
| 400 | BAD_REQUEST | fileNumber or dob malformed | Show the message, ask for correction |
| 401 | UNAUTHORIZED | Missing or invalid key | Fix deployment |
| 402 | PAYMENT_REQUIRED | Wallet balance insufficient | Top up, alert operations |
| 403 | FORBIDDEN | Missing scope or key not IP-allowlisted | Fix key, scope or allowlist |
| 429 | TOO_MANY_REQUESTS | Rate limit or sandbox limit (SANDBOX_RATE_LIMIT, SANDBOX_DAILY_LIMIT or SANDBOX_IP_LIMIT) | Back off with jitter |
| 502 | INTERNAL_ERROR | Upstream unreachable | Retry with backoff |
Every error arrives in one envelope, { "error": { "code", "message", "requestId" } }.
400Validation errorBAD_REQUESTfileNumber must match the format PA1079341954215
401Missing or invalid API keyUNAUTHORIZEDMissing or invalid API key.
402Insufficient wallet balancePAYMENT_REQUIREDInsufficient fulfilment wallet balance to cover this call.
403Valid key, missing required scopeFORBIDDENAPI key is valid but lacks the required scope for this endpoint.
429Rate limitedTOO_MANY_REQUESTSRate limit exceeded: 60 requests per 60 seconds for this endpoint.
502Upstream verification service unreachableINTERNAL_ERRORUnable to reach the order/customer service right now
Failure causes and the words to use with applicants
valid: false. Most often a mistyped file number, a booklet number entered by mistake, or a wrong date of birth. Say: "We could not find an application with these details. Please check the file number on your application receipt and your date of birth."- A valid result with a different name. Show the name on record and let the applicant confirm. Common causes are name changes, initials and transliteration.
- An unfamiliar
applicationType. Treat as a review case, not a failure. 403. Your configuration. Tell the applicant the check is temporarily unavailable.429and502. Transient. Ask the applicant to wait a moment or resume later.
Workflows where an application-record check helps
Forex card and remittance onboarding. A provider that needs to link an applicant to a government identity document may accept the passport file details as one supporting check. The provider still needs the passport booklet details for its own regulatory records, which it collects through its normal document process.
Travel and visa agencies. An agency can confirm that a customer's application exists with the right name and date of birth before it books anything dependent on that, and flag a mismatch early. Passport validity for travel is checked from the document itself.
Overseas education and recruitment. Consultancies collect many applicants' details. A quick consistency check between the name and date of birth the applicant typed and the record reduces data-entry errors before forms go to a university or employer.
Employer deployment. Companies sending staff abroad can validate that the file details the employee provided are consistent, as one input to a larger pre-departure checklist.
In each case the check supports a data-quality and consistency decision, which is a legitimate and useful job. It is not a substitute for reading the passport.
Combining with PAN and bank account checks
For financial onboarding, a three-way consistency check is the pattern that works best. Verify the PAN and take the registered name; run the passport application check and compare the name and date of birth; then verify the payout or settlement bank account using the PAN name. If the names agree across all three, you have independent records that corroborate each other. Order the checks by cost and stop at the first hard failure: the PAN check is a standard-rate call, the bank account check has its own rate and the passport check is premium, so a failed PAN should end the journey before a premium call is spent. See PAN verification and bank account verification.
Integration walkthrough
cURL
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/passport" \
-H "Authorization: Bearer $STAMPMITRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileNumber":"PA1079341954215","dob":"1990-01-01","name":"Rahul Kumar"}'Node.js
The Node.js SDK and Python SDK wrap this endpoint. The raw calls show what they do. Run it from the backend whose address is on the allowlist.
// Node 18+ (built-in fetch)
const BASE = "https://api-b2b.stampmitra.in";
export async function verifyPassportFile({ fileNumber, dob, name }, { timeoutMs = 20000 } = {}) {
if (!isIsoDate(dob)) return { kind: "invalid_input", message: "Date of birth must be YYYY-MM-DD." };
const res = await fetch(`${BASE}/v1/verify/passport`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.STAMPMITRA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ fileNumber: normaliseFileNumber(fileNumber), dob, ...(name ? { name } : {}) }),
signal: AbortSignal.timeout(timeoutMs),
});
const body = await res.json().catch(() => ({}));
if (res.ok) return { kind: "completed", result: body };
const { code, message, requestId } = body.error ?? {};
const retryable = res.status === 429 || res.status === 502;
return { kind: retryable ? "retry" : "failed", status: res.status, code, message, requestId };
}Python
import os, re, requests
BASE = "https://api-b2b.stampmitra.in"
def verify_passport_file(file_number: str, dob: str, name: str | None = None, timeout: int = 20) -> dict:
if not re.fullmatch(r"\d{4}-\d{2}-\d{2}", dob):
return {"kind": "invalid_input", "message": "Date of birth must be YYYY-MM-DD."}
payload = {"fileNumber": re.sub(r"[\s\-.]", "", file_number.upper()), "dob": dob}
if name:
payload["name"] = name
resp = requests.post(
f"{BASE}/v1/verify/passport",
headers={"Authorization": f"Bearer {os.environ['STAMPMITRA_API_KEY']}"},
json=payload,
timeout=timeout,
)
body = resp.json() if resp.content else {}
if resp.ok:
return {"kind": "completed", "result": body}
err = body.get("error", {})
return {
"kind": "retry" if resp.status_code in (429, 502) else "failed",
"status": resp.status_code,
"code": err.get("code"),
"message": err.get("message"),
"requestId": err.get("requestId"),
}Turning the result into an outcome
const KNOWN_TYPES = new Set(["NORMAL"]); // extend only after your team decides
export function assessPassportFile(result, applicant, { minOverlap = 0.85 } = {}) {
if (result.valid !== true) return { outcome: "reject", reason: "not_found", referenceId: result.referenceId };
const reasons = [];
if (overlap(applicant.name, result.name) < minOverlap) reasons.push("name_unclear");
if (applicant.dob !== result.dob) reasons.push("dob_differs");
if (!KNOWN_TYPES.has(result.applicationType)) reasons.push("application_type_unfamiliar");
return { outcome: reasons.length ? "review" : "approve", reasons, referenceId: result.referenceId };
}Edge cases and odd inputs
- Booklet number in the file number field. The commonest user error. Fix it with a clear label and hint.
- Spaces, hyphens and lower case. Normalise.
- Day and month swapped. Use a date picker.
- Name changes. Ask for a supporting document and keep a review path.
- Single-name applicants. Some people have one name. Expect a short
nameand avoid rules that demand a surname. - Reissues and renewals. An applicant may have several file numbers over the years. The one on the latest receipt is not necessarily the one they remember.
- Minors. Applications for minors are made by guardians, and the record belongs to the minor. Treat such cases with extra care and your own rules.
- Lost receipts. Offer a fallback document rather than leaving the applicant stuck.
- Unfamiliar
applicationType. Review rather than reject. - Duplicate submissions. De-duplicate on a hash of the normalised file number and date of birth in a short window to avoid paying for a premium call twice.
Audit logging and monitoring
Decide up front what a log line may contain. A line that reads "applicant 8841, outcome review, reason name_unclear, referenceId SMV-..., status 200" is useful to an investigator and harmless if it leaks. A line that contains the file number, the date of birth and the returned name is a liability. Keep the first kind, and when you must tie a line to a file number for debugging, store a keyed hash of it.
StampMitra keeps request logs you can pull through GET /v1/logs or read in the dashboard; how long they are kept depends on the plan, reaching 365 days on Scale. Your own decision records are separate, and how long to keep them is a question for your audit and legal teams.
Four signals are worth a dashboard. Any 403 should page someone. A rising share of valid: false usually means the form is confusing applicants between the file number and the booklet number. The review share tells you whether your name thresholds fit real applicants. And spend per day matters more here than on cheaper endpoints because each call is premium-rate.
Modelling the cost
Because each call is premium-rate, the saving is in not making unnecessary calls.
export function monthlyPassportCost({ applicants, retryShare = 0.2, pricePerCall }) {
const calls = applicants * (1 + retryShare);
return { calls: Math.ceil(calls), cost: Math.ceil(calls) * pricePerCall };
}Suppose a forex provider has 1,200 applicants a month who choose the passport route and 20 percent need a second attempt, mostly through the booklet-versus-file-number confusion. That is 1,440 calls. A clear field label, a hint with an image and a confirm-the-number screen can reasonably be expected to cut retries sharply, and each retry avoided is a premium-rate call you do not pay for. Multiply by your plan's passport rate and add 18% GST on the top-up. Also run the cheaper checks first: if PAN fails on a journey, never spend the premium call.
Sandbox and production
Start with sk_test_ from sign-up. It never touches the wallet, and what it returns is sample data: no magic values are published for Passport, a given input always produces the same answer, about two in three come back valid, and every name is invented. That is enough to build and test the form, the normalisation, the error paths and each screen, ideally with a handful of saved responses so unit tests stay offline. It tells you nothing about how your name thresholds will behave on real applicants, and its limits are not production limits.
Production needs an sk_live_ key, which exists only after your organisation's KYC and a Passport production application are approved. The server reads the environment from the key, so the request you tested is the request you ship; the quickstart walks through a first call. Treat the allowlist rehearsal described above as part of go-live, because a passing sandbox says nothing about production access.
Privacy and consent, in general terms
A passport record is about as sensitive as identity data gets, and a name with a date of birth narrows down a person very closely. The Digital Personal Data Protection Act, 2023 and the rules under it are the starting point in India, and your counsel should tell you how they apply to you, including to any transfer of data abroad. These are common practices, not legal advice.
- Tell people why you are asking before you ask, and what you will keep.
- If another document answers your question, prefer that document.
- Retain the outcome, reason codes,
referenceIdand timestamp. Keep the file number or date of birth only where a rule or a genuine need demands it. - A file-number lookup does not need a scan of the passport, so do not ask for one.
- Give case access to the reviewers who need it and record who opened which case.
- Put a retention period on everything you keep and enforce it.
- Provide a way for people to see or correct what you hold.
- Settle processor terms with StampMitra in the way your counsel advises.
Writing the applicant-facing copy
Most failures on this endpoint are made in the form, not in the API, so the words on the screen are part of the integration. A few patterns hold up well.
Name the field exactly. "Passport application file number" with the helper "15 characters, on the receipt from your passport application. This is not the number inside the passport." removes the largest single source of failed calls.
Show where to find it. A small image of an application receipt with the file number highlighted does more than a paragraph. If you cannot show a real receipt, a simple mock-up is fine, as long as it is clearly an illustration.
Confirm before you submit. After the applicant types the number and picks the date, repeat both back in a large, clear typeface and ask them to confirm. Each retry you avoid is a premium-rate call you do not pay for.
Make the failure message actionable and neutral. "We could not find an application with these details. Please check the file number and your date of birth, or choose another document." It does not accuse, and it does not claim to know which input is wrong.
Offer an exit. An applicant who cannot find the receipt should not be stuck. Offer another document, or a way to continue later. A verification step that dead-ends loses applicants for reasons that have nothing to do with risk.
Explain why you ask. One sentence, shown before the field: that you check the details against the passport application record, and what you keep. It reduces drop-off and it supports your consent record.
Caching and re-verification
A passport application record does not change frequently, but your decisions are tied to time. Store the outcome, the referenceId and the timestamp against the applicant, and reuse a recent completed result for the same applicant within a window you choose, for example the length of one onboarding journey, instead of calling again when they return to the form. Do not reuse a result across different applicants, and do not treat an old result as fresh for a later, different purpose. If an applicant changes the file number, date of birth or name after a successful check, start again, because the earlier result no longer describes what they now claim.
Because the call is premium-rate, put the cache key on a hash of the normalised file number and date of birth, store it only as long as the journey needs, and clear it when the journey ends. That gives you most of the saving without keeping personal data longer than necessary.
Production checklist
- The key has only
verification.passport.read, is stored in a secrets manager and is IP-allowlisted. - Your plan includes an IP allowlist, and the allowlist has been tested end to end.
- The form labels the field as the application file number and explains the difference.
- Date of birth uses a date picker producing
YYYY-MM-DD. - Cheaper checks run before this premium call.
- Names are compared with token matching and thresholds taken from real data.
- Unfamiliar
applicationTypevalues go to review. - Retries happen only on
429and502. - Any
403raises an alarm. - Logs hold reference IDs and outcomes, not personal fields.
- The fallback for applicants without a file number is defined.
- Notice and retention cover the data.
Common mistakes
- Calling it "passport verification" to partners. It is an application-record check.
- Asking for the "passport number". Users type the booklet number and the call fails.
- Expecting expiry or validity. Not in the response.
- Expecting a match score. Compare names yourself.
- Telling the applicant which field is wrong. You do not know.
- Running this before PAN. Spend the premium call last.
- Calling from the browser. The key is exposed and the call is off the allowlist.
- Logging the response. It puts names and dates of birth in logs.
- Launching without testing the allowlist. A
403on launch day is avoidable. - Collecting passport scans you do not need. Minimise.
What to read next
Pair this with PAN verification, bank account verification, Driving Licence verification and Voter ID verification. Sandbox vs production API keys explains key handling and IP allowlisting, API errors and handling covers retries, and the full reference is in the Passport API docs.
Sources
- Passport API reference, StampMitra product data: request fields, response example, scope and validation message, checked October 2026.
- Pricing, StampMitra: premium per-call rate, plan features including the IP allowlist, and log retention, checked October 2026. Rates exclude 18% GST.
- Ministry of External Affairs and the Passport Seva portal, for how passport applications and file numbers work. Check the current guidance on the official site.
- Digital Personal Data Protection Act, 2023, Government of India. Read the current Act and the rules made under it on the official government sites.
Sandbox test values
Send one of these values as fileNumber with a sandbox key (sk_test_...) to get that outcome. They are fake, valid in format, and never reach a real source or your wallet. Send with it: dob: 1990-01-01, name: Rahul Kumar. Add the header X-Sandbox-Delay-Ms (up to 3000) to hold the reply and test your client timeout.
| Scenario | Input to send | What you get back |
|---|---|---|
| Valid passport file | SB0000000000001 | 200 |
| File number not found | SB0000000000002 | 200 |
| Verification source times out | SB0000000000005 | 502INTERNAL_ERROR |
| Verification source unavailable | SB0000000000006 | 502INTERNAL_ERROR |
| Rate limited | SB0000000000007 | 429TOO_MANY_REQUESTS |
| Wallet balance too low | SB0000000000008 | 402PAYMENT_REQUIRED |
| Invalid format | SB000000000000 | 400BAD_REQUEST |
Frequently asked questions
What does the passport verification API check?
It checks a passport application file number together with a date of birth and returns valid, status, the file number, name, dob, applicationType, the application received date, a referenceId and a verificationId. It is an application-record check. It does not return the passport booklet number, issue or expiry dates or a validity status, so it cannot tell you whether a passport is valid for travel.
Is the input the passport number or the file number?
The file number, not the number inside the booklet. The sample is PA1079341954215, two letters and thirteen digits, taken from the application receipt. A booklet number is a different identifier, so label your form field precisely or users will type the wrong number and the call will fail validation.
Does the response include a name match score?
No. You can send an optional name, documented as the name to match against records, but the documented response has no match result and returns the name as one string. Compare it with your applicant's name yourself using token matching that tolerates initials, name changes and transliteration.
Does this endpoint need an IP-allowlisted key?
Yes. StampMitra's SDK documentation describes Passport and Driving Licence as needing an IP-allowlisted key, and the server's message is passed through otherwise. An IP allowlist is a plan feature on the pricing page, so confirm your plan includes one and test the allowlist before go-live.
Why is a date of birth required?
The date of birth acts as a second key for the lookup. The consequence is that a valid false result can mean a wrong file number or a wrong date, so ask the applicant to re-check both, collect the date with a picker producing YYYY-MM-DD and avoid telling them which input is wrong.
When am I billed for a passport check?
Usage is recorded and the production wallet debited when the verification completes, at the premium rate. A negative result is still a completed, billed determination. A malformed input, bad key or missing scope or allowlist returns 400, 401 or 403 and is not billed, and sandbox calls never debit your wallet.
Which workflows suit an application-record check?
Forex card and remittance onboarding, travel and visa agencies, overseas education and recruitment consultancies and employer pre-departure checks. In each it supports a consistency and data-quality decision. Where you need the booklet number or expiry, collect them through your document process because this endpoint does not return them.
How should I handle name differences across documents?
Normalise to upper case, remove punctuation and honorifics, compare token sets with initials allowed and ignore order. Pass a high overlap, send a middle band to a person with both names on screen, and ask for a document showing a name change when the overlap is low. Set thresholds from real applicants, not sandbox.
Can I test passport verification for free?
Yes. A sandbox key starting with sk_test_ never debits your wallet and returns sample data with synthetic names, so the same input always gives the same answer. Use it for the form, normalisation, error handling and screens, and test the production IP allowlist path separately before launch.
What personal data should I store after the check?
Usually the outcome, reason codes, referenceId and timestamp. Avoid keeping the file number or date of birth unless a rule or genuine need requires it, do not collect passport scans you do not need, keep personal fields out of logs, set a retention period and explain what you keep in your notice.
How do I avoid paying for unnecessary premium calls?
Run cheaper checks such as PAN first and stop at the first hard failure, label the file number field clearly, show the typed values back for confirmation, de-duplicate on a hash of the normalised file number and date of birth, and reuse a recent completed result within one onboarding journey.
What does a 403 on this endpoint mean?
Usually a missing verification.passport.read scope or a key that is not IP-allowlisted, both configuration problems. It is not retryable, so raise an alert, check the key, scope and allowlist, and tell the applicant the check is temporarily unavailable instead of suggesting they entered something wrong.