> ## 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 Passport (Indian)

> Verify an Indian passport

# Verify Indian Passport

Upload the user's passport as a PDF or photo.

<ParamField body="file" type="string" required>
  Base64-encoded passport PDF or photo
</ParamField>

<ParamField body="fileName" type="string">
  File name (e.g., "passport.pdf")
</ParamField>

<ParamField body="deviceId" type="string">
  Device identifier
</ParamField>

## Request

```bash theme={null}
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

```json theme={null}
{
  "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

| Code                  | Description                               |
| --------------------- | ----------------------------------------- |
| `Already Verified`    | Passport already verified for this user   |
| `Verification Failed` | Could not extract or verify passport data |
| `Bad Request`         | File missing or invalid format            |
