cURL
curl --request POST \
--url https://api.nomba.com/v1/global-collection/inflow/initiate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'accountId: <accountid>' \
--data '
{
"phoneNumber": "0980802xxx",
"callbackUrl": "https://your-server.com/webhook/collection",
"amount": 10,
"currency": "CDF",
"topupVendor": "AIRTEL",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
'import requests
url = "https://api.nomba.com/v1/global-collection/inflow/initiate"
payload = {
"phoneNumber": "0980802xxx",
"callbackUrl": "https://your-server.com/webhook/collection",
"amount": 10,
"currency": "CDF",
"topupVendor": "AIRTEL",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
headers = {
"Authorization": "<authorization>",
"accountId": "<accountid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
accountId: '<accountid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phoneNumber: '0980802xxx',
callbackUrl: 'https://your-server.com/webhook/collection',
amount: 10,
currency: 'CDF',
topupVendor: 'AIRTEL',
idempotencyKey: 'a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b'
})
};
fetch('https://api.nomba.com/v1/global-collection/inflow/initiate', 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/inflow/initiate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phoneNumber' => '0980802xxx',
'callbackUrl' => 'https://your-server.com/webhook/collection',
'amount' => 10,
'currency' => 'CDF',
'topupVendor' => 'AIRTEL',
'idempotencyKey' => 'a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nomba.com/v1/global-collection/inflow/initiate"
payload := strings.NewReader("{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("accountId", "<accountid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nomba.com/v1/global-collection/inflow/initiate")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/global-collection/inflow/initiate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["accountId"] = '<accountid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}"
response = http.request(request)
puts response.read_body{
"code": "00",
"description": "Successful",
"data": {
"transactionReference": "a822e327-4bcd-40ec-ac61-ed3622eac000",
"status": "PENDING",
"message": "success",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
}DRC Collection
Initiate mobile money inflow
Trigger a mobile money collection request from a customer.
POST
/
v1
/
global-collection
/
inflow
/
initiate
cURL
curl --request POST \
--url https://api.nomba.com/v1/global-collection/inflow/initiate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'accountId: <accountid>' \
--data '
{
"phoneNumber": "0980802xxx",
"callbackUrl": "https://your-server.com/webhook/collection",
"amount": 10,
"currency": "CDF",
"topupVendor": "AIRTEL",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
'import requests
url = "https://api.nomba.com/v1/global-collection/inflow/initiate"
payload = {
"phoneNumber": "0980802xxx",
"callbackUrl": "https://your-server.com/webhook/collection",
"amount": 10,
"currency": "CDF",
"topupVendor": "AIRTEL",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
headers = {
"Authorization": "<authorization>",
"accountId": "<accountid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
accountId: '<accountid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phoneNumber: '0980802xxx',
callbackUrl: 'https://your-server.com/webhook/collection',
amount: 10,
currency: 'CDF',
topupVendor: 'AIRTEL',
idempotencyKey: 'a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b'
})
};
fetch('https://api.nomba.com/v1/global-collection/inflow/initiate', 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/inflow/initiate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phoneNumber' => '0980802xxx',
'callbackUrl' => 'https://your-server.com/webhook/collection',
'amount' => 10,
'currency' => 'CDF',
'topupVendor' => 'AIRTEL',
'idempotencyKey' => 'a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nomba.com/v1/global-collection/inflow/initiate"
payload := strings.NewReader("{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("accountId", "<accountid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nomba.com/v1/global-collection/inflow/initiate")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/global-collection/inflow/initiate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["accountId"] = '<accountid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"0980802xxx\",\n \"callbackUrl\": \"https://your-server.com/webhook/collection\",\n \"amount\": 10,\n \"currency\": \"CDF\",\n \"topupVendor\": \"AIRTEL\",\n \"idempotencyKey\": \"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b\"\n}"
response = http.request(request)
puts response.read_body{
"code": "00",
"description": "Successful",
"data": {
"transactionReference": "a822e327-4bcd-40ec-ac61-ed3622eac000",
"status": "PENDING",
"message": "success",
"idempotencyKey": "a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
}
}Headers
Bearer token for authentication.
Example:
"Bearer <token>"
The parent accountId of the business.
Example:
"890022ce-bae0-45c1-9b9d-ee7872e6ca27"
Body
application/json
Example:
"0980802xxx"
Example:
"https://your-server.com/webhook/collection"
Example:
10
Example:
"CDF"
Mobile money network provider (e.g. AIRTEL, MPESA).
Example:
"AIRTEL"
A client-generated key used to safely retry the request without risk of duplicate charges. If not provided, the server generates one automatically and returns it in the response.
Example:
"a8f3d2c1-5b9e-4f7a-b2d6-1c8e3f5a9d0b"
⌘I