recipe · 7 fieldsproforma-15
proforma-15
extraction api.
A discom form for a new or changed electricity connection, often scanned. 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 |
|---|---|---|---|
| Service provider | service_provider | Text | — |
| Sub division name | sub_division_name | Text | — |
| Date of proforma-15 | date | Date | — |
| Consumer / firm name | consumer_name | Name | — |
| Consumer number | consumer_number | Text | — |
| Meter number | meter_number | Text | — |
| Connected load in kW | connected_load_kw | Number | — |
the apia proforma-15 in,
a proforma-15 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_proforma/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@proforma-15.pdf{ "status": "completed",
"document_type": "proforma_15",
"fields": {
"service_provider": { "value": …, "status": "present", "page": 1 },
"sub_division_name": { "value": …, "status": "present", "page": 1 },
"date": { "value": …, "status": "present", "page": 1 },
"consumer_name": { "value": …, "status": "present", "page": 1 },
"consumer_number": { "value": …, "status": "present", "page": 1 },
… 2 more
} }