recipe · 9 fieldselectricity bill
electricity bill
extraction api.
A monthly electricity bill. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities.
what it reads
the fields.
Rename any of them, drop the ones you don't need, or add the one your form asks for. Each comes back with the text it was read from.
| field | key | type | notes |
|---|---|---|---|
| Electricity Co. | electricity_company | Text | — |
| Name | name | Name | Consumer name |
| Address line 1 | address_line_1 | Address | — |
| Address line 2optional | address_line_2 | Address | — |
| Area code | area_code | PIN code | PIN code |
| Customer No. | customer_number | Text | Consumer / service number |
| Meter No. | meter_number | Text | — |
| Sub Div. office | sub_division_office | Text | — |
| Connected load | connected_load | Text | With its unit (kW / HP / kVA), as printed |
the apia electricity bill in,
a electricity bill in,
json back.
Publish the recipe as a workflow and send it files. Each field returns its value, a clean normalised version, its status, the page and the source text.
curl https://api.patrapi.com/v1/workflows/wf_light/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@light-bill.pdf{ "status": "completed",
"document_type": "light_bill",
"fields": {
"electricity_company": { "value": …, "status": "present", "page": 1 },
"name": { "value": …, "status": "present", "page": 1 },
"address_line_1": { "value": …, "status": "present", "page": 1 },
"address_line_2": { "value": …, "status": "present", "page": 1 },
"area_code": { "value": …, "status": "present", "page": 1 },
… 4 more
} }