HDFC Bank EMI debit SMS format

HDFC_EMI_DEBIT_V1

Last updated

HDFC Bank·EMI / ACH / loanBANKDebitNo sample

Quick answer

An HDFC Bank EMI / ACH / loan debit SMS follows this pattern: “UPDATE: {currency} {amount} debited from HDFC Bank XX{last_four} on {date}. Info: EMI {upi_ref} {metadata}. Avl bal:INR {balance}” 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, a reference number and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.

Template

UPDATE: currency amount debited from HDFC Bank XX on date. Info: EMI upi_ref metadata. Avl bal:INR 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

flags: i
^UPDATE: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* debited from HDFC Bank XX\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*\. Info: EMI \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* \s*(?<metadata>[\s\S]+?)\s*\. Avl bal:INR \s*(?<balance>[\s\S]+)\s*
JSON/api/templates/hdfc-emi-debit-v1
{
  "id": "hdfc-emi-debit-v1",
  "name": "HDFC_EMI_DEBIT_V1",
  "bank": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "slug": "hdfc-bank"
  },
  "category": "EMI / ACH / loan",
  "payment_mode": "BANK",
  "direction": "debit",
  "keywords": [
    "UPDATE",
    "debited",
    "HDFC",
    "EMI"
  ],
  "template": "UPDATE: {currency} {amount} debited from HDFC Bank XX{last_four} on {date}. Info: EMI {upi_ref} {metadata}. Avl bal:INR {balance}",
  "regex": "^UPDATE: \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* debited from HDFC Bank XX\\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*\\. Info: EMI \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* \\s*(?<metadata>[\\s\\S]+?)\\s*\\. Avl bal:INR \\s*(?<balance>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": null,
  "verified": false,
  "source": "iris"
}

Frequently asked questions

What does an HDFC Bank EMI / ACH / loan debit SMS look like?

It follows the pattern “UPDATE: {currency} {amount} debited from HDFC Bank XX{last_four} on {date}. Info: EMI {upi_ref} {metadata}. Avl bal:INR {balance}”, where the placeholders in braces are the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit.

How do I parse an HDFC Bank EMI / ACH / loan SMS?

First check that the message contains “UPDATE”, “debited”, “HDFC”, “EMI”. 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 XX\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*\. Info: EMI \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* \s*(?<metadata>[\s\S]+?)\s*\. Avl bal:INR \s*(?<balance>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date, a reference number 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.

HDFC Bank EMI debit SMS format (HDFC_EMI_DEBIT_V1) | Iris SMS Templates