StampMitraDevelopers
लाइवVerification API

Passport verify करें

Passport को real time में verify करें और पूरा application record पाएँ।

Pricing, यह कैसे काम करता है और संबंधित APIs: Passport product पेज। Markdown version: passport.md।

Endpoint

POST /v1/verify/passport

POST/v1/verify/passportScope verification.passport.readप्रति सफल call ₹9 से शुरूलाइव

Passport को validate और verify करता है। API key पर verification.passport.read scope ज़रूरी है। सफल response के बाद इसे passport.verify के रूप में metered किया जाता है - usage तभी दर्ज होता है (और priced services के लिए fulfilment wallet तभी debit होता है) जब verification सफलतापूर्वक पूरा हो जाए। नीचे दिया गया response /v1/verify/passport से लौटने वाला असली shape है, जिसमें referenceId field भी शामिल है।

Request

Request के parameters

Request के parameters
FieldTypeविवरण
Authorizationज़रूरीheaderBearer <api-key> (जैसे sandbox में sk_test_..., production में sk_live_...)। x-api-key header भी स्वीकार किया जाता है।
fileNumberज़रूरीstringPassport application file number, format PA1079341954215। यह passport number नहीं है।
dobज़रूरीstringजन्म तिथि (YYYY-MM-DD)।
namestringRecords से match करने के लिए नाम।
उदाहरण

Call करके देखें

curl -X POST "https://api-b2b.stampmitra.in/v1/verify/passport" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"fileNumber":"PA1079341954215","dob":"1998-12-31","name":"John doe"}'
Playground

Try करें

Response

Response का उदाहरण

ResponseJSON
{
  "referenceId": "SMV-20260927-4W19X6",
  "verificationId": "VRF-6N2R8D4YTH3K",
  "valid": true,
  "status": "VALID",
  "fileNumber": "PA1079341954215",
  "name": "John doe",
  "dob": "1998-12-31",
  "applicationType": "NORMAL",
  "applicationReceivedDate": "2003-12-31"
}
Response के fields
FieldTypeDescription
referenceIdstringइस call के लिए StampMitra की अपनी transaction id (SMV-YYYYMMDD-XXXXXXX)। हमेशा मौजूद, negative result में भी।
verificationIdstringइस verification की StampMitra की अपनी id (VRF- के बाद 12 base32 characters)। हर call के लिए नई बनती है और उसी call की होती है। हमेशा मौजूद। Support requests में यही बताएँ।
validbooleanPassport application file number valid है या नहीं। हमेशा मौजूद।
statusstringLookup का नतीजा: VALID या INVALID।
fileNumberstringजिस passport application file number को देखा गया। यह application का file number है, passport number नहीं।
namestringApplication में दर्ज applicant का नाम, valid होने पर।
dobstringApplicant की जन्म तिथि, ISO yyyy-mm-dd, valid होने पर।
applicationTypestringPassport application का प्रकार (जैसे NORMAL), valid होने पर।
applicationReceivedDatestringApplication प्राप्त होने की तारीख, ISO yyyy-mm-dd, valid होने पर।
Errors

Error responses

401API key missing या invalid
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
403Key valid है, पर ज़रूरी scope नहीं है
{
  "error": {
    "code": "FORBIDDEN",
    "message": "API key is valid but lacks the required scope for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
400Validation error
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "fileNumber must match the format PA1079341954215",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
402Wallet balance अपर्याप्त
{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "Insufficient fulfilment wallet balance to cover this call.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
429Rate limit पार हो गई
{
  "error": {
    "code": "TOO_MANY_REQUESTS",
    "message": "Rate limit exceeded: 60 requests per 60 seconds for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
502Upstream verification service तक पहुँच नहीं हो पाई
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Unable to reach the order/customer service right now",
    "requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
  }
}
ध्यान दें

जानने लायक बातें

नोट

Input format पहले ही validate किया जाता है - गलत format वाला pan/gstin/आदि verification के लिए भेजे जाने के बजाय तुरंत 400 के साथ fail हो जाता है। referenceId (format SMV-YYYYMMDD-XXXXXXX) इस call के लिए StampMitra की अपनी transaction id है और हमेशा मौजूद रहती है, negative (valid: false / found: false) result में भी - positive और negative दोनों determinations पूरे, billable verifications हैं। यह idempotency key नहीं है। verificationId (format VRF-XXXXXXXXXXXX) इस verification की StampMitra की अपनी id है, जो हर call के लिए बनती है; support requests में यही बताएँ। referenceId, verificationId और valid के अलावा हर field optional है और passport office के न देने पर response में नहीं आता। तारीखें ISO yyyy-mm-dd strings हैं। fileNumber application का file number है, passport number नहीं। Applicant की निजी जानकारी आपके call records में masked रहती है; response में वह पूरी दी जाती है।