Reverse IFSC Lookup API

IFSC code look up for a given bank and branch

Description

Reverse IFSC look up API can be used to search IFSC codes that are linked to Indian bank branches. This is the reverse of IFSC Validation API which returns the branch details for a given IFSC code.

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

API Definitions

This product is a combination of three different API endpoints.

  • Get banks list
  • Get list of branches for a given bank
  • Search IFSC code for a given bank and branch

1. Get Banks List API

TypeURL
POSThttps://api.attestr.com/api/{version}/public/finanx/banks

Request Body Parameters

None

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

If you do not have the authentication token, please refer to Register App to generate one.

Response

Http Status 200

KeyDescriptionTypeMin VersionMax Version
validReturn status flag to indicate if request was successfulBooleanv1
countNo of the items returned in the resultIntegerv1
itemsArray of BankObject (See definition below)Arrayv1

BankObject Definition

KeyDescriptionTypeMin VersionMax Version
nameName of the bank as registered with RBIStringv1
codeUnique code assigned by Attestr to each bank. The same is used as input in Get Branches List and Get IFSC code API as described in the sections below.Stringv1

Sample Response

JSON
Copy

2. Get Branches List API

TypeURL
POSThttps://api.attestr.com/api/{version}/public/finanx/branches

Request Body Parameters

KeyDescriptionRequired / OptionalTypeMin VersionMax Version
bankInput bank code as returned in the Get Banks List API.RequiredStringv1
$filterFilter criteria to search the branches. Filters can be applied on branch, city, state, district and code fields. See sample requests below for details.OptionalObjectv1
$sortSort order to be applied to the search results. Sorting can be applied on branch, city, state, district, address and code fields. If not provided, results are sorted by the branch name in ascending order. Use 1 for ascending and -1 for descending order. See sample requests below for details.OptionalObjectv1

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

Sample Request Body

Sample request for fetching all branches for a bank

JSON
Copy

Sample requests demonstrating use of filters to return branches from a specific state

JSON
Copy

Multiple filters can be applied in a single request

Javascript
Copy

Use of $sort parameter to fetch ordered results

Javascript
Copy

Ordering can be applied on multiple fields in the order of precedence

Javascript
Copy

Response

Http Status 200

KeyDescriptionTypeMin VersionMax Version
validIndicates status if the request was successful.Booleanv1
countNo of items returned in the responseIntegerv1
itemsArray of BankBranchObject. Each value in the array represents a branchArrayv1
messageError message if valid is falseStringv1

BankBranchObject Definition

KeyDescriptionTypeMin VersionMax Version
_idBranch ID assigned by Attestr to each branchStringv1
branchName of the branch as registered with RBIStringv1
addressBranch addressStringv1
cityCity where this branch is locatedStringv1
districtDistrict where this branch is locatedStringv1
stateState where this branch is locatedStringv1
codeUnique code assigned to each branch. The same should be passed as input to the Search IFSC Code API as described in the section below.Stringv1

Sample Response

Success case when the input bank code is valid

JSON
Copy

Sample response for the case if input bank code is not valid

JSON
Copy

3. Search IFSC API

TypeURL
POSThttps://api.attestr.com/api/{version}/public/finanx/ifsc/search

Request Body Parameters

KeyDescriptionRequired / OptionalTypeMin VersionMax Version
bankInput bank code as returned in the Get Banks List API.RequiredStringv1
branchInput branch code as returned in the Get Branch List APIRequiredStringv1

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

Sample Request Body

JSON
Copy

Response

Http Status 200

KeyDescriptionTypeMin VersionMax Version
validIndicates status if the request was successful.Booleanv1
ifscIFSC code of the branchStringv1
messageError message if no IFSC code is found matching the input bank and branch codesStringv1

Sample Response

Sample response for the case when a matching IFSC code is found

JSON
Copy

Sample response for the case when no matching IFSC code is found. This could be due to non existent / bad values for the bank and branch code values.

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard