cURL
curl --request GET \
--url https://api.nomba.com/v1/global-collection/transactions/{transactionId} \
--header 'Authorization: <authorization>' \
--header 'accountId: <accountid>'import requests
url = "https://api.nomba.com/v1/global-collection/transactions/{transactionId}"
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/transactions/{transactionId}', 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/transactions/{transactionId}",
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/transactions/{transactionId}"
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/transactions/{transactionId}")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/global-collection/transactions/{transactionId}")
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": {
"transactionId": "a822e327-4bcd-40ec-ac61-ed3622eac000",
"coreUserId": "xxxx-xxxx-4402-97c0-6c3824cxxxxx",
"account": "0980802918",
"status": "APPROVED",
"amount": 10,
"currency": "CDF"
}
}DRC Collection
Fetch mobile money transaction
Retrieve the status of an initiated mobile money collection.
GET
/
v1
/
global-collection
/
transactions
/
{transactionId}
cURL
curl --request GET \
--url https://api.nomba.com/v1/global-collection/transactions/{transactionId} \
--header 'Authorization: <authorization>' \
--header 'accountId: <accountid>'import requests
url = "https://api.nomba.com/v1/global-collection/transactions/{transactionId}"
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/transactions/{transactionId}', 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/transactions/{transactionId}",
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/transactions/{transactionId}"
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/transactions/{transactionId}")
.header("Authorization", "<authorization>")
.header("accountId", "<accountid>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nomba.com/v1/global-collection/transactions/{transactionId}")
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": {
"transactionId": "a822e327-4bcd-40ec-ac61-ed3622eac000",
"coreUserId": "xxxx-xxxx-4402-97c0-6c3824cxxxxx",
"account": "0980802918",
"status": "APPROVED",
"amount": 10,
"currency": "CDF"
}
}Headers
Bearer token for authentication.
Example:
"Bearer <token>"
The parent accountId of the business.
Example:
"890022ce-bae0-45c1-9b9d-ee7872e6ca27"
Path Parameters
The transactionReference returned when the inflow was initiated.
Example:
"a822e327-4bcd-40ec-ac61-ed3622eac000"
⌘I