Skip to content
Sign in

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

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

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 · API docs · Pricing · Console