
Real response for this sample
| 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% |
No review needed. Read in 181 ms.
Fields returned
| Field | What it is |
|---|---|
consumer_number | Service / consumer / CA number |
name, address, pincode | As billed |
bill_date, due_date, period | Billing dates |
amount_due, units_consumed | Amount and kWh |
provider | Electricity board |
Every field comes with a confidence score from 0 to 1.
Checks
- Bill is not older than 3 months
- Due date after bill date
- Amount is valid
If a required field is missing, unsure, or a check fails, the response hasneeds_review: true and a warning explaining why.
Used for
- Address proof
- Utility-payment track record
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=electricity_billQuestions about the electricity bill API
Which electricity boards are supported?
Bills from state boards and private DISCOMs are read by their labels (consumer or service number, bill date, amount payable), so most formats work without special templates.
Can I send a phone photo of a electricity bill?
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 electricity bill 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.