Union Bank of India Account debit SMS format

UNION_MOBBK_DEBIT_V1

Last updated

Quick answer

A Union Bank of India Account debit / credit debit SMS looks like this: “A/c *1234 Debited for Rs:100.00 on 11-08-2025 18:28:02 by Mob Bk ref no 123456789000 Avl Bal Rs:12345.67” It is a debit (money spent or sent) alert. The parts that change in each message are the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.

Template

A/c * Debited for currency:amount on date time by Mob Bk ref no ref Avl Bal currency2:balance

Sample SMS

Template matches this sample

A/c * Debited for Rs:100.00 on 11-08-2025 18:28:02 by Mob Bk ref no 123456789000 Avl Bal Rs:12345.67

FieldExtracted value
1234
currencyRs
amount100.00
date11-08-2025
time18:28:02
ref123456789000
currency2Rs
balance12345.67

Compiled regex

flags: i
^A/c \*\s*(?<last_four>\d{4})\s* Debited for \s*(?<currency>[A-Z]{2,4})\s*:\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* on \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* by Mob Bk ref no \s*(?<ref>[\s\S]+?)\s* Avl Bal \s*(?<currency2>[A-Z]{2,4})\s*:\s*(?<balance>[\s\S]+)\s*
JSON/api/templates/union-mobbk-debit-v1
{
  "id": "union-mobbk-debit-v1",
  "name": "UNION_MOBBK_DEBIT_V1",
  "bank": {
    "code": "UNIONBANK",
    "name": "Union Bank of India",
    "slug": "union-bank-of-india"
  },
  "category": "Account debit / credit",
  "payment_mode": "BANK",
  "direction": "debit",
  "keywords": [
    "Debited for",
    "Mob Bk ref no"
  ],
  "template": "A/c *{last_four} Debited for {currency}:{amount} on {date} {time} by Mob Bk ref no {ref} Avl Bal {currency2}:{balance}",
  "regex": "^A/c \\*\\s*(?<last_four>\\d{4})\\s* Debited for \\s*(?<currency>[A-Z]{2,4})\\s*:\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* on \\s*(?<date>(?:\\d{2}-[A-Z]{3}-\\d{2,4}|\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* \\s*(?<time>(?:\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* by Mob Bk ref no \\s*(?<ref>[\\s\\S]+?)\\s* Avl Bal \\s*(?<currency2>[A-Z]{2,4})\\s*:\\s*(?<balance>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": "A/c *1234 Debited for Rs:100.00 on 11-08-2025 18:28:02 by Mob Bk ref no 123456789000 Avl Bal Rs:12345.67",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a Union Bank of India Account debit / credit debit SMS look like?

A/c *1234 Debited for Rs:100.00 on 11-08-2025 18:28:02 by Mob Bk ref no 123456789000 Avl Bal Rs:12345.67 — the parts that change are the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit.

How do I parse a Union Bank of India Account debit / credit SMS?

First check that the message contains “Debited for”, “Mob Bk ref no”. Then match it with this case-insensitive regular expression: ^A/c \*\s*(?<last_four>\d{4})\s* Debited for \s*(?<currency>[A-Z]{2,4})\s*:\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* on \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* by Mob Bk ref no \s*(?<ref>[\s\S]+?)\s* Avl Bal \s*(?<currency2>[A-Z]{2,4})\s*:\s*(?<balance>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit.

Is this Union Bank of India SMS format verified?

Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.

Union Bank of India Account debit SMS format (UNION_MOBBK_DEBIT_V1) | Iris SMS Templates