Skip to main content
POST
/
v2
/
users
/
{userId}
/
kyc
/
passport
/
verify
Verify Passport (Indian)
curl --request POST \
  --url https://api.stablepay.global/v2/users/{userId}/kyc/passport/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": "<string>",
  "fileName": "<string>",
  "deviceId": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.stablepay.global/llms.txt

Use this file to discover all available pages before exploring further.

Verify Indian Passport

Upload the user’s passport as a PDF or photo.
file
string
required
Base64-encoded passport PDF or photo
fileName
string
File name (e.g., “passport.pdf”)
deviceId
string
Device identifier

Request

curl -X POST https://api.stablepay.global/v2/users/{userId}/kyc/passport/verify \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file": "<base64-encoded-passport>",
    "fileName": "passport.pdf"
  }'

Response

{
  "success": true,
  "data": {
    "verified": true,
    "givenName": "MUNNA BHAIYA",
    "surname": "BAGGA",
    "nationality": "INDIAN",
    "dob": "1990-08-31"
  }
}
Once verified, the user’s KYC status is automatically updated.

Errors

CodeDescription
Already VerifiedPassport already verified for this user
Verification FailedCould not extract or verify passport data
Bad RequestFile missing or invalid format