Fetch unified transaction status (v3)
curl --request POST \
--url https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"id": "<string>",
"type": "payin/payout"
}
}
'import requests
url = "https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status"
payload = {
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"id": "<string>",
"type": "payin/payout"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: '<string>',
sender: '<string>',
timestamp: 123,
salt: '<string>',
signature: '<string>',
params: {id: '<string>', type: 'payin/payout'}
})
};
fetch('https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status', 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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status",
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([
'client_id' => '<string>',
'sender' => '<string>',
'timestamp' => 123,
'salt' => '<string>',
'signature' => '<string>',
'params' => [
'id' => '<string>',
'type' => 'payin/payout'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status"
payload := strings.NewReader("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status")
.header("Content-Type", "application/json")
.body("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction data fetched successfully.",
"data": {
"amount": "987",
"fee": 10,
"currency": "KES",
"status": "success",
"payee": "N/A",
"invoice_no": "N/A",
"mobile": "2547xxxxxxx",
"account_number": "N/A",
"ref": "NIO-SXXXXX",
"balance": "N/A",
"transaction_detail": "N/A",
"payment_channel": "SENDMONEY",
"transaction_date": "2026-05-19T04:34:42.000000Z",
"created_at": "2026-05-19T04:34:42.000000Z",
"updated_at": "2026-05-19T04:45:41.000000Z",
"callback_url": "https://webhook.site/<REDACTED>",
"status_code": "000006",
"failureReason": {
"failureCode": null,
"failureMessage": null
}
}
}{
"success": false,
"message": "Niobi user not found or Transaction was not created!"
}{
"success": false,
"message": "Entity integration record not found or Client id not matched or Request was not verified."
}Get Transaction Status (v3)
POST
/
api
/
v3
/
get-unified-transaction-status
Fetch unified transaction status (v3)
curl --request POST \
--url https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"id": "<string>",
"type": "payin/payout"
}
}
'import requests
url = "https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status"
payload = {
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"id": "<string>",
"type": "payin/payout"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_id: '<string>',
sender: '<string>',
timestamp: 123,
salt: '<string>',
signature: '<string>',
params: {id: '<string>', type: 'payin/payout'}
})
};
fetch('https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status', 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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status",
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([
'client_id' => '<string>',
'sender' => '<string>',
'timestamp' => 123,
'salt' => '<string>',
'signature' => '<string>',
'params' => [
'id' => '<string>',
'type' => 'payin/payout'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status"
payload := strings.NewReader("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox.users.niobi.co/api/v3/get-unified-transaction-status")
.header("Content-Type", "application/json")
.body("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.users.niobi.co/api/v3/get-unified-transaction-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"id\": \"<string>\",\n \"type\": \"payin/payout\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction data fetched successfully.",
"data": {
"amount": "987",
"fee": 10,
"currency": "KES",
"status": "success",
"payee": "N/A",
"invoice_no": "N/A",
"mobile": "2547xxxxxxx",
"account_number": "N/A",
"ref": "NIO-SXXXXX",
"balance": "N/A",
"transaction_detail": "N/A",
"payment_channel": "SENDMONEY",
"transaction_date": "2026-05-19T04:34:42.000000Z",
"created_at": "2026-05-19T04:34:42.000000Z",
"updated_at": "2026-05-19T04:45:41.000000Z",
"callback_url": "https://webhook.site/<REDACTED>",
"status_code": "000006",
"failureReason": {
"failureCode": null,
"failureMessage": null
}
}
}{
"success": false,
"message": "Niobi user not found or Transaction was not created!"
}{
"success": false,
"message": "Entity integration record not found or Client id not matched or Request was not verified."
}Please ensure that a new
signature is generated each time you create a transaction status requestBody
application/json
Data needed for unified transaction status (v3)
Response
Success
Example:
true
Example:
"Transaction data fetched successfully."
Example:
{
"amount": "987",
"fee": 10,
"currency": "KES",
"status": "success",
"payee": "N/A",
"invoice_no": "N/A",
"mobile": "2547xxxxxxx",
"account_number": "N/A",
"ref": "NIO-SXXXXX",
"balance": "N/A",
"transaction_detail": "N/A",
"payment_channel": "SENDMONEY",
"transaction_date": "2026-05-19T04:34:42.000000Z",
"created_at": "2026-05-19T04:34:42.000000Z",
"updated_at": "2026-05-19T04:45:41.000000Z",
"callback_url": "https://webhook.site/<REDACTED>",
"status_code": "000006",
"failureReason": {
"failureCode": null,
"failureMessage": null
}
}
⌘I

