recipe · 9 fieldsindigenous machinery purchase bill
indigenous machinery purchase bill
extraction api.
A GST tax invoice for machinery bought by the firm from an Indian supplier.
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 |
|---|---|---|---|
| Invoice number | invoice_number | Text | — |
| Invoice date | invoice_date | Date | — |
| Seller firm name | seller_firm_name | Name | — |
| Seller address | seller_address | Address | — |
| Seller GST number | seller_gstin | GSTIN | — |
| Buyer firm name | buyer_firm_name | Name | — |
| Description of goods | description_of_goods | Text | — |
| Amount of invoice without GST | amount_without_gst | Amount (₹) | Taxable value |
| Amount of invoice with GST | amount_with_gst | Amount (₹) | Grand total |
the apia indigenous machinery purchase bill in,
a indigenous machinery purchase 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_machinery/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@machinery-bill.pdf{ "status": "completed",
"document_type": "machinery_bill",
"fields": {
"invoice_number": { "value": …, "status": "present", "page": 1 },
"invoice_date": { "value": …, "status": "present", "page": 1 },
"seller_firm_name": { "value": …, "status": "present", "page": 1 },
"seller_address": { "value": …, "status": "present", "page": 1 },
"seller_gstin": { "value": …, "status": "present", "page": 1 },
… 4 more
} }