Home / Documents / PAN card

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.

Sample PAN card (synthetic specimen)
Synthetic specimen. No real person's data.

Real response for this sample

FieldValueConfidence
panABCPK1234F100%
nameRAVI KUMAR99%
fathers nameSURESH KUMAR100%
dob1990-04-12100%

No review needed. Read in 148 ms.

Fields returned

FieldWhat it is
pan10-character PAN, format checked
nameCard holder's name
fathers_nameFather's name
dobDate 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=pan

Authentication, errors, batch uploads and webhooks →

Questions 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.