KYC
PAN card OCR API
Upload a photo or scan of a PAN card, old or new design, and get the PAN number, name, father's name and date of birth as JSON. Common OCR slips such as I for 1 or O for 0 are corrected and reported.

Real response for this sample
| Field | Value | Confidence |
|---|---|---|
| pan | ABCPK1234F | 100% |
| name | RAVI KUMAR | 99% |
| fathers name | SURESH KUMAR | 100% |
| dob | 1990-04-12 | 100% |
No review needed. Read in 148 ms.
Fields returned
| Field | What it is |
|---|---|
pan | 10-character PAN, format checked |
name | Card holder's name |
fathers_name | Father's name |
dob | Date of birth (YYYY-MM-DD) |
Every field comes with a confidence score from 0 to 1.
Checks
- PAN format (5 letters, 4 digits, 1 letter)
- Holder type from the 4th letter: individual, company, firm, HUF, trust and more
- The 5th PAN letter matches an initial in the name
- Date of birth is a real, past date
If a required field is missing, unsure, or a check fails, the response hasneeds_review: true and a warning explaining why.
Used for
- Customer onboarding
- Loan applications
- Vendor and partner KYC
Request
Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Leave out document_type to detect it automatically.
curl https://api.lendocr.com/v1/documents:extract \
-H "Authorization: Bearer lo_test_..." \
-F file=@document.jpg \
-F document_type=panQuestions about the pan card API
Does it work with both old and new PAN card designs?
Yes. LendOCR reads the newer cards with Name and Father's Name labels and the older cards without labels, including when the Hindi header comes out as noise.
Can I send a phone photo of a pan card?
Yes. Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Tilted and low-resolution photos are handled; if an image is too unclear, the response is flagged for review and says why.
Do you store the pan card after reading it?
No. On the extract API the document is processed in memory and dropped. For background jobs it is kept encrypted only until processed, and results are erased after 24 hours.