get https://pay2new.in/apis/aeps/v1/aepsBankList
Header Request
secret : Unique secret key (Provided by Pay2New)
outletId: Unique OutletID (Provided by Pay2New)
Sample Request
curl --request GET \
--url https://pay2new.in/apis/aeps/v1/aepsBankList \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'outletId: {Your outlet ID}' \
--header 'secret: {your API key}'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pay2new.in/apis/aeps/v1/aepsBankList",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"Content-Type: application/json",
"accept: application/json",
"outletId: {Your outlet ID}",
"secret: {your API key}"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Response Parameters
Name | Type | Description |
---|---|---|
status | Integer | Transaction Status |
message | String | Message from API |
data | Array | Response Data (If Present) |
order_id | String | API order id |
Sample Response
{
"status": 1,
"message": "Banks fetched successfully",
"data": [
{
"bankId": 109005,
"name": "STATE BANK OF INDIA",
"iin": "607094",
"aepsEnabled": true,
"aadhaarpayEnabled": true,
"aepsFailureRate": "32",
"aadhaarpayFailureRate": "45"
},
{
"bankId": 74984,
"name": "Punjab National Bank",
"iin": "607027",
"aepsEnabled": true,
"aadhaarpayEnabled": true,
"aepsFailureRate": "29",
"aadhaarpayFailureRate": "71"
}
],
"order_id": null
}