# Statement Parser API: bank statement parsing for India

> Upload an Indian bank statement as PDF, CSV or Excel and get normalised transactions as JSON. 16 banks, signed webhooks, pay per extracted row.

Source: https://parser.lekhavo.com/

# Bank statement parsing API for Indian banks: Statements in.  
Ledger rows out. 

Send a PDF, CSV or Excel statement from an Indian bank. Get back normalised transactions as JSON, with a signed webhook when the job finishes. No template-writing, no per-bank scraping. 

[Open parser console →](https://parser.lekhavo.com/app/) [Read the API flow](#api) 

One API for bank statements and NCD schedules. Built for accounting software, finance teams and developers. 

Statement.pdfSample 

1. 15 Jan NEFT synthetic credit250.00 Cr
2. 16 Jan UPI synthetic debit75.00 Dr
3. 18 Jan IMPS synthetic credit120.00 Cr

GET /v1/jobs/{id}/result 

```
{
  "date": "2025-01-15",
  "amount": "250.00",
  "description": "NEFT synthetic credit",
  "metadata": {
    "balance_after": "1250.00"
  }
}
```

01 · How it works

## Upload. Parse. Get called back.

1. 01  
### Upload  
Register your PDF, CSV or Excel file, send it to the returned upload URL, then confirm the upload. Files are checked before processing. Up to 25 MiB per file under standard early-access terms.  
POST /v1/uploads
2. 02  
### Parse  
Create a parsing job. The bank format is detected for you, or you can specify a supported format. Receive normalised transactions and account metadata as JSON.  
POST /v1/jobs
3. 03  
### Webhook  
A job.completed event is delivered to your endpoint, signed with HMAC-SHA256\. Fetch the result through a short-lived download URL, or poll the job if you prefer.  
job.completed

02 · Coverage

## Built for the statements Indian accountants actually receive.

Sixteen banks across PDF, CSV and Excel exports today, including several co-operative banks. [Password-protected files](https://parser.lekhavo.com/password-protected-bank-statements/) are supported: pass the password with the job. The same API also accepts NCD schedules (XLSX). 

__Supported banks and statement formats__
| Bank                                                                         | PDF             | CSV             | Excel           |
| ---------------------------------------------------------------------------- | --------------- | --------------- | --------------- |
| [HDFC Bank](https://parser.lekhavo.com/banks/hdfc-bank/)                                               | ● Supported     | ● Supported     | ● Supported     |
| [ICICI Bank](https://parser.lekhavo.com/banks/icici-bank/)several PDF layouts                          | ● Supported     | ● Supported     | ● Supported     |
| [State Bank of India](https://parser.lekhavo.com/banks/sbi/)                                           | ● Supported     | ● Supported     | ● Supported     |
| [Axis Bank](https://parser.lekhavo.com/banks/axis-bank/)                                               | ● Supported     | ● Supported     | ● Supported     |
| [Kotak Mahindra Bank](https://parser.lekhavo.com/banks/kotak-mahindra-bank/)                           | ● Supported     | – Not supported | ● Supported     |
| [Yes Bank](https://parser.lekhavo.com/banks/yes-bank/)                                                 | ● Supported     | – Not supported | ● Supported     |
| [Bank of Baroda](https://parser.lekhavo.com/banks/bank-of-baroda/)                                     | ● Supported     | – Not supported | ● Supported     |
| [Punjab National Bank](https://parser.lekhavo.com/banks/punjab-national-bank/)                         | – Not supported | – Not supported | ● Supported     |
| [Union Bank of India](https://parser.lekhavo.com/banks/union-bank-of-india/)                           | ● Supported     | – Not supported | – Not supported |
| [Federal Bank](https://parser.lekhavo.com/banks/federal-bank/)                                         | ● Supported     | – Not supported | – Not supported |
| [IDFC FIRST Bank](https://parser.lekhavo.com/banks/idfc-first-bank/)                                   | ● Supported     | – Not supported | – Not supported |
| [Indian Bank](https://parser.lekhavo.com/banks/indian-bank/)                                           | ● Supported     | – Not supported | – Not supported |
| [Indian Overseas Bank](https://parser.lekhavo.com/banks/indian-overseas-bank/)                         | ● Supported     | – Not supported | – Not supported |
| [Surat National Co-operative Bank](https://parser.lekhavo.com/banks/surat-national-co-operative-bank/) | ● Supported     | – Not supported | – Not supported |
| [Sarvodaya Sahakari Bank](https://parser.lekhavo.com/banks/sarvodaya-sahakari-bank/)                   | ● Supported     | – Not supported | – Not supported |
| [Sutex Co-operative Bank](https://parser.lekhavo.com/banks/sutex-co-operative-bank/)                   | ● Supported     | – Not supported | – Not supported |

Upload formats accepted for bank statements: .pdf, .csv, .xls, .xlsx. [Formats and sample output for each bank](https://parser.lekhavo.com/banks/). Missing your bank? [Tell us](mailto:info@lekhavo.com?subject=Parser%20API%20early%20access). 

03 · The API

## Four calls and a webhook.

Authenticate with your API key. Upload a statement, create a job and retrieve structured JSON. Receive a signed webhook or poll for completion. Your API credentials and webhook setup are provided during onboarding. Every endpoint, status and error code is in the [API docs](https://parser.lekhavo.com/docs/); the result fields are explained in [bank statement to JSON](https://parser.lekhavo.com/bank-statement-to-json/). 

Upload · shell

```
# 1. Register the upload (declare what you are sending)
curl -X POST "$PARSER_URL/v1/uploads" \
  -H "Authorization: Bearer $PARSER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "document_kind": "bank_statement",
    "filename": "statement.pdf",
    "content_type": "application/pdf",
    "size": 482113,
    "sha256": "<hex sha-256 of the file>"
  }'
# 201 -> { "id": "<upload_id>", "upload_url": "<upload URL>", "expires_at": "..." }

# 2. Send the file to the returned upload URL
curl -X PUT "<upload_url>" -H "Content-Type: application/pdf" \
  --data-binary @statement.pdf

# 3. Mark it complete (suffix and MIME are checked again here)
curl -X POST "$PARSER_URL/v1/uploads/<upload_id>/complete" \
  -H "Authorization: Bearer $PARSER_API_KEY"
# 200 -> { "id": "<upload_id>", "status": "ready" }
```

Job & result · shell

```
# 4. Create the job (Idempotency-Key is required)
curl -X POST "$PARSER_URL/v1/jobs" \
  -H "Authorization: Bearer $PARSER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ "upload_id": "<upload_id>" }'
# add "password": "..." for protected statements
# -> { "id": "<job_id>", "status": "queued", "document_kind": "bank_statement", ... }

# 5a. Poll if you would rather not take a webhook
curl "$PARSER_URL/v1/jobs/<job_id>" -H "Authorization: Bearer $PARSER_API_KEY"

# 5b. When the status is "succeeded", fetch the result
curl "$PARSER_URL/v1/jobs/<job_id>/result" -H "Authorization: Bearer $PARSER_API_KEY"
# -> { "download_url": "<short-lived>", "expires_in": ..., "schema_version": "2.0", ... }
```

Result · JSON (illustrative)

```
{
  "schema_version": "2.0",
  "meta": {
    "bank_name": "...", "ifsc_code": "...", "account_number": "XXXX1234",
    "detected_currency": "INR",
    "period": { "start": "2025-01-01", "end": "2025-01-31" },
    "opening_balance": "1000.00", "closing_balance": "1250.00"
  },
  "transactions": [{
    "date": "2025-01-15",
    "amount": "250.00",
    "description": "NEFT synthetic credit",
    "metadata": { "balance_after": "1250.00", "transaction_id": "synthetic-txn-1" }
  }]
}
```

Verify the webhook · Node

```
import { createHmac, timingSafeEqual } from "node:crypto";

// Signature = "sha256=" + HMAC-SHA256(secret, `${timestamp}.${eventId}.${rawBody}`)
export function verify(req, rawBody, secret) {
  const ts = req.headers["x-webhook-timestamp"];
  const id = req.headers["x-webhook-event-id"];
  const got = Buffer.from(req.headers["x-webhook-signature"] ?? "");
  const want = Buffer.from(
    "sha256=" + createHmac("sha256", secret).update(`${ts}.${id}.${rawBody}`).digest("hex"),
  );
  return got.length === want.length && timingSafeEqual(got, want);
}

// event_type: "job.completed"
// body.data: { job_id, status: "succeeded" | "failed_document" | "failed_internal", error_code }
```

04 · Built for your integration

## Confidence in every request.

Authenticated access

Your API key controls access to your project's uploads, jobs and results.

Safe request retries

Reuse the same idempotency key when retrying job creation to retrieve the existing job without creating another.

Verifiable notifications

Signed webhooks let you verify that a completion notification came from the parser service.

Validated files

File size, format and integrity are checked before a completed upload is accepted for processing.

Protected statement passwords

Passwords supplied for protected statements are encrypted when stored.

Controlled result access

Retrieve results with your API key. Returned download links expire after a short period.

Upload limits

## Know your limits before uploading.

Try the API with a one-time allowance of five uploads, up to 5 MB per file. Paid uploads have a standard 25 MiB file limit. Trial quotas and the other launch targets below are confirmed during onboarding. Contact us if your statements or processing volume need higher limits. 

Free trial

5 uploads totalOne-time allowance · launch target

Trial file size

5 MB per fileLaunch target

Paid file size

25 MiB per fileStandard early-access limit

Paid PDF length

200 pages per fileLaunch target

Paid CSV / Excel

50,000 data rows per fileLaunch target

Paid concurrent processing

5 jobs per customerLaunch target

Accepted bank statement formats: PDF, CSV, XLS and XLSX. Trial quotas, page, row and concurrency limits are launch targets. They are not yet enforced automatically. 

05 · Pricing

## Pay for extracted transactions.

Five free trial uploads to start. After that, prepaid credits at ₹1 per 100: a parsed statement uses 5 credits per transaction, with a 200-credit minimum, and failed parses use none. 

[See plans and pricing →](https://parser.lekhavo.com/pricing/)
