# Union Bank of India Statement Parser API (PDF to JSON)

> Union Bank of India statement parser API: savings and loan account PDFs to JSON, with the bank's transaction ID kept on every row.

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

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

# Union Bank of India statement parser API

Union Bank of India prints a transaction ID (Tran Id) on every row. The parser keeps it as transaction\_id, which makes matching against other records easier. Savings and loan account statements are both read.

## Formats and columns

* **PDF**: savings statement with Date, Remarks, Tran Id, UTR Number, Instrument Id, Withdrawals, Deposits and Balance, or loan statement with Date, Remarks, Tran Id, Instrument Id, Amount and Balance.

## How the API recognises it

A PDF scores on UNION BANK OF INDIA or the UBIN code, Statement of Account, and the Date, Remarks, Tran Id, Withdrawals, Deposits and Balance headings.

## Dates and amounts

Dates are DD/MM/YYYY or DD-MM-YYYY. A savings statement has its own Withdrawals and Deposits columns; on a loan statement each amount carries (Dr) or (Cr), which decides its sign.

## Account details

Account number, IFSC and the period from the From - … To … line, and the Tran Id of each row as transaction\_id.

## Opening and closing balances

Union Bank opening and closing balances are not reported (0.00). Every row carries its running balance, so the last row's balance\_after is the closing figure, and the first row's balance less its amount is the opening one. Loan balances keep their minus sign.

## What the parser handles

* The first table sets the mode: Withdrawals and Deposits headings mean savings; Amount, Balance and Remarks mean loan.
* Later tables are read when they repeat the matching heading row.
* Remarks that wrap across lines are joined, and rows that do not start with a date are dropped.

## Sample Union Bank of India result

One made-up Union Bank of India row, as printed:

```
08/04/2025  UPI:512300000004:DEMO FUEL  S00000101  -  -  1,850.00  -  19,150.00
```

And its result file:

```
{
  "document_kind": "bank_statement",
  "result": {
    "meta": {
      "account_number": "XXXXXXXXXXXX2290",
      "bank_name": "UNION BANK OF INDIA",
      "closing_balance": "0.00",
      "detected_currency": "INR",
      "ifsc_code": "UBIN0XXXXXX",
      "opening_balance": "0.00",
      "parser_name": "union-bank-of-india",
      "parser_version": "0.1.0",
      "period": {
        "end": "2025-04-23",
        "start": "2025-04-08"
      },
      "source": "file_upload"
    },
    "schema_version": "2.0",
    "transactions": [
      {
        "amount": "-1850.00",
        "date": "2025-04-08",
        "description": "UPI:512300000004:DEMO FUEL",
        "metadata": {
          "balance_after": "19150.00",
          "transaction_id": "S00000101"
        }
      },
      {
        "amount": "12000.00",
        "date": "2025-04-16",
        "description": "NEFT:SAMPLE CONSULTANTS:FEB BILL",
        "metadata": {
          "balance_after": "31150.00",
          "transaction_id": "S00000102"
        }
      },
      {
        "amount": "-450.00",
        "date": "2025-04-23",
        "description": "SMS AND ATM CHARGES",
        "metadata": {
          "balance_after": "30700.00",
          "transaction_id": "S00000103"
        }
      }
    ]
  },
  "schema_version": "2.0"
}
```

 A protected PDF opens 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/)
