UPDATE: currency amount debited from HDFC Bank A/c maskedlast_four on date. For: DEBIT CARD ANNUAL FEE-date_2 upi_ref-ref
HDFC Bank Charges debit SMS format
HDFC_DEBIT_CARD_FEE_V2
Last updated
Quick answer
An HDFC Bank Charges / fees debit SMS follows this pattern: “UPDATE: {currency} {amount} debited from HDFC Bank A/c {masked}{last_four} on {date}. For: DEBIT CARD ANNUAL FEE-{skip}-{ref}” 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 a reference number; everything else is fixed text, so it can be matched with the regex below.
Template
UPDATE: currency amount debited from HDFC Bank A/c maskedlast_four on date. For: DEBIT CARD ANNUAL FEE-skip-ref
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
^UPDATE: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* debited from HDFC Bank A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\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*\. For: DEBIT CARD ANNUAL FEE-\s*(?<skip>[\s\S]+?)\s*-\s*(?<ref>[\s\S]+)\s*JSON/api/templates/hdfc-debit-card-fee-v2
{
"id": "hdfc-debit-card-fee-v2",
"name": "HDFC_DEBIT_CARD_FEE_V2",
"bank": {
"code": "HDFC",
"name": "HDFC Bank",
"slug": "hdfc-bank"
},
"category": "Charges / fees",
"payment_mode": "BANK",
"direction": "debit",
"keywords": [
"UPDATE",
"HDFC",
"DEBIT CARD ANNUAL FEE"
],
"template": "UPDATE: {currency} {amount} debited from HDFC Bank A/c {masked}{last_four} on {date}. For: DEBIT CARD ANNUAL FEE-{skip}-{ref}",
"regex": "^UPDATE: \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* debited from HDFC Bank A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\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*\\. For: DEBIT CARD ANNUAL FEE-\\s*(?<skip>[\\s\\S]+?)\\s*-\\s*(?<ref>[\\s\\S]+)\\s*",
"regex_flags": "i",
"sample": null,
"verified": false,
"source": "iris"
}Other HDFC Charges / fees formats
Frequently asked questions
What does an HDFC Bank Charges / fees debit SMS look like?
It follows the pattern “UPDATE: {currency} {amount} debited from HDFC Bank A/c {masked}{last_four} on {date}. For: DEBIT CARD ANNUAL FEE-{skip}-{ref}”, where the placeholders in braces are the amount, the last digits of the account or card, the date and a reference number.
How do I parse an HDFC Bank Charges / fees SMS?
First check that the message contains “UPDATE”, “HDFC”, “DEBIT CARD ANNUAL FEE”. Then match it with this case-insensitive regular expression: ^UPDATE: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* debited from HDFC Bank A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\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*\. For: DEBIT CARD ANNUAL FEE-\s*(?<skip>[\s\S]+?)\s*-\s*(?<ref>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date 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 Charges / fees SMS format?
Yes. HDFC Bank sends 2 different Charges / fees formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.