cURL
curl --request GET \
--url https://api.nomba.com/v1/sandbox/global-payout/accounts \
--header 'Authorization: <authorization>' \
--header 'accountId: <accountid>'import requests
url = "https://api.nomba.com/v1/sandbox/global-payout/accounts"
headers = {
"Authorization": "<authorization>",
"accountId": "<accountid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', accountId: '<accountid>'}
};
fetch('https://api.nomba.com/v1/sandbox/global-payout/accounts', 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.nomba.com/v1/sandbox/global-payout/accounts",
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>",
"accountId: <accountid>"
],
]);
$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.nomba.com/v1/sandbox/global-payout/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("accountId", "<accountid>")
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.nomba.com/v1/sandbox/global-payout/accounts")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/sandbox/global-payout/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["accountId"] = '<accountid>'
response = http.request(request)
puts response.read_body{
"code": "00",
"description": "Success",
"status": false,
"data": [
{
"accountId": "sandbox-acc-ngn-001",
"name": "Sandbox Main Account",
"currency": "NGN",
"balance": 500000,
"availableBalance": 500000,
"status": "ACTIVE",
"operationRegion": "NG"
},
{
"accountId": "sandbox-acc-cad-001",
"name": "Sandbox CAD Account",
"currency": "CAD",
"balance": 1250.5,
"availableBalance": 1000.5,
"status": "ACTIVE",
"operationRegion": "GLOBAL"
}
]
}Global Payout
Fetch accounts sandbox
Sandbox version of Fetch Global Payout Accounts. Returns canned multi-currency account data for use in testing.
GET
/
v1
/
sandbox
/
global-payout
/
accounts
cURL
curl --request GET \
--url https://api.nomba.com/v1/sandbox/global-payout/accounts \
--header 'Authorization: <authorization>' \
--header 'accountId: <accountid>'import requests
url = "https://api.nomba.com/v1/sandbox/global-payout/accounts"
headers = {
"Authorization": "<authorization>",
"accountId": "<accountid>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', accountId: '<accountid>'}
};
fetch('https://api.nomba.com/v1/sandbox/global-payout/accounts', 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.nomba.com/v1/sandbox/global-payout/accounts",
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>",
"accountId: <accountid>"
],
]);
$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.nomba.com/v1/sandbox/global-payout/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("accountId", "<accountid>")
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.nomba.com/v1/sandbox/global-payout/accounts")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/sandbox/global-payout/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["accountId"] = '<accountid>'
response = http.request(request)
puts response.read_body{
"code": "00",
"description": "Success",
"status": false,
"data": [
{
"accountId": "sandbox-acc-ngn-001",
"name": "Sandbox Main Account",
"currency": "NGN",
"balance": 500000,
"availableBalance": 500000,
"status": "ACTIVE",
"operationRegion": "NG"
},
{
"accountId": "sandbox-acc-cad-001",
"name": "Sandbox CAD Account",
"currency": "CAD",
"balance": 1250.5,
"availableBalance": 1000.5,
"status": "ACTIVE",
"operationRegion": "GLOBAL"
}
]
}Headers
Bearer token for authentication.
Example:
"Bearer <token>"
The parent accountId of the business.
Example:
"890022ce-bae0-45c1-9b9d-ee7872e6ca27"
Response
200 - application/json
Accounts retrieved successfully.
Example:
"00"
Example:
"Success"
Legacy envelope flag. Global Payout endpoints leave it false even on success - read code instead, where 00 means success.
Example:
false
Show child attributes
Show child attributes
Example:
[
{
"accountId": "sandbox-acc-ngn-001",
"name": "Sandbox Main Account",
"currency": "NGN",
"balance": 500000,
"availableBalance": 500000,
"status": "ACTIVE",
"operationRegion": "NG"
},
{
"accountId": "sandbox-acc-cad-001",
"name": "Sandbox CAD Account",
"currency": "CAD",
"balance": 1250.5,
"availableBalance": 1000.5,
"status": "ACTIVE",
"operationRegion": "GLOBAL"
}
]
⌘I