AU Bank Statement Parser: Extract Structured JSON with AI
Parse AU Bank statements—savings, current, or MSME—into structured JSON with AI. Handles AU 0101 exports, universal bank formats, and password-protected PDFs.
AU Bank — formerly AU Small Finance Bank — received its universal banking licence from the RBI in April 2024, making it India's newest full-service commercial bank. With 10 million+ customers and a strong base in Rajasthan, Gujarat, and Maharashtra, AU Bank statements are increasingly showing up in lending pipelines, wealth management tools, and KYC workflows built by Indian fintech teams.
This guide shows how to reliably extract structured data from any AU Bank PDF using Lekha's API, with TypeScript examples you can drop into a production agent today.
Why AU Bank Statements Are Tricky to Parse
AU Bank's statement format has evolved significantly since the bank's rebranding from "AU Small Finance Bank" to "AU Bank" in 2024. Developers building parsers encounter three common problems:
Format fragmentation: AU Bank issues statements through two separate channels — the AU 0101 mobile and internet banking app, and older net-banking portals that predate the rebrand. Each channel produces a subtly different PDF layout. Column widths, header strings, and transaction description formats differ between them, breaking any rule-based extractor tuned to only one. MSME vs. retail layouts: AU Bank has a large MSME lending book. Business current account statements include additional fields — GST reference numbers, trade finance identifiers, and overdraft utilisation data — that aren't present in retail savings statements. A parser that works for one will silently drop fields from the other. Password-protected exports: AU Bank statements downloaded from AU 0101 are typically password-protected. The password is derived from the account holder's date of birth. If your pipeline automates bulk ingestion, you need a decryption step before the parser runs — and you need the parser to still work correctly on the unlocked file without re-encoding artefacts.Vision AI models sidestep all three problems. Lekha reads the PDF as a document image, understands context across rows and columns, and applies the same schema regardless of which AU Bank layout it receives.
Quick Start: Parse an AU Bank Statement in 3 Lines
import { LekhaClient } from "@lekha/sdk";
import fs from "node:fs";
const lekha = new LekhaClient({ apiKey: process.env.LEKHA_API_KEY });
const result = await lekha.extract({
document: fs.readFileSync("au-bank-statement.pdf"),
type: "bank_statement",
});
console.log(result.data);
Lekha auto-detects that this is an AU Bank statement, identifies whether it is a retail or MSME account, and returns the same structured schema it uses for every other Indian bank. No bank-specific configuration needed.
What You Get Back
{
"bank": "AU Bank",
"account": {
"number": "XXXX XXXX 5678",
"type": "savings",
"holder": "PRIYA MEHTA",
"ifsc": "AUBL0002083",
"branch": "Jaipur - Tonk Road",
"currency": "INR"
},
"period": {
"from": "2026-10-01",
"to": "2026-10-31"
},
"summary": {
"opening_balance": 42500.0,
"closing_balance": 68350.75,
"total_credits": 125000.0,
"total_debits": 99149.25,
"transaction_count": 47
},
"transactions": [
{
"date": "2026-10-03",
"value_date": "2026-10-03",
"description": "SALARY CREDIT - INFOSYS BPO LTD",
"type": "credit",
"amount": 85000.0,
"balance": 127500.0,
"reference": "AU20261003NEFT00123456",
"mode": "NEFT",
"category": "salary"
},
{
"date": "2026-10-05",
"value_date": "2026-10-05",
"description": "UPI/PHONEPE/9876543210/GROCERIES",
"type": "debit",
"amount": 1250.0,
"balance": 126250.0,
"reference": "UPI26100512345678",
"mode": "UPI",
"category": "groceries"
}
]
}
Every transaction gets a mode field (UPI, NEFT, IMPS, RTGS, CHEQUE, ATM, POS) and a category derived from the description. The reference field preserves the full AU Bank transaction ID, which is useful for reconciliation.
Handling MSME Current Account Statements
AU Bank is one of India's leading MSME lenders. Business accounts have richer transaction metadata. Pass type: "bank_statement" exactly as before — Lekha detects the account type automatically and returns additional fields:
const result = await lekha.extract({
document: fs.readFileSync("au-business-statement.pdf"),
type: "bank_statement",
});
// MSME-specific fields in result.data.account
console.log(result.data.account.overdraft_limit); // 5000000
console.log(result.data.account.overdraft_used); // 1250000
console.log(result.data.summary.average_utilization); // 0.25
// GST references on individual transactions
const gstTransactions = result.data.transactions.filter(
(t) => t.gst_reference !== null,
);
For lending or working capital assessment pipelines, the average_utilisation metric (average overdraft utilisation across the statement period) is a strong cash-flow stress indicator that AU Bank embeds directly in its MSME statement summaries.
Building a Loan Pre-Screening Agent
Here is a minimal but production-ready agent that takes an AU Bank statement, extracts it, and returns a go/no-go signal for a personal loan application:
import { LekhaClient } from "@lekha/sdk"; import Anthropic from "@anthropic-ai/sdk"; import fs from "node:fs";, }, ], });const lekha = new LekhaClient({ apiKey: process.env.LEKHA_API_KEY }); const claude = new Anthropic();
async function screenLoanApplicant(statementPath: string, loanAmount: number) { // Step 1: Extract structured data const { data } = await lekha.extract({ document: fs.readFileSync(statementPath), type: "bank_statement", });
// Step 2: Derive key signals const avgMonthlyCredit = data.summary.total_credits / data.transactions.length; const salaryCredits = data.transactions.filter( (t) => t.category === "salary", ); const regularSalary = salaryCredits.length >= 1 && salaryCredits[0].amount > 0; const emi = data.transactions .filter((t) => t.category === "emi") .reduce((sum, t) => sum + t.amount, 0);
// Step 3: Ask Claude to reason over the signals const response = await claude.messages.create({ model: "claude-sonnet-4-6", max_tokens: 512, messages: [ { role: "user", content:
Assess this loan application: Bank: ${data.bank} Period: ${data.period.from} to ${data.period.to} Average monthly credit: ₹${avgMonthlyCredit.toFixed(0)} Regular salary: ${regularSalary} Existing EMIs: ₹${emi.toFixed(0)}/month Closing balance: ₹${data.summary.closing_balance} Requested loan amount: ₹${loanAmount}Return JSON: { "eligible": boolean, "confidence": "high"|"medium"|"low", "reason": string }
return JSON.parse(response.content[0].text); }
const verdict = await screenLoanApplicant("au-statement.pdf", 500000); console.log(verdict); // { eligible: true, confidence: "high", reason: "Stable salary credits, low existing EMI burden" }
This pattern — extract with Lekha, reason with Claude — is the core loop for most financial document agents. Try it live at lekhadev.com/playground.
AU Bank-Specific Parsing Notes
A few things worth knowing before you go to production:
Transaction description format: AU Bank's UPI description format isUPI/// , which is consistent across all AU Bank statements. The mode field in Lekha's response already parses this — you don't need to regex it yourself.
Multiple statements in one PDF: Internet banking allows downloading a 12-month statement as a single PDF. Lekha handles multi-period PDFs and returns a single normalised transaction list with ISO 8601 dates throughout.
IFSC branch codes: AU Bank uses the prefix AUBL for all branch IFSC codes. If you are building a reconciliation tool that maps IFSC to branch location, the full IFSC-to-branch table is available through the RBI's public API.
Statement verification: For regulated use-cases (lending, KYC), always pair statement extraction with Lekha's tampering-detection flag. AU Bank statements include a digital signature in newer exports; Lekha validates it and surfaces the result in meta.verified.
Use Cases
AU Bank statements come up most often in four scenarios:
All four are supported by the same extraction endpoint. The difference is which fields downstream logic reads.
FAQ
Does Lekha work with password-protected AU Bank PDFs?Yes. Pass the PDF directly to the API. If your download pipeline already unlocks the PDF before sending it, that works too. Lekha processes the document server-side and never stores the file — in memory only, in line with DPDP compliance requirements.
How does Lekha handle the AU Small Finance Bank vs AU Bank rebrand?Both old and new header formats are supported. A statement from 2022 with the "AU Small Finance Bank" header parses identically to a 2025 statement with the "AU Bank" header. The bank field in the response is normalised to "AU Bank" in both cases.
Lekha achieves 98%+ field-level accuracy on AU Bank savings and current account statements in internal benchmarks. MSME overdraft statements with multi-currency entries are supported but see slightly lower accuracy (~95%) due to format variation — file a support ticket if you hit edge cases.
Can I extract six months of statements in one API call?Pass the full multi-period PDF. Lekha detects the date range, deduplicates any overlapping transactions at period boundaries, and returns a single sorted transaction list. See the docs for the merge_periods parameter.
Ready to start parsing AU Bank statements in your application? Sign up at lekhadev.com — free tier includes 50 extractions per month, no credit card required. For production volumes, the docs cover rate limits, webhook delivery, and the full response schema.