recipes / finance
recipe · 7 fields

loan account statement
extraction api.

A term-loan account statement showing disbursements and repayments.

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
Firm namefirm_nameNameBorrower
Loan account numberloan_account_numberBank account number—
Date of 1st disbursementfirst_disbursement_dateDate—
Amount of 1st disbursementfirst_disbursement_amountAmount (₹)—
Name of bankbank_nameText—
Branch namebranch_nameText—
Receipt amountoptionalreceipt_amountAmount (₹)—
the api

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