Kotak Mahindra Bank IMPS credit SMS format

KOTAK_IMPS_RECEIVED_V1

Last updated

Kotak Mahindra Bank·IMPSBANKCreditVerified

Quick answer

A Kotak Mahindra Bank IMPS credit SMS looks like this: “Received Rs. 329.00 on 15-04-26 in your Kotak Bank A/C x2451 by an A/C linked to mobile x111. IMPS Ref no 610511412340.” 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 a reference number; everything else is fixed text, so it can be matched with the regex below.

Template

Received currency. amount on date in your Kotak Bank A/C x by an A/C linked to mobile skip. IMPS Ref no upi_ref.

Sample SMS

Template matches this sample

Received Rs. 329.00 on 15-04-26 in your Kotak Bank A/C x by an A/C linked to mobile x111. IMPS Ref no 610511412340.

FieldExtracted value
currencyRs
amount329.00
date15-04-26
2451
skipx111
upi_ref610511412340

Compiled regex

flags: i
^Received \s*(?<currency>[A-Z]{2,4})\s*\. \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\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* in your Kotak Bank A/C x\s*(?<last_four>\d{4})\s* by an A/C linked to mobile \s*(?<skip>[\s\S]+?)\s*\. IMPS Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\.
JSON/api/templates/kotak-imps-received-v1
{
  "id": "kotak-imps-received-v1",
  "name": "KOTAK_IMPS_RECEIVED_V1",
  "bank": {
    "code": "KOTAK",
    "name": "Kotak Mahindra Bank",
    "slug": "kotak-mahindra-bank"
  },
  "category": "IMPS",
  "payment_mode": "BANK",
  "direction": "credit",
  "keywords": [
    "Received",
    "Kotak Bank A/C",
    "IMPS Ref no"
  ],
  "template": "Received {currency}. {amount} on {date} in your Kotak Bank A/C x{last_four} by an A/C linked to mobile {skip}. IMPS Ref no {upi_ref}.",
  "regex": "^Received \\s*(?<currency>[A-Z]{2,4})\\s*\\. \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\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* in your Kotak Bank A/C x\\s*(?<last_four>\\d{4})\\s* by an A/C linked to mobile \\s*(?<skip>[\\s\\S]+?)\\s*\\. IMPS Ref no \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\.",
  "regex_flags": "i",
  "sample": "Received Rs. 329.00 on 15-04-26 in your Kotak Bank A/C x2451 by an A/C linked to mobile x111. IMPS Ref no 610511412340.",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a Kotak Mahindra Bank IMPS credit SMS look like?

Received Rs. 329.00 on 15-04-26 in your Kotak Bank A/C x2451 by an A/C linked to mobile x111. IMPS Ref no 610511412340. — the parts that change are the amount, the last digits of the account or card, the date and a reference number.

How do I parse a Kotak Mahindra Bank IMPS SMS?

First check that the message contains “Received”, “Kotak Bank A/C”, “IMPS Ref no”. Then match it with this case-insensitive regular expression: ^Received \s*(?<currency>[A-Z]{2,4})\s*\. \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\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* in your Kotak Bank A/C x\s*(?<last_four>\d{4})\s* by an A/C linked to mobile \s*(?<skip>[\s\S]+?)\s*\. IMPS Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\.. The named groups give you the amount, the last digits of the account or card, the date and a reference number.

Is this Kotak Mahindra Bank SMS format verified?

Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.

Kotak Mahindra Bank IMPS credit SMS format (KOTAK_IMPS_RECEIVED_V1) | Iris SMS Templates