HDFC Bank AutoPay debit SMS format

HDFC_CARD_MANDATE_V1

Last updated

HDFC Bank·AutoPay / mandateCARDDebitNo sample

Quick answer

An HDFC Bank AutoPay / mandate debit SMS follows this pattern: “{currency}.{amount} without OTP/PIN HDFC Bank Card {masked}{last_four} At {merchantName} On {date}.Not U? Block&Reissue:Call {support}/SMS BLOCK CC {last_four_2} 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

currency.amount without OTP/PIN HDFC Bank Card At merchantName On date.Not U? Block&Reissue:Call support/SMS BLOCK CC last_four_2 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
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* without OTP/PIN HDFC Bank Card \s*(?<masked>[\s\S]+?)\s*\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 U\? Block&Reissue:Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK CC \s*(?<last_four_2>[\s\S]+?)\s* to \s*(?<blockupi>[\s\S]+)\s*
JSON/api/templates/hdfc-card-mandate-v1
{
  "id": "hdfc-card-mandate-v1",
  "name": "HDFC_CARD_MANDATE_V1",
  "bank": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "slug": "hdfc-bank"
  },
  "category": "AutoPay / mandate",
  "payment_mode": "CARD",
  "direction": "debit",
  "keywords": [
    "HDFC",
    "OTP/PIN",
    "without",
    "Card"
  ],
  "template": "{currency}.{amount} without OTP/PIN HDFC Bank Card {masked}{last_four} At {merchantName} On {date}.Not U? Block&Reissue:Call {support}/SMS BLOCK CC {last_four_2} to {blockupi}",
  "regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* without OTP/PIN HDFC Bank Card \\s*(?<masked>[\\s\\S]+?)\\s*\\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 U\\? Block&Reissue:Call \\s*(?<support>[\\s\\S]+?)\\s*/SMS BLOCK CC \\s*(?<last_four_2>[\\s\\S]+?)\\s* to \\s*(?<blockupi>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": null,
  "verified": false,
  "source": "iris"
}

Other HDFC AutoPay / mandate formats

HDFC_CARD_MANDATE_V2AutoPay / mandateDebitNo sample

Amount Spent: currency.amount with HDFC Bank Credit Card at merchantName on date This transaction was completed without any additional authentication factor mandated by RBI. Not You? To Block and Reissue, please call support or SMS BLOCK CC last_four2 to blockupi

HDFC_UPI_MANDATE_V1AutoPay / mandateDebitNo sample

UPI Mandate: Sent currency.amountfrom HDFC Bank A/c To merchantName date Ref upi_ref Not You? Call support/SMS BLOCK UPI to blockupi

Frequently asked questions

What does an HDFC Bank AutoPay / mandate debit SMS look like?

It follows the pattern “{currency}.{amount} without OTP/PIN HDFC Bank Card {masked}{last_four} At {merchantName} On {date}.Not U? Block&Reissue:Call {support}/SMS BLOCK CC {last_four_2} 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 AutoPay / mandate SMS?

First check that the message contains “HDFC”, “OTP/PIN”, “without”, “Card”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* without OTP/PIN HDFC Bank Card \s*(?<masked>[\s\S]+?)\s*\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 U\? Block&Reissue:Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK CC \s*(?<last_four_2>[\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 AutoPay / mandate SMS format?

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

HDFC Bank AutoPay debit SMS format (HDFC_CARD_MANDATE_V1) | Iris SMS Templates