currency.amount without OTP/PIN HDFC Bank Card maskedlast_four At merchantName On date.Not U? Block&Reissue:Call support/SMS BLOCK CC last_four_2 to blockupi
HDFC Bank AutoPay debit SMS format
HDFC_UPI_MANDATE_V1
Last updated
Quick answer
An HDFC Bank AutoPay / mandate debit SMS follows this pattern: “UPI Mandate: Sent {currency}.{amount}from HDFC Bank A/c {last_four} To {merchantName} {date} Ref {upi_ref} Not You? Call {support}/SMS BLOCK UPI 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, the merchant or payee and a reference number; everything else is fixed text, so it can be matched with the regex below.
Template
UPI Mandate: Sent currency.amountfrom HDFC Bank A/c last_four To merchantName date Ref upi_ref Not You? Call support/SMS BLOCK UPI 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
^UPI Mandate: Sent \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s*from HDFC Bank A/c \s*(?<last_four>\d{4})\s* To \s*(?<merchantName>[\s\S]+?)\s* \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* Ref \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* Not You\? Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK UPI to \s*(?<blockupi>[\s\S]+)\s*JSON/api/templates/hdfc-upi-mandate-v1
{
"id": "hdfc-upi-mandate-v1",
"name": "HDFC_UPI_MANDATE_V1",
"bank": {
"code": "HDFC",
"name": "HDFC Bank",
"slug": "hdfc-bank"
},
"category": "AutoPay / mandate",
"payment_mode": "UPI",
"direction": "debit",
"keywords": [
"HDFC",
"Mandate",
"UPI",
"Sent"
],
"template": "UPI Mandate: Sent {currency}.{amount}from HDFC Bank A/c {last_four} To {merchantName} {date} Ref {upi_ref} Not You? Call {support}/SMS BLOCK UPI to {blockupi}",
"regex": "^UPI Mandate: Sent \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s*from HDFC Bank A/c \\s*(?<last_four>\\d{4})\\s* To \\s*(?<merchantName>[\\s\\S]+?)\\s* \\s*(?<date>(?:\\d{2}-[A-Z]{3}-\\d{2,4}|\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* Ref \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* Not You\\? Call \\s*(?<support>[\\s\\S]+?)\\s*/SMS BLOCK UPI to \\s*(?<blockupi>[\\s\\S]+)\\s*",
"regex_flags": "i",
"sample": null,
"verified": false,
"source": "iris"
}Other HDFC AutoPay / mandate formats
Amount Spent: currency.amount with HDFC Bank Credit Card last_four 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
Frequently asked questions
What does an HDFC Bank AutoPay / mandate debit SMS look like?
It follows the pattern “UPI Mandate: Sent {currency}.{amount}from HDFC Bank A/c {last_four} To {merchantName} {date} Ref {upi_ref} Not You? Call {support}/SMS BLOCK UPI to {blockupi}”, where the placeholders in braces are the amount, the last digits of the account or card, the date, the merchant or payee and a reference number.
How do I parse an HDFC Bank AutoPay / mandate SMS?
First check that the message contains “HDFC”, “Mandate”, “UPI”, “Sent”. Then match it with this case-insensitive regular expression: ^UPI Mandate: Sent \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s*from HDFC Bank A/c \s*(?<last_four>\d{4})\s* To \s*(?<merchantName>[\s\S]+?)\s* \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* Ref \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* Not You\? Call \s*(?<support>[\s\S]+?)\s*/SMS BLOCK UPI to \s*(?<blockupi>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date, the merchant or payee and a reference number.
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.