Document OCR API for Indian lending
Read KYC and loan documents into checked, ready-to-use data
Send a photo or PDF of a PAN, Aadhaar, bank statement, cheque, bill, ITR or salary slip. Get back structured JSON in under a second, every field validated, and a clear flag when a person should take a look.
- 14 Indian document types
- Checksums and cross-checks
- Documents not stored
- Your cloud or ours

- pan
ABCPK1234F- name
RAVI KUMAR- fathers name
SURESH KUMAR- dob
1990-04-12
Real output
What you get back
These are actual responses from the LendOCR API for sample documents. Pick one to see the fields, confidence and checks.

| Field | Value | Confidence |
|---|---|---|
| pan | ABCPK1234F | 100% |
| name | RAVI KUMAR | 99% |
| fathers name | SURESH KUMAR | 100% |
| dob | 1990-04-12 | 100% |
- dob valid
- pan format
- name matches pan
Raw JSON response
{
"document_type": "pan",
"fields": {
"pan": {
"value": "ABCPK1234F",
"confidence": 1
},
"name": {
"value": "RAVI KUMAR",
"confidence": 0.992
},
"fathers_name": {
"value": "SURESH KUMAR",
"confidence": 0.998
},
"dob": {
"value": "1990-04-12",
"confidence": 1
}
},
"checks": {
"dob_valid": true,
"pan_format": true,
"name_matches_pan": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 148
}
| Field | Value | Confidence |
|---|---|---|
| aadhaar number | XXXX XXXX 0124 | 98% |
| dob | 1990-04-12 | 100% |
| name | RAVI KUMAR | 100% |
| gender | male | 100% |
- aadhaar checksum
- dob valid
- adult
Raw JSON response
{
"document_type": "aadhaar",
"fields": {
"aadhaar_number": {
"value": "XXXX XXXX 0124",
"confidence": 0.979
},
"dob": {
"value": "1990-04-12",
"confidence": 0.999
},
"name": {
"value": "RAVI KUMAR",
"confidence": 0.999
},
"gender": {
"value": "male",
"confidence": 1
}
},
"checks": {
"aadhaar_checksum": true,
"dob_valid": true,
"adult": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 132
}
| Field | Value | Confidence |
|---|---|---|
| account number | 32145678901 | 100% |
| account holder | RAVI KUMAR | 100% |
| ifsc | SBIN0001234 | 100% |
| bank name | State Bank of India | 100% |
| period from | 2026-08-01 | 100% |
| period to | 2026-10-31 | 100% |
| opening balance | 10000.00 | 99% |
| closing balance | 127772.00 | 99% |
| transaction count | 11 | 99% |
- has transactions
- balance continuity
- closing balance matches
Raw JSON response
{
"document_type": "bank_statement",
"fields": {
"account_number": {
"value": "32145678901",
"confidence": 1
},
"account_holder": {
"value": "RAVI KUMAR",
"confidence": 1
},
"ifsc": {
"value": "SBIN0001234",
"confidence": 1
},
"bank_name": {
"value": "State Bank of India",
"confidence": 1
},
"period_from": {
"value": "2026-08-01",
"confidence": 1
},
"period_to": {
"value": "2026-10-31",
"confidence": 1
},
"opening_balance": {
"value": "10000.00",
"confidence": 0.99
},
"closing_balance": {
"value": "127772.00",
"confidence": 0.99
},
"transaction_count": {
"value": "11",
"confidence": 0.99
}
},
"checks": {
"has_transactions": true,
"balance_continuity": true,
"closing_balance_matches": true
},
"needs_review": false,
"warnings": [],
"pages": 2,
"processing_ms": 19,
"data": {
"analysis": {
"average_balance": "84915.02",
"salary": {
"monthly_estimate": "53000.00"
},
"emi_loan": {
"monthly_average": "18500.00"
},
"bounces": {
"count": 1
},
"balance_check": {
"rows_checked": 11,
"mismatches": 0,
"mismatch_rows": []
}
},
"transactions": [
{
"date": "2026-08-01",
"narration": "NEFT CR ACME TECHNOLOGIES SALARY",
"debit": null,
"credit": "53000.00",
"balance": "63000.00",
"category": "salary"
},
{
"date": "2026-08-03",
"narration": "NACH DR HDFC BANK HOME LOAN EMI",
"debit": "18500.00",
"credit": null,
"balance": "44500.00",
"category": "emi_loan"
},
{
"date": "2026-08-05",
"narration": "ATM WDL CHENNAI T NAGAR",
"debit": "5000.00",
"credit": null,
"balance": "39500.00",
"category": "atm_withdrawal"
}
]
}
}
| Field | Value | Confidence |
|---|---|---|
| ifsc | SBIN0001234 | 98% |
| bank name | State Bank of India | 98% |
| micr code | 600002002 | 99% |
| cheque number | 123456 | 99% |
| micr account id | 001234 | 99% |
| transaction code | 31 | 99% |
| account number | 32145678901 | 97% |
| account holder | RAVI KUMAR | 100% |
- account number length
Raw JSON response
{
"document_type": "cheque",
"fields": {
"ifsc": {
"value": "SBIN0001234",
"confidence": 0.984
},
"bank_name": {
"value": "State Bank of India",
"confidence": 0.984
},
"micr_code": {
"value": "600002002",
"confidence": 0.991
},
"cheque_number": {
"value": "123456",
"confidence": 0.991
},
"micr_account_id": {
"value": "001234",
"confidence": 0.991
},
"transaction_code": {
"value": "31",
"confidence": 0.991
},
"account_number": {
"value": "32145678901",
"confidence": 0.974
},
"account_holder": {
"value": "RAVI KUMAR",
"confidence": 0.999
}
},
"checks": {
"account_number_length": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 171
}
| Field | Value | Confidence |
|---|---|---|
| provider | TAMIL NADU POWER DISTRIBUTION CORPORATION LTD | 100% |
| consumer number | 04-123-456-789 | 100% |
| name | RAVI KUMAR | 100% |
| address | 12, Gandhi Street, Ram Nagar, Coimbatore - 641009 | 100% |
| pincode | 641009 | 100% |
| bill date | 2026-11-01 | 100% |
| due date | 2026-11-15 | 100% |
| amount due | 1234.00 | 97% |
| units consumed | 245 | 100% |
- amount valid
- due after bill
- bill recent
Raw JSON response
{
"document_type": "electricity_bill",
"fields": {
"provider": {
"value": "TAMIL NADU POWER DISTRIBUTION CORPORATION LTD",
"confidence": 0.997
},
"consumer_number": {
"value": "04-123-456-789",
"confidence": 0.998
},
"name": {
"value": "RAVI KUMAR",
"confidence": 0.998
},
"address": {
"value": "12, Gandhi Street, Ram Nagar, Coimbatore - 641009",
"confidence": 0.995
},
"pincode": {
"value": "641009",
"confidence": 0.995
},
"bill_date": {
"value": "2026-11-01",
"confidence": 0.997
},
"due_date": {
"value": "2026-11-15",
"confidence": 0.999
},
"amount_due": {
"value": "1234.00",
"confidence": 0.972
},
"units_consumed": {
"value": "245",
"confidence": 0.997
}
},
"checks": {
"amount_valid": true,
"due_after_bill": true,
"bill_recent": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 181
}
| Field | Value | Confidence |
|---|---|---|
| insurer | ICICI Lombard | 98% |
| policy number | 3001/2345/6789 | 100% |
| insured name | LAKSHMI DEVI | 100% |
| registration number | KA 05 MN 0987 | 98% |
| make model | MARUTI SUZUKI SWIFT VXI | 98% |
| engine number | K12MN1234567 | 100% |
| chassis number | MA3EZD12S00123456 | 100% |
| policy start | 2026-06-01 | 100% |
| policy end | 2027-05-31 | 100% |
| idv | 485000.00 | 99% |
| premium | 14250.00 | 98% |
- registration format
- end after start
- policy active
Raw JSON response
{
"document_type": "motor_insurance",
"fields": {
"insurer": {
"value": "ICICI Lombard",
"confidence": 0.983
},
"policy_number": {
"value": "3001/2345/6789",
"confidence": 0.997
},
"insured_name": {
"value": "LAKSHMI DEVI",
"confidence": 0.998
},
"registration_number": {
"value": "KA 05 MN 0987",
"confidence": 0.984
},
"make_model": {
"value": "MARUTI SUZUKI SWIFT VXI",
"confidence": 0.983
},
"engine_number": {
"value": "K12MN1234567",
"confidence": 0.997
},
"chassis_number": {
"value": "MA3EZD12S00123456",
"confidence": 0.996
},
"policy_start": {
"value": "2026-06-01",
"confidence": 0.999
},
"policy_end": {
"value": "2027-05-31",
"confidence": 0.999
},
"idv": {
"value": "485000.00",
"confidence": 0.99
},
"premium": {
"value": "14250.00",
"confidence": 0.983
}
},
"checks": {
"registration_format": true,
"end_after_start": true,
"policy_active": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 220
}
| Field | Value | Confidence |
|---|---|---|
| employer | ACME TECHNOLOGIES PRIVATE LIMITED | 99% |
| month | 2026-10 | 100% |
| employee name | RAVI KUMAR | 100% |
| employee id | ACM1042 | 99% |
| designation | Senior Engineer | 100% |
| pan | ABCPK1234F | 99% |
| gross earnings | 55000.00 | 100% |
| total deductions | 2000.00 | 100% |
| net pay | 53000.00 | 97% |
| basic | 30000.00 | 100% |
| hra | 15000.00 | 100% |
| provident fund | 1800.00 | 100% |
| professional tax | 200.00 | 100% |
- net equals gross minus deductions
- net within gross
Raw JSON response
{
"document_type": "salary_slip",
"fields": {
"employer": {
"value": "ACME TECHNOLOGIES PRIVATE LIMITED",
"confidence": 0.992
},
"month": {
"value": "2026-10",
"confidence": 0.996
},
"employee_name": {
"value": "RAVI KUMAR",
"confidence": 0.998
},
"employee_id": {
"value": "ACM1042",
"confidence": 0.988
},
"designation": {
"value": "Senior Engineer",
"confidence": 1
},
"pan": {
"value": "ABCPK1234F",
"confidence": 0.989
},
"gross_earnings": {
"value": "55000.00",
"confidence": 0.999
},
"total_deductions": {
"value": "2000.00",
"confidence": 1
},
"net_pay": {
"value": "53000.00",
"confidence": 0.971
},
"basic": {
"value": "30000.00",
"confidence": 1
},
"hra": {
"value": "15000.00",
"confidence": 1
},
"provident_fund": {
"value": "1800.00",
"confidence": 1
},
"professional_tax": {
"value": "200.00",
"confidence": 1
}
},
"checks": {
"net_equals_gross_minus_deductions": true,
"net_within_gross": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 260
}
| Field | Value | Confidence |
|---|---|---|
| pan | ABCPK1234F | 100% |
| name | RAVI KUMAR | 100% |
| assessment year | 2025-26 | 100% |
| acknowledgement number | 123456789012345 | 100% |
| itr form | ITR-1 | 100% |
| filing date | 2025-07-28 | 100% |
| gross total income | 950000.00 | 100% |
| total income | 725000.00 | 100% |
| tax payable | 23400.00 | 100% |
| taxes paid | 25000.00 | 100% |
| refund | 1600.00 | 100% |
- assessment year valid
- filing date in window
- total within gross
Raw JSON response
{
"document_type": "itr_v",
"fields": {
"pan": {
"value": "ABCPK1234F",
"confidence": 1
},
"name": {
"value": "RAVI KUMAR",
"confidence": 1
},
"assessment_year": {
"value": "2025-26",
"confidence": 1
},
"acknowledgement_number": {
"value": "123456789012345",
"confidence": 1
},
"itr_form": {
"value": "ITR-1",
"confidence": 1
},
"filing_date": {
"value": "2025-07-28",
"confidence": 1
},
"gross_total_income": {
"value": "950000.00",
"confidence": 1
},
"total_income": {
"value": "725000.00",
"confidence": 1
},
"tax_payable": {
"value": "23400.00",
"confidence": 1
},
"taxes_paid": {
"value": "25000.00",
"confidence": 1
},
"refund": {
"value": "1600.00",
"confidence": 1
}
},
"checks": {
"assessment_year_valid": true,
"filing_date_in_window": true,
"total_within_gross": true
},
"needs_review": false,
"warnings": [],
"pages": 1,
"processing_ms": 7
}Coverage
Documents lenders ask for
One endpoint for all of them. LendOCR detects the document type for you.
PAN card
PAN number, name, father's name, date of birth.
KYCAadhaar card
Masked number, name, DOB, gender, address.
KYCVoter ID
EPIC number, name, relative, gender, DOB or age.
KYCDriving licence
DL number, name, DOB, validity, vehicle classes.
KYCPassport
MRZ with check digits, names, DOB, expiry.
BankingCheque
IFSC, bank, account number, MICR, holder.
BankingBank statement
Transactions, salary, EMIs, bounces, average balance.
AddressElectricity bill
Consumer number, name, address, bill date, amount.
AddressWater bill
Consumer number, name, address, bill date, amount.
AssetBike and car insurance
Policy, insurer, registration, period, IDV.
IncomeITR-V acknowledgement
PAN, AY, acknowledgement, income, tax.
IncomeSalary slip
Employer, month, gross, deductions, net pay.
BusinessGST certificate
GSTIN, legal name, constitution, address.
BusinessUdyam certificate
Udyam number, enterprise, type, activity.
Fields and checks for every document → ·How lenders use them →
How it works
Three steps, one API call
Send the document
Upload a photo, scan or PDF from your app or loan system. Password-protected PDFs are fine.
We read and check it
OCR reads every field, then validators check numbers, dates and totals. Unclear images get a second, more careful read.
You get clean JSON
Fields with confidence scores, check results and a
needs_reviewflag your workflow can act on.
Why LendOCR
Built for lending, not just reading text
Validation, not only OCR
Aadhaar Verhoeff and GSTIN checksums, passport MRZ check digits, PAN, DL and vehicle formats, salary maths and bank statement balances.
Fewer manual checks
Each document says whether it needs review and why. Clear documents flow straight through.
Bank statement analysis
Salary, EMIs, cheque bounces, cash deposits, average balance, and rows that do not add up.
Private by design
No document storage on the extract API, masked Aadhaar, encrypted background jobs, hashed API keys.
Fast and scalable
About 0.2 s per card on GPU, batch uploads, and background jobs with signed webhooks.
Runs where you need it
Use our API, or run the same containers in your own data centre when data must stay in-house.
For developers
One request
Send the file with your API key. The document type is detected automatically, or you can name it. Errors are standard HTTP with clear messages.
curl https://api.lendocr.com/v1/documents:extract \
-H "Authorization: Bearer lo_test_..." \
-F file=@pan.jpg
{
"document_type": "pan",
"fields": {
"pan": { "value": "ABCPK1234F", "confidence": 1.0 },
"name": { "value": "RAVI KUMAR", "confidence": 0.99 },
"dob": { "value": "1990-04-12", "confidence": 1.0 }
},
"checks": { "pan_format": true, "name_matches_pan": true },
"needs_review": false
}Accuracy
Measured, not promised
We test every document type on clean, blurred, rotated, compressed, low-resolution, dim and phone-photo copies. On our latest test set of synthetic documents (552 fields across 107 runs), LendOCR read 100% of fields correctly with the automatic engine, with no wrong field left unflagged.
Synthetic test documents are not the real world. During a pilot we measure accuracy on your own documents before you go live.
Questions
Which documents can LendOCR read?
PAN, Aadhaar (front and back), voter ID, driving licence, passport, cheques, bank statements, electricity and water bills, bike and car insurance, ITR-V, salary slips, GST certificates and Udyam certificates. Photos, scans and PDFs, including password-protected PDFs.
Do you store our customers' documents?
No. Documents sent to the extract API are processed in memory and dropped. For background jobs, the file is kept encrypted only until it is processed, then deleted; results are kept encrypted for 24 hours so you can collect them, then erased. Aadhaar numbers are always returned masked.
Does LendOCR prove a document is genuine?
It checks that every number could be real (Aadhaar and GSTIN checksums, passport MRZ check digits, PAN and DL formats, bank statement balances) and flags anything doubtful for review. Proving a document belongs to a person needs a government source such as Income Tax or UIDAI verification, which you use alongside LendOCR.
How fast is it?
A card such as PAN or Aadhaar takes about 0.2 seconds on a GPU; digital PDFs take milliseconds. Large files and bulk uploads can run as background jobs that call your webhook when done.
What does needs_review mean?
Every response says whether a person should check the document: when a required field is missing, the model was unsure, or a check failed. Clear documents go straight through; only doubtful ones reach your team.
Can we run it on our own servers?
Yes. LendOCR ships as Docker containers, so banks and NBFCs that must keep data in-house can run it in their own data centre or cloud account.
How do we start?
Ask for a free test key. It works on every endpoint so your developers can integrate, and test calls are never billed. When you go live, you get a live key with your agreed volume.
Try it on your documents
Get a free test key and integrate in an afternoon.