Skip to main content
GET
/
v1
/
global-collection
/
drc
/
inflow
/
providers
cURL
curl --request GET \
  --url https://api.nomba.com/v1/global-collection/drc/inflow/providers \
  --header 'Authorization: <authorization>' \
  --header 'accountId: <accountid>'
import requests

url = "https://api.nomba.com/v1/global-collection/drc/inflow/providers"

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/global-collection/drc/inflow/providers', 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/global-collection/drc/inflow/providers",
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/global-collection/drc/inflow/providers"

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/global-collection/drc/inflow/providers")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.nomba.com/v1/global-collection/drc/inflow/providers")

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": "Successful",
  "data": [
    {
      "code": "MPESA",
      "displayName": "Mpesa"
    },
    {
      "code": "AIRTEL",
      "displayName": "Airtel Money"
    },
    {
      "code": "ORANGE",
      "displayName": "Orange Money"
    }
  ]
}

Headers

Authorization
string
required

Bearer token for authentication.

Example:

"Bearer <token>"

accountId
string
required

The parent accountId of the business.

Example:

"890022ce-bae0-45c1-9b9d-ee7872e6ca27"

Response

200 - application/json

List of DRC inflow providers returned successfully.

code
string
Example:

"00"

description
string
Example:

"Successful"

data
object[]
Example:
[
{ "code": "MPESA", "displayName": "Mpesa" },
{
"code": "AIRTEL",
"displayName": "Airtel Money"
},
{
"code": "ORANGE",
"displayName": "Orange Money"
}
]