List Banks
curl --request GET \
--url https://pesahub.co/v1/payouts/bank/list \
--header 'Authorization: <authorization>'import requests
url = "https://pesahub.co/v1/payouts/bank/list"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://pesahub.co/v1/payouts/bank/list', 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://pesahub.co/v1/payouts/bank/list",
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: <authorization>"
],
]);
$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://pesahub.co/v1/payouts/bank/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pesahub.co/v1/payouts/bank/list")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pesahub.co/v1/payouts/bank/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"banks": [
{
"name": "<string>",
"value": "<string>",
"bic": "<string>"
}
]
}Extra
List Banks
Retrieve a list of supported banks available for payouts.
GET
/
v1
/
payouts
/
bank
/
list
List Banks
curl --request GET \
--url https://pesahub.co/v1/payouts/bank/list \
--header 'Authorization: <authorization>'import requests
url = "https://pesahub.co/v1/payouts/bank/list"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://pesahub.co/v1/payouts/bank/list', 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://pesahub.co/v1/payouts/bank/list",
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: <authorization>"
],
]);
$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://pesahub.co/v1/payouts/bank/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pesahub.co/v1/payouts/bank/list")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pesahub.co/v1/payouts/bank/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"banks": [
{
"name": "<string>",
"value": "<string>",
"bic": "<string>"
}
]
}List Banks
Get a list of banks supportedHeaders
string
required
Bearer token for authentication. Format:
Bearer <token>string
default:"application/json"
Expected response format. Use
application/json.Response
boolean
Indicates whether the request was successful.
string
Human-readable status message.
array
Example Response
{
"success": true,
"message": "Bank list retrieved successfully",
"banks": [
{
"name": "ABSA BANK TANZANIA LIMITED",
"value": "absa_bank_tanzania_limited",
"bic": "BARCTZTZ"
},
{
"name": "AKIBA COMMERCIAL BANK PLC",
"value": "akiba_commercial_bank_plc",
"bic": "AKCOTZTZ"
}
]
}