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.
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 CGTMSEoptional | 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 addressoptional | branch_address | Address | — |
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_YOUR_WORKFLOW_ID/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F [email protected]{
"object": "extraction",
"id": "ext_…",
"status": "succeeded",
"document_type": "loan_sanction_letter",
"pages": …,
"credits": …,
"fields": {
"application_date": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"sanction_date": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"firm_name": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"loan_amount": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
… 8 more
}
}asked often.
What does the Loan sanction letter API extract?
12 fields: Loan application date, Loan sanction date, Firm name, Loan amount, Loan repayment month, Moratorium period, Margin, Loan under CGTMSE, Rate of interest, Bank, Branch and Branch address. You can rename them, drop the ones you don't need or add your own before publishing.
What comes back for each field?
A JSON object with value, normalized, status, page, source_text and bbox. The status is one of present, not_present, unreadable, redacted and conflicting, so a value that is not on the document comes back as null instead of a guess.
Which Loan sanction letter fields are optional?
Loan application date, Moratorium period, Loan under CGTMSE and Branch address. When the document doesn't carry one, the field comes back with the status not_present and a null value.
How much does Loan sanction letter extraction cost?
1¢ a page (₹1 in India), and every page counts. Failed documents and repeats of the same file are free.
Can I test Loan sanction letter extraction for free?
Yes. You can try it without an account: 15 test runs on documents of up to 15 pages. A new account starts with 200 free pages, and the first 25 test and assistant runs on each workflow cost nothing (up to 100 a month per account).