Union Bank of India A/c*last_four Cr currencyamount on date time by MB upi_ref merchantName, Bal currency2balance
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
UNION_MB_DEBIT_V1
Last updated
Quick answer
A Union Bank of India UPI debit SMS looks like this: “Union Bank of India A/c*1234 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” 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, 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.
Union Bank of India A/c*last_four Dr currencyamount on date time by MB upi_ref merchantName, Bal currency2balance
Union Bank of India A/c*1234 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
| Field | Extracted value |
|---|---|
| last_four | 1234 |
| currency | Rs |
| amount | 166.00 |
| date | 15-11-26 |
| time | 21:26 |
| upi_ref | 6600000000 |
| merchantName | SAMPLE STORE |
| currency2 | Rs |
| balance | 137.57 Not U?Call 18002333/SMS BLOCK 1234 to 0000000000 |
^Union Bank of India A/c\*\s*(?<last_four>\d{4})\s* Dr \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*/api/templates/union-mb-debit-v1{
"id": "union-mb-debit-v1",
"name": "UNION_MB_DEBIT_V1",
"bank": {
"code": "UNIONBANK",
"name": "Union Bank of India",
"slug": "union-bank-of-india"
},
"category": "UPI",
"payment_mode": "UPI",
"direction": "debit",
"keywords": [
"Union Bank of India",
"Dr",
"by MB"
],
"template": "Union Bank of India A/c*{last_four} Dr {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* Dr \\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 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",
"verified": true,
"source": "pennywise"
}Union Bank of India A/c*last_four Cr currencyamount on date time by MB upi_ref merchantName, Bal currency2balance
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
Union Bank of India A/c*1234 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 — 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.
First check that the message contains “Union Bank of India”, “Dr”, “by MB”. Then match it with this case-insensitive regular expression: ^Union Bank of India A/c\*\s*(?<last_four>\d{4})\s* Dr \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.
Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.
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.