HDFC Bank Card spend debit SMS format

HDFC_UPI_V3

Last updated

HDFC Bank·Card spendCARDDebitNo sample

Quick answer

An HDFC Bank Card spend debit SMS follows this pattern: “Spent {currency}.{amount} On HDFC Bank Card {last_four} At {merchantName} On {date}.Not You? To Block+Reissue Call {support}/SMS BLOCK CC {last_four_digits} to {blockupi}” 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 and the merchant or payee; everything else is fixed text, so it can be matched with the regex below.

Template

Spent currency.amount On HDFC Bank Card At merchantName On date.Not You? To Block+Reissue Call support/SMS BLOCK CC last_four_digits to blockupi

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
^Spent \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* On HDFC Bank Card \s*(?<last_four>\d{4})\s* At \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*\.Not You\? To Block\+Reissue Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK CC \s*(?<last_four_digits>[\s\S]+?)\s* to \s*(?<blockupi>[\s\S]+)\s*
JSON/api/templates/hdfc-upi-v3
{
  "id": "hdfc-upi-v3",
  "name": "HDFC_UPI_V3",
  "bank": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "slug": "hdfc-bank"
  },
  "category": "Card spend",
  "payment_mode": "CARD",
  "direction": "debit",
  "keywords": [
    "Spent",
    "Card",
    "HDFC"
  ],
  "template": "Spent {currency}.{amount} On HDFC Bank Card {last_four} At {merchantName} On {date}.Not You? To Block+Reissue Call {support}/SMS BLOCK CC {last_four_digits} to {blockupi}",
  "regex": "^Spent \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* On HDFC Bank Card \\s*(?<last_four>\\d{4})\\s* At \\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*\\.Not You\\? To Block\\+Reissue Call \\s*(?<support>[\\s\\S]+?)\\s*/SMS BLOCK CC \\s*(?<last_four_digits>[\\s\\S]+?)\\s* to \\s*(?<blockupi>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": null,
  "verified": false,
  "source": "iris"
}

Other HDFC Card spend formats

HDFC_CARD_SPENT_V4Card spendDebitNo sample

currency.amount spent on HDFC Bank Card at merchantName on txnDate:txnTime.Not U?

Frequently asked questions

What does an HDFC Bank Card spend debit SMS look like?

It follows the pattern “Spent {currency}.{amount} On HDFC Bank Card {last_four} At {merchantName} On {date}.Not You? To Block+Reissue Call {support}/SMS BLOCK CC {last_four_digits} to {blockupi}”, 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 Card spend SMS?

First check that the message contains “Spent”, “Card”, “HDFC”. Then match it with this case-insensitive regular expression: ^Spent \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* On HDFC Bank Card \s*(?<last_four>\d{4})\s* At \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*\.Not You\? To Block\+Reissue Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK CC \s*(?<last_four_digits>[\s\S]+?)\s* to \s*(?<blockupi>[\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 Card spend SMS format?

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

HDFC Bank Card spend debit SMS format (HDFC_UPI_V3) | Iris SMS Templates