recipe · 7 fieldsloan account statement
loan account statement
extraction api.
A term-loan account statement showing disbursements and repayments.
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 |
|---|---|---|---|
| Firm name | firm_name | Name | Borrower |
| Loan account number | loan_account_number | Bank account number | — |
| Date of 1st disbursement | first_disbursement_date | Date | — |
| Amount of 1st disbursement | first_disbursement_amount | Amount (₹) | — |
| Name of bank | bank_name | Text | — |
| Branch name | branch_name | Text | — |
| Receipt amountoptional | receipt_amount | Amount (₹) | — |
the apia loan account statement in,
a loan account statement 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_loan/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@loan-statement.pdf{ "status": "completed",
"document_type": "loan_statement",
"fields": {
"firm_name": { "value": …, "status": "present", "page": 1 },
"loan_account_number": { "value": …, "status": "present", "page": 1 },
"first_disbursement_date": { "value": …, "status": "present", "page": 1 },
"first_disbursement_amount": { "value": …, "status": "present", "page": 1 },
"bank_name": { "value": …, "status": "present", "page": 1 },
… 2 more
} }