List banks by country
curl --request GET \
--url https://api.puplar.com/misc/banks/{country} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.puplar.com/misc/banks/{country}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.puplar.com/misc/banks/{country}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.puplar.com/misc/banks/{country}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.puplar.com/misc/banks/{country}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.puplar.com/misc/banks/{country}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.puplar.com/misc/banks/{country}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Banks fetched successfully",
"data": [
{
"code": "058",
"name": "Guaranty Trust Bank"
}
]
}{
"message": "Error message",
"data": {},
"errors": {}
}{
"message": "Error message",
"data": {},
"errors": {}
}{
"message": "Error message",
"data": {},
"errors": {}
}Misc
List banks by country
Returns supported banks for bank-transfer payouts in the given country. Currently only ng is supported. Use the bank code as bank_code when resolving an account or creating an NGN payout.
Test mode (sk_test_*): Returns 5 dummy banks with 3-digit codes (058, 011, 033, 044, 057). Resolve an account with one of those codes and the matching test account number from the resolve docs.
GET
/
misc
/
banks
/
{country}
List banks by country
curl --request GET \
--url https://api.puplar.com/misc/banks/{country} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.puplar.com/misc/banks/{country}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.puplar.com/misc/banks/{country}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.puplar.com/misc/banks/{country}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.puplar.com/misc/banks/{country}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.puplar.com/misc/banks/{country}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.puplar.com/misc/banks/{country}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Banks fetched successfully",
"data": [
{
"code": "058",
"name": "Guaranty Trust Bank"
}
]
}{
"message": "Error message",
"data": {},
"errors": {}
}{
"message": "Error message",
"data": {},
"errors": {}
}{
"message": "Error message",
"data": {},
"errors": {}
}Returns supported banks for bank-transfer payouts in the given country. Currently only Test mode (
Returns these dummy banks. Live mode returns the full bank list. Resolve an account with one of these codes and the account number in the resolve guide.
ng is supported.
Use the bank code as bank_code when resolving an account or creating an NGN payout.
Test mode (sk_test_*)
Returns these dummy banks. Live mode returns the full bank list. Resolve an account with one of these codes and the account number in the resolve guide.
| Code | Bank |
|---|---|
058 | GTBank (Test) |
011 | First Bank (Test) |
033 | UBA (Test) |
044 | Access Bank (Test) |
057 | Zenith Bank (Test) |

