> ## Documentation Index
> Fetch the complete documentation index at: https://idto.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PAN overview

> Verify a PAN, pull the record behind it, or read a PAN card image.

PAN is the starting point of most Indian KYC flows. idto gives you several ways to work with it, from a quick existence check to a full record lookup, plus OCR to prefill the number from a photo of the card.

<video controls src="https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/video/flow-pan.mp4" poster="https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/video/flow-pan.jpg" />

The recording shows the PAN step in the idto web SDK, using sample data.

## Which endpoint to use

| You want to | Endpoint | Version |
| - | - | - |
| Confirm a PAN exists and is active, get the name and holder category | [`POST /v2/verify/pan_validation`](https://idto.mintlify.site/api-reference/pan/pan-validation) | v2 |
| Check that the name and date of birth you hold match a PAN | [`POST /v2/verify/pan_lite`](https://idto.mintlify.site/api-reference/pan/pan-lite) | v2 |
| Get the full record: address, masked Aadhaar, masked contacts, gender, DOB, bank accounts | [`POST /v2/verify/pan_detailed`](https://idto.mintlify.site/api-reference/pan/pan-detailed) | v2 |
| Read the PAN number, name, father's name and DOB from a card image | [`POST /v2/verify/pan_ocr`](https://idto.mintlify.site/api-reference/pan/pan-ocr) | v2 |
| Find the PAN linked to a mobile number | [`POST /v2/verify/mobile_to_pan`](https://idto.mintlify.site/api-reference/mobile/mobile-to-pan) | v2 |
| Find the PAN linked to an Aadhaar number | [`POST /verify/aadhar_to_pan`](https://idto.mintlify.site/api-reference/pan/aadhar-to-pan) | v1 |

A common pattern is OCR first to prefill, then validation on the number the user confirms.

## How a v2 PAN check works

```mermaid theme={null}
sequenceDiagram
    participant U as End user
    participant S as Your server
    participant I as idto
    participant R as PAN source
    U->>S: PAN and consent
    S->>I: POST /v2/verify/pan_validation (X-Client-ID, X-API-Key, Idempotency-Key)
    I->>I: Check format and consent
    alt Invalid input
        I-->>S: 400 IDTO_001 or IDTO_005, billed false
    else Valid input
        I->>R: Look up PAN
        R-->>I: Record or no record
        I-->>S: 200 status success, error_code null or IDTO_202, billed true
    end
    S-->>U: Continue or ask again
```

## Outcomes and billing

| Outcome | HTTP | `status` | `error_code` | Billed |
| - | - | - | - | - |
| Record found or card read | 200 | `success` | `null` | Yes |
| No record, or no PAN readable on the card | 200 | `success` | `IDTO_202` | Yes |
| Bad input, missing consent, rate limit or service error | 4xx or 5xx | `error` | `IDTO_0xx` or `IDTO_503` | No |

Every v2 response carries a boolean `billed`. On the v1 endpoints a call is charged only when `status` is `success`; there `chargeble` and `user_consent` are `"true"` on a charged call. Authentication failures (401, 403) return only `{"detail": "..."}`. Error bodies follow [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes), and charges follow the [billing rule](https://idto.mintlify.site/concepts/billing-consent.md#billing).

## In the SDK

The PAN step in the idto SDKs handles capture and shows the result to the user. See [SDKs](https://idto.mintlify.site/sdks/web.md) to embed it.

> [card] Card capture
>
> ![PAN card capture screen in the idto SDK](https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/img/sdk-pan-capture.png)

> [card] Verified result
>
> ![PAN result screen in the idto SDK](https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/img/sdk-pan-result.png)

## Next steps

* [Verify a PAN and branch on error\_code](https://idto.mintlify.site/recipes/verify-pan-branch-on-error-code.md)
* [PAN FAQ](https://idto.mintlify.site/products/pan/faq.md)
* [Input formats](https://idto.mintlify.site/reference/input-formats.md)

Was this page helpful? Email us at [tech@idto.ai](mailto:tech@idto.ai?subject=Docs%20feedback%3A%20PAN%20overview) with the page link.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.