recipe · 4 fieldsmachinery payment receipt
machinery payment receipt
extraction api.
A receipt from a machinery seller acknowledging payment.
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 |
|---|---|---|---|
| Seller name | seller_name | Name | — |
| Receipt number | receipt_number | Text | — |
| Receipt date | receipt_date | Date | — |
| Receipt amount | receipt_amount | Amount (₹) | — |
the apia machinery payment receipt in,
a machinery payment receipt 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-payment-receipt.pdf{ "status": "completed",
"document_type": "machinery_payment_receipt",
"fields": {
"seller_name": { "value": …, "status": "present", "page": 1 },
"receipt_number": { "value": …, "status": "present", "page": 1 },
"receipt_date": { "value": …, "status": "present", "page": 1 },
"receipt_amount": { "value": …, "status": "present", "page": 1 }
} }