Bank of Baroda IMPS credit SMS format
BOB_IMPS_CREDIT_V1
Last updated
Quick answer
A Bank of Baroda IMPS credit SMS looks like this: “Rs.2500.00 credited to A/c XX456789 via IMPS/518233445566 by JOHN DOE. AvlBal:Rs25000.00 -Bank of Baroda” 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 merchant or payee and a reference number; everything else is fixed text, so it can be matched with the regex below.
Template
currency.amount credited to A/c maskedlast_four via IMPS/upi_ref by merchantName. AvlBal:skip -Bank of Baroda
Sample SMS
Rs.2500.00 credited to A/c XX456789 via IMPS/518233445566 by JOHN DOE. AvlBal:Rs25000.00 -Bank of Baroda
| Field | Extracted value |
|---|---|
| currency | Rs |
| amount | 2500.00 |
| masked | XX45 |
| last_four | 6789 |
| upi_ref | 518233445566 |
| merchantName | JOHN DOE |
| skip | Rs25000.00 |
Compiled regex
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* credited to A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* via IMPS/\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* by \s*(?<merchantName>[\s\S]+?)\s*\. AvlBal:\s*(?<skip>[\s\S]+?)\s* -Bank of BarodaJSON/api/templates/bob-imps-credit-v1
{
"id": "bob-imps-credit-v1",
"name": "BOB_IMPS_CREDIT_V1",
"bank": {
"code": "BOB",
"name": "Bank of Baroda",
"slug": "bank-of-baroda"
},
"category": "IMPS",
"payment_mode": "BANK",
"direction": "credit",
"keywords": [
"credited to A/c",
"via IMPS",
"Bank of Baroda"
],
"template": "{currency}.{amount} credited to A/c {masked}{last_four} via IMPS/{upi_ref} by {merchantName}. AvlBal:{skip} -Bank of Baroda",
"regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* credited to A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* via IMPS/\\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* by \\s*(?<merchantName>[\\s\\S]+?)\\s*\\. AvlBal:\\s*(?<skip>[\\s\\S]+?)\\s* -Bank of Baroda",
"regex_flags": "i",
"sample": "Rs.2500.00 credited to A/c XX456789 via IMPS/518233445566 by JOHN DOE. AvlBal:Rs25000.00 -Bank of Baroda",
"verified": true,
"source": "pennywise"
}Frequently asked questions
What does a Bank of Baroda IMPS credit SMS look like?
Rs.2500.00 credited to A/c XX456789 via IMPS/518233445566 by JOHN DOE. AvlBal:Rs25000.00 -Bank of Baroda — the parts that change are the amount, the last digits of the account or card, the merchant or payee and a reference number.
How do I parse a Bank of Baroda IMPS SMS?
First check that the message contains “credited to A/c”, “via IMPS”, “Bank of Baroda”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* credited to A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* via IMPS/\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* by \s*(?<merchantName>[\s\S]+?)\s*\. AvlBal:\s*(?<skip>[\s\S]+?)\s* -Bank of Baroda. The named groups give you the amount, the last digits of the account or card, the merchant or payee and a reference number.
Is this Bank of Baroda 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.