recipe · 12 fieldsloan sanction letter
loan sanction letter
extraction api.
A bank's letter sanctioning a credit facility: amount, tenure, interest, margin, security and terms. A letter may list several facilities; report the term loan for machinery when there are several, and the total otherwise.
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 |
|---|---|---|---|
| Loan application dateoptional | application_date | Date | — |
| Loan sanction date | sanction_date | Date | — |
| Firm name | firm_name | Name | Borrower |
| Loan amount | loan_amount | Amount (₹) | Sanctioned amount, not the requested amount |
| Loan repayment month | repayment_months | Whole number | Repayment period in months |
| Moratorium periodoptional | moratorium_months | Whole number | In months |
| Margin | margin | Percentage | — |
| Loan under CGTMSE | under_cgtmse | Choice | — |
| Rate of interest | rate_of_interest | Text | As printed, e.g. RLLR + 1.50% = 9.75% p.a. |
| Bank | bank | Text | — |
| Branch | branch | Text | — |
| Branch address | branch_address | Address | — |
the apia loan sanction letter in,
a loan sanction letter 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-sanction-letter.pdf{ "status": "completed",
"document_type": "loan_sanction_letter",
"fields": {
"application_date": { "value": …, "status": "present", "page": 1 },
"sanction_date": { "value": …, "status": "present", "page": 1 },
"firm_name": { "value": …, "status": "present", "page": 1 },
"loan_amount": { "value": …, "status": "present", "page": 1 },
"repayment_months": { "value": …, "status": "present", "page": 1 },
… 7 more
} }