recipes / finance
recipe · 12 fields

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.

use this recipeall recipesfrom ₹5 a document · 50 free credits
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.

fieldkeytypenotes
Loan application dateoptionalapplication_dateDate—
Loan sanction datesanction_dateDate—
Firm namefirm_nameNameBorrower
Loan amountloan_amountAmount (₹)Sanctioned amount, not the requested amount
Loan repayment monthrepayment_monthsWhole numberRepayment period in months
Moratorium periodoptionalmoratorium_monthsWhole numberIn months
MarginmarginPercentage—
Loan under CGTMSEunder_cgtmseChoice—
Rate of interestrate_of_interestTextAs printed, e.g. RLLR + 1.50% = 9.75% p.a.
BankbankText—
BranchbranchText—
Branch addressbranch_addressAddress—
the api

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
  } }
more in finance