Alert! currency. amount refunded by merchantName on date & adjusted against HDFC Bank Credit Card last_four View updated balance here: link
HDFC Bank Refund credit SMS format
HDFC_CARD_REVERSAL_V1
Last updated
Quick answer
An HDFC Bank Refund / reversal credit SMS follows this pattern: “Transaction Reversed!On HDFC Bank CREDIT Card {masked}{last_four} Amt: {currency}.{amount} By {merchantName} On {txnDate}:{txnTime}” 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 and the merchant or payee; everything else is fixed text, so it can be matched with the regex below.
Template
Transaction Reversed!On HDFC Bank CREDIT Card maskedlast_four Amt: currency.amount By merchantName On txnDate:txnTime
Sample SMS
No public sample for this format yet. It comes from a production parser, so it has matched real messages — but there is no redacted copy to show.
Compiled regex
^Transaction Reversed!On HDFC Bank CREDIT Card \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* Amt: \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* By \s*(?<merchantName>[\s\S]+?)\s* On \s*(?<txnDate>[\s\S]+?)\s*:\s*(?<txnTime>[\s\S]+)\s*JSON/api/templates/hdfc-card-reversal-v1
{
"id": "hdfc-card-reversal-v1",
"name": "HDFC_CARD_REVERSAL_V1",
"bank": {
"code": "HDFC",
"name": "HDFC Bank",
"slug": "hdfc-bank"
},
"category": "Refund / reversal",
"payment_mode": "CARD",
"direction": "credit",
"keywords": [
"Transaction Reversed",
"HDFC Bank",
"Card"
],
"template": "Transaction Reversed!On HDFC Bank CREDIT Card {masked}{last_four} Amt: {currency}.{amount} By {merchantName} On {txnDate}:{txnTime}",
"regex": "^Transaction Reversed!On HDFC Bank CREDIT Card \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* Amt: \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* By \\s*(?<merchantName>[\\s\\S]+?)\\s* On \\s*(?<txnDate>[\\s\\S]+?)\\s*:\\s*(?<txnTime>[\\s\\S]+)\\s*",
"regex_flags": "i",
"sample": null,
"verified": false,
"source": "iris"
}Other HDFC Refund / reversal formats
Frequently asked questions
What does an HDFC Bank Refund / reversal credit SMS look like?
It follows the pattern “Transaction Reversed!On HDFC Bank CREDIT Card {masked}{last_four} Amt: {currency}.{amount} By {merchantName} On {txnDate}:{txnTime}”, where the placeholders in braces are the amount, the last digits of the account or card, the date and the merchant or payee.
How do I parse an HDFC Bank Refund / reversal SMS?
First check that the message contains “Transaction Reversed”, “HDFC Bank”, “Card”. Then match it with this case-insensitive regular expression: ^Transaction Reversed!On HDFC Bank CREDIT Card \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* Amt: \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* By \s*(?<merchantName>[\s\S]+?)\s* On \s*(?<txnDate>[\s\S]+?)\s*:\s*(?<txnTime>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date and the merchant or payee.
Is this HDFC Bank SMS format verified?
It comes from a production SMS parser and matches real messages, but there is no public redacted sample to show yet.
Does HDFC Bank use more than one Refund / reversal SMS format?
Yes. HDFC Bank sends 2 different Refund / reversal formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.