Get Bank List API

POST  https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList


This operation will allow the user to check the emandate bank list.

Body Parameters
{
  "RegistrationID": "AOP-554"
}
Request Parameters
Name Type Description
RegistrationID String Unique registration identifier, often tied to the user.
Responses

200

200

Response

200

RESPONSE BODY

object

StatusCode    string

data    object

banks    array

Response

401

RESPONSE BODY

returnMessage     string

401

401

412

412

Response

412

RESPONSE BODY

returnMessage     string


Did this page help you?     Yes    No

Language
shell Shell
python Python
node Node
c# C#
php PHP

cURL

curl --location 'https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList' \
--header 'Content-Type: application/json' \
--data  '{
   "RegistrationID": "AOP-554"
}'
                                
import requests
import json

url = 'https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList'
payload = json.dumps({
    "RegistrationID": "AOP-554"
}) 

headers = {
  "Content-type" : "application/json"
}

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

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "POST",
  "url" : 'https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList',
  "headers" : {
    "Content-Type" : 'application/json'
  },
  body: JSON.stringify({
    
    "RegistrationID": "AOP-554"
  }) 
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,'https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList')
var content = new StringContent(
  "{
    
    "RegistrationID": "AOP-554"
  }",
  null,"application/json"
); 

request.Content = content;
var response =  await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
                                
<?php
$curl =  curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL =>  'https://api.aopay.co.in/api/AOP/Enach/V1/GetBankList',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  "10",
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'POST',
  CURLOPT_POSTFIELDS =>  '{
   
    "RegistrationID": "AOP-554"
  }',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

412

-Result

Example

"StatusCode": "NP000",
"data": {
  "banks": [
    {
      "id": 1,
      "name": "AXIS BANK",
      "bank_code": "UTIB",
      "mode": "netbanking, debit card, aadhaar, other"
    },
    {
      "id": 1051,
      "name": "UTKARSH SMALL FINANCE BANK LTD",
      "bank_code": "UTKS",
      "mode": "debit card, aadhaar, other"
    },
    {
      "id": 717,
      "name": "THE VARACHHA CO OP BANK LTD",
      "bank_code": "VARA",
      "mode": "netbanking, debit card, aadhaar, other"
    }
  ]
}


 
 
{
    "returnMessage": "Invalid registration ID"
}
                                
 
{
   "returnMessage": "Invalid registration ID"
}

                                
 
{
   "returnMessage": "Invalid registration ID"
}