Skip to main content
GET
/
v1
/
mobileMoneyOperator
Get Mobile Networks
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://sandboxapi.me-cash.com/v1/mobileMoneyOperator', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
curl --request GET \
--url https://sandboxapi.me-cash.com/v1/mobileMoneyOperator \
--header 'x-api-key: <api-key>'
import requests

url = "https://sandboxapi.me-cash.com/v1/mobileMoneyOperator"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const url = 'https://sandboxapi.me-cash.com/v1/mobileMoneyOperator';
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://sandboxapi.me-cash.com/v1/mobileMoneyOperator",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
HttpResponse<String> response = Unirest.get("https://sandboxapi.me-cash.com/v1/mobileMoneyOperator")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sandboxapi.me-cash.com/v1/mobileMoneyOperator")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
import Foundation

let url = URL(string: "https://sandboxapi.me-cash.com/v1/mobileMoneyOperator")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["x-api-key": "<api-key>"]

let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
val client = OkHttpClient()

val request = Request.Builder()
.url("https://sandboxapi.me-cash.com/v1/mobileMoneyOperator")
.get()
.addHeader("x-api-key", "<api-key>")
.build()

val response = client.newCall(request).execute()
false
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://sandboxapi.me-cash.com/v1/mobileMoneyOperator"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
{
  "message": "recipient mobile networks fetched successfully",
  "status": "success",
  "data": [
    {
      "name": "TNM Mpamba",
      "country": "MW",
      "code": "TNM Mpamba"
    },
    {
      "name": "Airtel Money",
      "country": "MW",
      "code": "Airtel Money"
    }
  ]
}
This Endpoint is optional for Kenyan Mobile Money Collections.

Authorizations

x-api-key
string
header
required

Query Parameters

country
string
required

The country code to fetch the networks available (e.g., MW, RW, KE)

Example:

"MW"

currency
string
required

Currency code (e.g., MWK, RWF, KES)

Example:

"MWK"

Response

200 - application/json

Mobile money providers fetched successfully.

The response is of type any.