HDFC Bank Card bill payment credit SMS format
HDFC_CREDIT_CARD_PAYMENT_V1
Last updated
Quick answer
An HDFC Bank Card bill payment credit SMS follows this pattern: “DEAR HDFCBANK CARDMEMBER, PAYMENT OF {currency}.{amount} RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH {last_four} ON {date}.YOUR AVAILABLE LIMIT IS {currency2}.{balance}” 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 available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.
Template
DEAR HDFCBANK CARDMEMBER, PAYMENT OF currency.amount RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH last_four ON date.YOUR AVAILABLE LIMIT IS currency2.balance
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
^DEAR HDFCBANK CARDMEMBER, PAYMENT OF \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH \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*\.YOUR AVAILABLE LIMIT IS \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+)\s*JSON/api/templates/hdfc-credit-card-payment-v1
{
"id": "hdfc-credit-card-payment-v1",
"name": "HDFC_CREDIT_CARD_PAYMENT_V1",
"bank": {
"code": "HDFC",
"name": "HDFC Bank",
"slug": "hdfc-bank"
},
"category": "Card bill payment",
"payment_mode": "CARD",
"direction": "credit",
"keywords": [
"HDFCBANK",
"CREDIT",
"RECEIVED"
],
"template": "DEAR HDFCBANK CARDMEMBER, PAYMENT OF {currency}.{amount} RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH {last_four} ON {date}.YOUR AVAILABLE LIMIT IS {currency2}.{balance}",
"regex": "^DEAR HDFCBANK CARDMEMBER, PAYMENT OF \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH \\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*\\.YOUR AVAILABLE LIMIT IS \\s*(?<currency2>[A-Z]{2,4})\\s*\\.\\s*(?<balance>[\\s\\S]+)\\s*",
"regex_flags": "i",
"sample": null,
"verified": false,
"source": "iris"
}Frequently asked questions
What does an HDFC Bank Card bill payment credit SMS look like?
It follows the pattern “DEAR HDFCBANK CARDMEMBER, PAYMENT OF {currency}.{amount} RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH {last_four} ON {date}.YOUR AVAILABLE LIMIT IS {currency2}.{balance}”, where the placeholders in braces are the amount, the last digits of the account or card, the date and the available balance or credit limit.
How do I parse an HDFC Bank Card bill payment SMS?
First check that the message contains “HDFCBANK”, “CREDIT”, “RECEIVED”. Then match it with this case-insensitive regular expression: ^DEAR HDFCBANK CARDMEMBER, PAYMENT OF \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* RECEIVED TOWARDS YOUR CREDIT CARD ENDING WITH \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*\.YOUR AVAILABLE LIMIT IS \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date and the available balance or credit limit.
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.