Union Bank of India UPI credit SMS format

UNION_MB_CREDIT_V1

Last updated

Union Bank of India·UPICreditVerified

Quick answer

A Union Bank of India UPI credit SMS looks like this: “Union Bank of India A/c*1234 Cr Rs500.00 on 15-11-26 10:05 by MB 6600000001 SAMPLE SENDER, Bal Rs637.57 Not U?Call 0000000000” It is a credit (money received) alert. The parts that change in each message are the amount, the last digits of the account or card, the date, the merchant or payee, 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

Union Bank of India A/c* Cr currencyamount on date time by MB upi_ref merchantName, Bal currency2balance

Sample SMS

Template matches this sample

Union Bank of India A/c* Cr Rs500.00 on 15-11-26 10:05 by MB 6600000001 SAMPLE SENDER, Bal Rs637.57 Not U?Call 0000000000

FieldExtracted value
1234
currencyRs
amount500.00
date15-11-26
time10:05
upi_ref6600000001
merchantNameSAMPLE SENDER
currency2Rs
balance637.57 Not U?Call 0000000000

Compiled regex

flags: i
^Union Bank of India A/c\*\s*(?<last_four>\d{4})\s* Cr \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 MB \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* \s*(?<merchantName>[\s\S]+?)\s*, Bal \s*(?<currency2>[A-Z]{2,4})\s*\s*(?<balance>[\s\S]+)\s*
JSON/api/templates/union-mb-credit-v1
{
  "id": "union-mb-credit-v1",
  "name": "UNION_MB_CREDIT_V1",
  "bank": {
    "code": "UNIONBANK",
    "name": "Union Bank of India",
    "slug": "union-bank-of-india"
  },
  "category": "UPI",
  "payment_mode": "UPI",
  "direction": "credit",
  "keywords": [
    "Union Bank of India",
    "Cr",
    "by MB"
  ],
  "template": "Union Bank of India A/c*{last_four} Cr {currency}{amount} on {date} {time} by MB {upi_ref} {merchantName}, Bal {currency2}{balance}",
  "regex": "^Union Bank of India A/c\\*\\s*(?<last_four>\\d{4})\\s* Cr \\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 MB \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* \\s*(?<merchantName>[\\s\\S]+?)\\s*, Bal \\s*(?<currency2>[A-Z]{2,4})\\s*\\s*(?<balance>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": "Union Bank of India A/c*1234 Cr Rs500.00 on 15-11-26 10:05 by MB 6600000001 SAMPLE SENDER, Bal Rs637.57 Not U?Call 0000000000",
  "verified": true,
  "source": "pennywise"
}

Other Union UPI formats

UNION_MB_DEBIT_V1UPIDebitVerified

Union Bank of India A/c* Dr currencyamount on date time by MB upi_ref merchantName, Bal currency2balance

Union Bank of India A/c* Dr Rs166.00 on 15-11-26 21:26 by MB 6600000000 SAMPLE STORE, Bal Rs137.57 Not U?Call 18002333/SMS BLOCK 1234 to 0000000000

Frequently asked questions

What does a Union Bank of India UPI credit SMS look like?

Union Bank of India A/c*1234 Cr Rs500.00 on 15-11-26 10:05 by MB 6600000001 SAMPLE SENDER, Bal Rs637.57 Not U?Call 0000000000 — the parts that change are the amount, the last digits of the account or card, the date, the merchant or payee, a reference number and the available balance or credit limit.

How do I parse a Union Bank of India UPI SMS?

First check that the message contains “Union Bank of India”, “Cr”, “by MB”. Then match it with this case-insensitive regular expression: ^Union Bank of India A/c\*\s*(?<last_four>\d{4})\s* Cr \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 MB \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* \s*(?<merchantName>[\s\S]+?)\s*, 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, the merchant or payee, 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.

Does Union Bank of India use more than one UPI SMS format?

Yes. Union Bank of India sends 2 different UPI formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.

Union Bank of India UPI credit SMS format (UNION_MB_CREDIT_V1) | Iris SMS Templates