recipes / power & utilities
recipe · 9 fields

electricity bill
extraction api.

A monthly electricity bill. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities.

use this recipeall recipesfrom ₹5 a document · 50 free credits
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.

fieldkeytypenotes
Electricity Co.electricity_companyText—
NamenameNameConsumer name
Address line 1address_line_1Address—
Address line 2optionaladdress_line_2Address—
Area codearea_codePIN codePIN code
Customer No.customer_numberTextConsumer / service number
Meter No.meter_numberText—
Sub Div. officesub_division_officeText—
Connected loadconnected_loadTextWith its unit (kW / HP / kVA), as printed
the api

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
  } }
more in power & utilities