HDFC Bank IMPS credit SMS format

HDFC_IMPS_MONEY_RECEIVED_V1

Last updated

HDFC Bank·IMPSBANKCreditNo sample

Quick answer

An HDFC Bank IMPS credit SMS follows this pattern: “Money Received - {currency} {amount} in your HDFC Bank A/c {masked}{last_four} on {date} by A/c linked to mobile no {skip} (IMPS Ref No. {upi_ref}) Avl bal: {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, 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

Money Received - currency amount in your HDFC Bank A/c on date by A/c linked to mobile no skip (IMPS Ref No. upi_ref) Avl bal: 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

flags: i
^Money Received - \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* in your 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* by A/c linked to mobile no \s*(?<skip>[\s\S]+?)\s* \(IMPS Ref No\. \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\) Avl bal: \s*(?<currency2>[A-Z]{2,4})\s* \s*(?<balance>[\s\S]+)\s*
JSON/api/templates/hdfc-imps-money-received-v1
{
  "id": "hdfc-imps-money-received-v1",
  "name": "HDFC_IMPS_MONEY_RECEIVED_V1",
  "bank": {
    "code": "HDFC",
    "name": "HDFC Bank",
    "slug": "hdfc-bank"
  },
  "category": "IMPS",
  "payment_mode": "BANK",
  "direction": "credit",
  "keywords": [
    "Money Received",
    "HDFC Bank",
    "IMPS Ref No"
  ],
  "template": "Money Received - {currency} {amount} in your HDFC Bank A/c {masked}{last_four} on {date} by A/c linked to mobile no {skip} (IMPS Ref No. {upi_ref}) Avl bal: {currency2} {balance}",
  "regex": "^Money Received - \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* in your 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* by A/c linked to mobile no \\s*(?<skip>[\\s\\S]+?)\\s* \\(IMPS Ref No\\. \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\) Avl bal: \\s*(?<currency2>[A-Z]{2,4})\\s* \\s*(?<balance>[\\s\\S]+)\\s*",
  "regex_flags": "i",
  "sample": null,
  "verified": false,
  "source": "iris"
}

Other HDFC IMPS formats

HDFC_IMPS_RECEIVED_V1IMPSCreditNo sample

Received! currency amount in HDFC Bank A/c On date For IMPS -merchantName- upi_ref Avl bal currency2 balance

Frequently asked questions

What does an HDFC Bank IMPS credit SMS look like?

It follows the pattern “Money Received - {currency} {amount} in your HDFC Bank A/c {masked}{last_four} on {date} by A/c linked to mobile no {skip} (IMPS Ref No. {upi_ref}) Avl bal: {currency2} {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 IMPS SMS?

First check that the message contains “Money Received”, “HDFC Bank”, “IMPS Ref No”. Then match it with this case-insensitive regular expression: ^Money Received - \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* in your 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* by A/c linked to mobile no \s*(?<skip>[\s\S]+?)\s* \(IMPS Ref No\. \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\) Avl bal: \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, 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.

Does HDFC Bank use more than one IMPS SMS format?

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

HDFC Bank IMPS credit SMS format (HDFC_IMPS_MONEY_RECEIVED_V1) | Iris SMS Templates