recipes / finance
recipe · 6 fields

sale bill / tax invoice
extraction api.

A GST tax invoice issued by the firm for goods it sold.

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
Invoice no.invoice_numberText—
Invoice dateinvoice_dateDate—
Firm namefirm_nameNameSeller (issuer of the invoice)
Buyer's namebuyer_nameName—
HSN codehsn_codesTextAll HSN codes on the invoice, separated by commas
Invoice amountinvoice_amountAmount (₹)Grand total including tax
the api

a sale bill / tax invoice 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_sale/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@sale-bill.pdf
{ "status": "completed",
  "document_type": "sale_bill",
  "fields": {
    "invoice_number": { "value": …, "status": "present", "page": 1 },
    "invoice_date": { "value": …, "status": "present", "page": 1 },
    "firm_name": { "value": …, "status": "present", "page": 1 },
    "buyer_name": { "value": …, "status": "present", "page": 1 },
    "hsn_codes": { "value": …, "status": "present", "page": 1 },
    … 1 more
  } }
more in finance