Bank Statement Analysis API
Takes bank statement PDFs and returns the holder name, bank, period, key summary figures (average balance, salary, EMIs, bounces), categorised transactions and tamper flags.
- Source
- Statement PDFs supplied by the applicant, analysed by our parser and categorisation models
- Turnaround
- Under a minute for most files; asynchronous with a webhook for large uploads
- Endpoint
- POST /v1/statements/analyse
- Who can use it
- Lenders, lessors and other businesses with the applicant's consent to analyse their statements.
Overview
Underwriters still spend hours reading bank statements line by line. Send us the PDFs (password-protected is fine) and we return the account holder, period, average balance, salary credits, EMI outflows, bounces and every transaction with a category. We also check the PDF for signs of editing, which is the most common way statements are faked.
Good to know
It can only see the accounts you upload. An applicant with several bank accounts can show you their best one, so ask about other accounts.
What you get
- Tamper detectionWe check PDF metadata, fonts and running balances for signs the statement was edited after download.
- Salary and EMI detectionRecurring credits and debits are picked out and labelled, so you see real income and existing obligations.
- Bounce historyECS, NACH and cheque returns over the period, a strong sign of repayment stress.
- Most Indian bank formatsStatement layouts from public, private, small finance and cooperative banks are supported, and multiple PDFs can cover one period.
Request
POST https://api.ampletrails.com/v1/statements/analyse
| Field | Type | Status | Description |
|---|---|---|---|
files | file[] | Required | Bank statement PDFs (password-protected supported) |
password | string | Optional | PDF password, if any |
name | string | Optional | Applicant name to match against the account holder |
consent | string | Required | Y when the applicant has consented |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
account_holder | Name on the statement | RAVI KUMAR |
bank | Bank detected | HDFC Bank |
period | Statement period covered | 2025-01-01 to 2026-11-30 |
summary.avg_monthly_balance | Average monthly balance in ₹ | 48200 |
summary.salary_credits | Detected monthly salary credit in ₹ | 65000 |
summary.emi_outflow | Detected monthly EMI outflow in ₹ | 14500 |
summary.bounces | Cheque/ECS/NACH bounces in the period | 0 |
fraud_flags | Signs of tampering in the PDF or unusual round-tripping | [] |
transactions | Every transaction with date, amount and category | […] |
Example
curl -X POST https://api.ampletrails.com/v1/statements/analyse \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"files": "statement_jan_jun.pdf", "password": "ravi1405", "name": "Ravi Kumar", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/statements/analyse",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"files": "statement_jan_jun.pdf",
"password": "ravi1405",
"name": "Ravi Kumar",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/statements/analyse", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"files": "statement_jan_jun.pdf",
"password": "ravi1405",
"name": "Ravi Kumar",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/statements/analyse");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["files" => "statement_jan_jun.pdf", "password" => "ravi1405", "name" => "Ravi Kumar", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"account_holder": "RAVI KUMAR",
"bank": "HDFC Bank",
"period": "2025-01-01 to 2026-11-30",
"summary": {
"avg_monthly_balance": 48200,
"salary_credits": 65000,
"emi_outflow": 14500,
"bounces": 0
},
"fraud_flags": "[]",
"transactions": "[…]"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
New-to-credit borrowers
Assess applicants with no bureau history from how money actually moves through their account.
MSME lending
Look at business account inflows, concentration of customers and cash withdrawals.
Tenant and lease checks
Confirm regular income before a high-value rental or vehicle lease.
Questions about this API
Which banks are supported?
Statements downloaded from net banking for most Indian banks. Scanned or photographed statements work less reliably; ask for the original PDF.
How many months should I ask for?
Six months is common for personal loans and twelve for business loans. The API accepts up to 24 months across several files.
Can it read a password-protected PDF?
Yes, send the password with the request. We don't store it after processing.
Is the result synchronous?
Small statements usually come back in under a minute. Larger or multiple files are processed asynchronously and we call your webhook.
Try the Bank Statement Analysis API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.