HDFC Bank Refund credit SMS format

HDFC_CREDIT_V2

Last updated

HDFC Bank·Refund / reversalCARDCreditNo sample

Quick answer

An HDFC Bank Refund / reversal credit SMS follows this pattern: “Alert! {currency}. {amount} refunded by {merchantName} on {date} & adjusted against HDFC Bank Credit Card {last_four} View updated balance here: {link}” 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

Alert! currency. amount refunded by merchantName on date & adjusted against HDFC Bank Credit Card View updated balance here: link

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

flags: i
^Alert! \s*(?<currency>[A-Z]{2,4})\s*\. \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* refunded by \s*(?<merchantName>[\s\S]+?)\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* & adjusted against HDFC Bank Credit Card \s*(?<last_four>\d{4})\s* View updated balance here: \s*(?<link>[\s\S]+)\s*
JSON/api/templates/hdfc-credit-v2
{
  "id": "hdfc-credit-v2",
  "name": "HDFC_CREDIT_V2",
  "bank": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "slug": "hdfc-bank"
  },
  "category": "Refund / reversal",
  "payment_mode": "CARD",
  "direction": "credit",
  "keywords": [
    "HDFC",
    "refunded",
    "Alert",
    "Credit",
    "Card"
  ],
  "template": "Alert! {currency}. {amount} refunded by {merchantName} on {date} & adjusted against HDFC Bank Credit Card {last_four} View updated balance here: {link}",
  "regex": "^Alert! \\s*(?<currency>[A-Z]{2,4})\\s*\\. \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* refunded by \\s*(?<merchantName>[\\s\\S]+?)\\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* & adjusted against HDFC Bank Credit Card \\s*(?<last_four>\\d{4})\\s* View updated balance here: \\s*(?<link>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": null,
  "verified": false,
  "source": "iris"
}

Other HDFC Refund / reversal formats

HDFC_CARD_REVERSAL_V1Refund / reversalCreditNo sample

Transaction Reversed!On HDFC Bank CREDIT Card Amt: currency.amount By merchantName On txnDate:txnTime

Frequently asked questions

What does an HDFC Bank Refund / reversal credit SMS look like?

It follows the pattern “Alert! {currency}. {amount} refunded by {merchantName} on {date} & adjusted against HDFC Bank Credit Card {last_four} View updated balance here: {link}”, 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 “HDFC”, “refunded”, “Alert”, “Credit”, “Card”. Then match it with this case-insensitive regular expression: ^Alert! \s*(?<currency>[A-Z]{2,4})\s*\. \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* refunded by \s*(?<merchantName>[\s\S]+?)\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* & adjusted against HDFC Bank Credit Card \s*(?<last_four>\d{4})\s* View updated balance here: \s*(?<link>[\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.

HDFC Bank Refund credit SMS format (HDFC_CREDIT_V2) | Iris SMS Templates