curl --request POST \
--url https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"otp": "1234",
"payment_token": "NIO-S0000001"
}
}
'import requests
url = "https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction"
payload = {
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"otp": "1234",
"payment_token": "NIO-S0000001"
}
}
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: {otp: '1234', payment_token: 'NIO-S0000001'}
})
};
fetch('https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction', 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/v4/niobi-unified-process-transaction",
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' => [
'otp' => '1234',
'payment_token' => 'NIO-S0000001'
]
]),
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/v4/niobi-unified-process-transaction"
payload := strings.NewReader("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\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/v4/niobi-unified-process-transaction")
.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 \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction")
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 \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction completed successfully.",
"data": {
"status": "success",
"payment_step": 2,
"third_party_reference_1": "ORDER-991"
}
}{
"success": false,
"message": "Invalid or expired OTP, or payment_token not found."
}{
"success": false,
"message": "Entity integration record not found or Client id not matched or Request was not verified."
}Verify OTP
Completes step 2 of the OTP-verified collection flow, currently required for Cote D’Ivoire Orange payins. Submit the OTP the customer received by SMS along with the payment_token returned from the initial Unified Collections request. See the OTP-Verified Payins guide for the full two-step flow.
curl --request POST \
--url https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"otp": "1234",
"payment_token": "NIO-S0000001"
}
}
'import requests
url = "https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction"
payload = {
"client_id": "<string>",
"sender": "<string>",
"timestamp": 123,
"salt": "<string>",
"signature": "<string>",
"params": {
"otp": "1234",
"payment_token": "NIO-S0000001"
}
}
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: {otp: '1234', payment_token: 'NIO-S0000001'}
})
};
fetch('https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction', 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/v4/niobi-unified-process-transaction",
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' => [
'otp' => '1234',
'payment_token' => 'NIO-S0000001'
]
]),
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/v4/niobi-unified-process-transaction"
payload := strings.NewReader("{\n \"client_id\": \"<string>\",\n \"sender\": \"<string>\",\n \"timestamp\": 123,\n \"salt\": \"<string>\",\n \"signature\": \"<string>\",\n \"params\": {\n \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\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/v4/niobi-unified-process-transaction")
.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 \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.users.niobi.co/api/v4/niobi-unified-process-transaction")
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 \"otp\": \"1234\",\n \"payment_token\": \"NIO-S0000001\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Transaction completed successfully.",
"data": {
"status": "success",
"payment_step": 2,
"third_party_reference_1": "ORDER-991"
}
}{
"success": false,
"message": "Invalid or expired OTP, or payment_token not found."
}{
"success": false,
"message": "Entity integration record not found or Client id not matched or Request was not verified."
}payment_token instead of a terminal status when OTP verification is required. See the OTP-Verified Payins guide for the full walkthrough.Body
Signed request envelope carrying the OTP and payment token from step 1.
Your Client ID from the Niobi Dashboard under Workspace > Integrations.
The exact title of your integration as registered in the Dashboard. Case-sensitive.
Unix timestamp in seconds at the time of signing. Must match the value used to generate the signature.
A unique random string you generate per request. Must be the same value used when generating the signature.
SHA-256 signature computed from this payload. Generate via the Signature endpoint or your own backend.
Show child attributes
Show child attributes

