# Bank of Baroda Statement Parser API (PDF to JSON)

> Bank of Baroda statement to JSON API for PDF and Excel. PDFs printed newest first come back oldest first, with IFSC and a running balance on each row.

Source: https://parser.lekhavo.com/banks/bank-of-baroda/

[Home](https://parser.lekhavo.com/) / [Supported banks](https://parser.lekhavo.com/banks/) / Bank of Baroda 

# Bank of Baroda statement parser API

Bank of Baroda prints its PDF statements newest first. The parser turns them around, so the transactions come back oldest first and each running balance follows from the one before it. It reads the PDF word by word, using the header row to find where each column starts.

## Formats and columns

* **PDF**: TRAN DATE, VALUE DATE, NARRATION, CHQ.NO., WITHDRAWAL(DR), DEPOSIT(CR), BALANCE(INR); the withdrawal, deposit and balance column edges are set halfway between their headings.
* **Excel**: .xls or .xlsx export, with separate withdrawal and deposit columns or a single amount column; rows keep the export's order.

## How the API recognises it

A PDF scores on BANK OF BARODA or the BARB0 code with the heading lines TRAN DATE VALUE DATE NARRATION and WITHDRAWAL(DR) DEPOSIT(CR) BALANCE(INR). The Excel export scores on Main Account Holder Name, Account Number :, Customer Id: and BARB0.

## Dates and amounts

PDF dates are DD/MM/YYYY, and the balance carries a Cr or Dr suffix (12,500.00Cr); Dr comes out negative, in the PDF and the Excel export. A figure is a withdrawal or a deposit according to which column it ends in. The Excel export's dates must be DD/MM/YY or DD/MM/YYYY text.

## Account details

From a PDF: the account number after Account No: (a masked number is accepted), the IFSC after IFSC Code: and the period from Statement Period from … to …. From Excel: account number and IFSC from the label cells at the top, with a period that runs from the first to the last row.

## Opening and closing balances

Opening and closing balances are worked out from the first and last rows once the rows are oldest first. The PDF's CHQ.NO. column is not read, so its rows carry the running balance only.

## What the parser handles

* Every PDF is reversed: Bank of Baroda prints newest first, and the JSON comes back oldest first.
* A narration over two lines, with the amount on the second, becomes one row.
* Contact-us text, page numbers, page totals, opening and closing balance lines, statement summaries and brought or carried forward lines are skipped.
* A PDF row is kept only when it has a balance and exactly one of withdrawal or deposit.

## Sample Bank of Baroda result

One made-up Bank of Baroda row, as printed:

```
10/04/2025  10/04/2025  NEFT-SAMPLE DISTRIBUTORS   2,750.00      30,415.20Cr
```

And its result file:

```
{
  "document_kind": "bank_statement",
  "result": {
    "meta": {
      "account_number": "XXXXXXXXXX0712",
      "bank_name": "BANK OF BARODA",
      "closing_balance": "36515.20",
      "detected_currency": "INR",
      "ifsc_code": "BARB0XXXXXX",
      "opening_balance": "33165.20",
      "parser_name": "bank-of-baroda",
      "parser_version": "0.1.0",
      "period": {
        "end": "2025-04-14",
        "start": "2025-04-10"
      },
      "source": "file_upload"
    },
    "schema_version": "2.0",
    "transactions": [
      {
        "amount": "-2750.00",
        "date": "2025-04-10",
        "description": "NEFT-SAMPLE DISTRIBUTORS",
        "metadata": {
          "balance_after": "30415.20"
        }
      },
      {
        "amount": "6100.00",
        "date": "2025-04-14",
        "description": "IMPS/DEMO WHOLESALE/REFUND",
        "metadata": {
          "balance_after": "36515.20"
        }
      }
    ]
  },
  "schema_version": "2.0"
}
```

 Protected PDF, .xls and .xlsx files open with the password you send with the job. JSON only: no Excel, CSV or Tally export. [Result fields](https://parser.lekhavo.com/bank-statement-to-json/) · [API docs](https://parser.lekhavo.com/docs/) · [Pricing](https://parser.lekhavo.com/pricing/) · [Console](https://parser.lekhavo.com/app/)
