Get supported countries
curl --request GET \
--url https://sandbox-api.kotanipay.io/api/v3/customer/support/countries \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.kotanipay.io/api/v3/customer/support/countries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.kotanipay.io/api/v3/customer/support/countries', 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://sandbox-api.kotanipay.io/api/v3/customer/support/countries",
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://sandbox-api.kotanipay.io/api/v3/customer/support/countries"
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://sandbox-api.kotanipay.io/api/v3/customer/support/countries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.kotanipay.io/api/v3/customer/support/countries")
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{
"success": true,
"message": "Countries retrieved successfully",
"data": [
{
"countryCode": "KE",
"name": "Kenya",
"currency": "KES",
"serviceType": "WITHDRAW",
"isActive": true,
"isEnabled": true,
"requiresNetwork": false,
"requiresAccountName": false,
"iso3Code": "KEN",
"supportedNetworks": [
"MTN",
"VODAFONE",
"AIRTEL"
],
"availableNetworks": [
"MPESA",
"AIRTEL"
],
"supportedLookupNetworks": [
"MPESA",
"AIRTEL"
],
"enabledLookup": true
}
]
}{
"success": false,
"message": "Invalid query parameters",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}Country & Service Support
Get Supported Countries
Returns a list of all supported countries with their configurations. Supports filtering by service type, currency, country code, and active status. Data is aggregated from the Provider Registry for real-time accuracy. The isEnabled flag indicates whether the authenticated integrator has this service enabled and providers attached.
GET
/
api
/
v3
/
customer
/
support
/
countries
Get supported countries
curl --request GET \
--url https://sandbox-api.kotanipay.io/api/v3/customer/support/countries \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.kotanipay.io/api/v3/customer/support/countries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.kotanipay.io/api/v3/customer/support/countries', 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://sandbox-api.kotanipay.io/api/v3/customer/support/countries",
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://sandbox-api.kotanipay.io/api/v3/customer/support/countries"
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://sandbox-api.kotanipay.io/api/v3/customer/support/countries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.kotanipay.io/api/v3/customer/support/countries")
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{
"success": true,
"message": "Countries retrieved successfully",
"data": [
{
"countryCode": "KE",
"name": "Kenya",
"currency": "KES",
"serviceType": "WITHDRAW",
"isActive": true,
"isEnabled": true,
"requiresNetwork": false,
"requiresAccountName": false,
"iso3Code": "KEN",
"supportedNetworks": [
"MTN",
"VODAFONE",
"AIRTEL"
],
"availableNetworks": [
"MPESA",
"AIRTEL"
],
"supportedLookupNetworks": [
"MPESA",
"AIRTEL"
],
"enabledLookup": true
}
]
}{
"success": false,
"message": "Invalid query parameters",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}Get a list of all supported countries with their configurations, filterable by service type, currency, and status.
enabledLookup and supportedLookupNetworks tell you whether name/account lookup (used by Validate Mobile Money Account and Validate Bank Account) is available for that country, and on which networks.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter by service type
Available options:
DEPOSIT, CARD_DEPOSIT, WITHDRAW, DETAILS Example:
"WITHDRAW"
Filter by currency
Available options:
KES, GHS, NGN, ZAR, ZAR, USD, XOF, ZMW, XAF, SLE, CDF, TZS, UGX, EGP, MWK, RWF, ETB, MZN, LSL, GNF, USDT, BTC, ETH, USDC Example:
"KES"
Filter by country code (e.g., KE, NG, GH)
Example:
"KE"
Filter by active status
Example:
true