Get Penny Drop Bank List

GET  https://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list


This API is used to fetch the available bank list.

Responses

200

200

Response

200

RESPONSE BODY

object

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://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list' \
--header 'Content-Type: application/json'
                                
import requests
import json

url = 'https://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list'

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

response = requests.request("GET", url, headers=headers)

print (response.text)
                                
var requests = require("request");
var options = { 
  "method" : "GET",
  "url" : 'https://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list',
  "headers" : {
    "Content-Type" : 'application/json'
  },
}; 
request(options, function(error, response){
   if(error) throw new Error(error);
   console.log(response.body); 
}); 
                                
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,'https://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list')
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://XXXXXXXXXXXXXXXX/api/master/pennydrop-bank-list',
  CURLOPT_RETURNTRANSFER =>  true,
  CURLOPT_ENCODING =>  '',
  CURLOPT_MAXREDIRS =>  "10",
  CURLOPT_TIMEOUT =>  0,
  CURLOPT_FOLLOWLOCATION =>  true,
  CURLOPT_HTTP_VERSION =>  CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST =>  'GET',
  CURLOPT_HTTPHEADER =>  array(
    'Content-Type: application/json'
  ),
));
$response =  curl_exec($curl);
curl_close($curl);
echo $response;
                                

RESPONSE

200

401

412

-Result

Example

{
    "Status": true,
    "Message": "Bank list fetched successfully.",
    "Data": [
     {
       "BankId": 16,
       "BankName": "Airtel Payments Bank Limited",
       "IsSupported": true, 
       "IsActive": true                    
     },
     {
       "BankId": 5,
       "BankName": "AU Small Finance Bank",
       "IsSupported": true, 
       "IsActive": true                    
     },
     {
       "BankId": 17,
       "BankName": "Axis Bank",
       "IsSupported": true, 
       "IsActive": true                   
     },
     {
       "BankId": 18,
       "BankName": "Bandhan Bank Limited",
       "IsSupported": true, 
       "IsActive": true
     },
     ...more banks
   ]
}


 
 
{
    "returnMessage": "Unauthorized access. Please log in again."
}
                                
 
{
   "returnMessage": "Invalid registration ID"
}

                                
 
{
   "returnMessage": "Precondition failed. Please try again."
}