recipe · 5 fieldscancelled cheque
cancelled cheque
extraction api.
A cheque leaf marked cancelled; the account number and IFSC are printed on it, the account name usually above the signature.
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 |
|---|---|---|---|
| Name of account | account_name | Name | — |
| Account number | account_number | Bank account number | — |
| Name of bank | bank_name | Text | — |
| Branch | branch | Text | — |
| IFSC | ifsc | IFSC | — |
the apia cancelled cheque in,
a cancelled cheque 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_cancelled/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@cancelled-cheque.pdf{ "status": "completed",
"document_type": "cancelled_cheque",
"fields": {
"account_name": { "value": …, "status": "present", "page": 1 },
"account_number": { "value": …, "status": "present", "page": 1 },
"bank_name": { "value": …, "status": "present", "page": 1 },
"branch": { "value": …, "status": "present", "page": 1 },
"ifsc": { "value": …, "status": "present", "page": 1 }
} }