---
title: Search Bank by MICR code
slug: api-marketplace/search-bank-by-micr-code
description: Find bank details using a specific MICR code with the Search Bank by MICR Code API provided by Signzy Technologies. Get information on bank name, address, state, district, branch, contact details, IFSC code, and more. Perfect for banking, payment gateways
createdAt: 2023-04-25T13:24:19.000Z
---

## Introduction

Our API provides a fast and accurate way to obtain detailed bank information using a MICR (Magnetic Ink Character Recognition) code. It's an essential tool for financial services, offering quick access to data like bank name, branch, address, and contact information. This service is particularly useful for processing financial transactions and verifying bank details with precision and ease.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/bank/searchByMicrCode
```
:::

:::CodeblockTabs
UAT/Testing  Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/bank/searchByMicrCode
```
:::

***

### Request Headers

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body parameters

| Parameter | Data Type | Description    | Required  |
| --------- | --------- | -------------- | --------- |
| micrCode  | String    | bank MICR code | Mandatory |

### Request body

```json
{
    "micrCode":"251240002"
}
```

***

### Code  samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/bank/searchByMicrCode' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "micrCode": "251240002"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api.signzy.app/api/v3/bank/searchByMicrCode',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'Token'
  },
  body: JSON.stringify({
    "micrCode": "251240002"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python
import requests
import json

url = "https://api.signzy.app/api/v3/bank/searchByMicrCode"

payload = json.dumps({
  "micrCode": "251240002"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Token'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.signzy.app/api/v3/bank/searchByMicrCode"
  method := "POST"

  payload := strings.NewReader(`{
    "micrCode": "251240002"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "Token")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| Parameter                       | Data Type | Description                            |
| ------------------------------- | --------- | -------------------------------------- |
| micrCode                        | String    | MICR code of the bank branch           |
| id                              | Number    | Identifier                             |
| result.bankName                 | String    | Name of the bank                       |
| result.address                  | String    | Bank address                           |
| result.state                    | String    | State where the bank is located        |
| result.district                 | String    | District where the bank is located     |
| result.branch                   | String    | Branch of the bank                     |
| result.contact                  | String    | Contact information of the bank branch |
| result.ifscCode                 | String    | IFSC code of the bank branch           |
| result.micrCode                 | String    | MICR code of the bank branch           |
| result.splitAddress.district    | Array     | Array of district names                |
| result.splitAddress.state       | Array     | Array of state names                   |
| result.splitAddress.city        | Array     | Array of city names                    |
| result.splitAddress.pincode     | String    | Pincode of the bank's location         |
| result.splitAddress.country     | Array     | Array of country codes/names           |
| result.splitAddress.addressLine | String    | Detailed address line                  |

:::CodeblockTabs
200

```json
{
    "result": {
        "bankName": "HDFC BANK LTD",
        "address": "10-A, NEW MANDI , MUZAFFARNAGAR , UTTAR PRADESH, 251001",
        "state": "UTTAR PRADESH",
        "district": "MUAAFFARNAGAR",
        "branch": "ADARSH MAHILA MERCNT CO-OP BANK LTD",
        "contact": "LUCKNOW, 6160 616, REST OF UTTAR PRADESH, 99359 03333",
        "ifscCode": "HDFC0CAMMCO",
        "micrCode": "251240002",
        "splitAddress": {
            "district": [
                "MUZAFFARNAGAR"
            ],
            "state": [
                [
                    "UTTAR PRADESH",
                    "UP"
                ]
            ],
            "city": [
                "MUZAFFARNAGAR"
            ],
            "pincode": "251001",
            "country": [
                "IN",
                "IND",
                "INDIA"
            ],
            "addressLine": "10-A,NEW MANDI"
        }
    }
}
```

400

```json
// When "micrCode" is empty
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "micrCode is not allowed to be empty",
        "status": 400
    }
}

// When "micrCode" is wrong
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please enter a valid MICR Code",
        "status": 400
    }
}

// "micrCode is not passed as string
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "MICR code must be string",
        "status": 400
    }
}

// "micrCode is not valid
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid MICR code",
        "status": 400
    }
}
```

401

```json
// When API key is not passed
{
    "message": "No API key found in request"
}

// when wrong API key is passed
{
    "message": "Invalid authentication credentials"
}
```

404

```json
// when micrCode is not found
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "Provided MICR Code not found"
    }
}
```

409

```json
{
    "error": {
        "statusCode": 409,
        "name": "Error",
        "message": "Upstream Down",
        "status": 409
    }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
