---
title: Search Bank by IFSC code
slug: api-marketplace/search-bank-by-ifsc-code
description: Learn how Signzy Technologies Private Limited's API can help you retrieve bank branch information using IFSC codes. Verify bank details before transactions and validate bank details for customer onboarding. Explore request and response properties, error c
createdAt: 2023-04-20T22:25:50.000Z
---

## Introduction

Our API for searching bank details by IFSC code provides an efficient way to access comprehensive information about a bank branch. Simply input an IFSC code, and instantly receive details like bank name, address, contact info, and more. This tool is invaluable for financial institutions, businesses, and individuals who need accurate bank information quickly, be it for transactional purposes or general inquiries.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

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

:::CodeblockTabs
UAT/Testing  Endpoint

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

***

### 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  |
| --------- | --------- | -------------- | --------- |
| ifscCode  | String    | Bank IFSC code | Mandatory |

### Request body

```json
{
    "ifscCode": "string"
}
```

***

### Code  samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/bank/searchByIfscCode' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token' \
--data '{
    "ifscCode":"XXXXXX"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "ifscCode": "XXXX"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.signzy.app/api/v3/bank/searchByIfscCode',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'Token'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
import requests
import json

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

payload = json.dumps({
  "ifscCode": "XXXX"
})
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/searchByIfscCode"
  method := "POST"

  payload := strings.NewReader(`{
    "ifscCode":"XXXX"
}`)

  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                            |
| ------------------------------- | --------- | -------------------------------------- |
| 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": "PUNJAB NATIONAL BANK",
        "address": "KUNWAR SINGH P.G. COLLEGE,",
        "state": "UTTAR PRADESH",
        "district": "CIVIL LINES, BALLIA",
        "branch": "BALLIA,KUNWAR SINGH P.G.COLLEG",
        "contact": "",
        "ifscCode": "XXXXXXX",
        "micrCode": "",
        "splitAddress": {
            "district": [
                "CIVIL LINES, BALLIA"
            ],
            "state": [
                [
                    "UTTAR PRADESH",
                    "UP"
                ]
            ],
            "city": [
                "BALLIA"
            ],
            "pincode": "",
            "country": [
                "IN",
                "IND",
                "INDIA"
            ],
            "addressLine": "KUNWAR SINGH P.G. COLLEGE,"
        }
    }
}
```

400

```json
// When an empty IFSC code is passed.
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Empty string not allowed",
        "status": 400
    }
}

// When IFSC code without string is passed.
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "IFSC code must be string",
        "status": 400
    }
}

// Passing invalid IFSC code is passed
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "IFSC code is not valid",
        "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 IFSC code is not found
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "IFSC code not found",
        "status": 404
    }
}
```

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!
