Test Account Funding
curl --request POST \
--url https://api.payaza.africa/live/subsidiary/funding/v1/process-collection \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-ProductID: <api-key>' \
--header 'X-TenantID: <api-key>' \
--data '
{
"transaction_reference": "MOCIV0009384",
"country_code": "CI"
}
'import requests
url = "https://api.payaza.africa/live/subsidiary/funding/v1/process-collection"
payload = {
"transaction_reference": "MOCIV0009384",
"country_code": "CI"
}
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>",
"X-ProductID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'X-TenantID': '<api-key>',
'X-ProductID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transaction_reference: 'MOCIV0009384', country_code: 'CI'})
};
fetch('https://api.payaza.africa/live/subsidiary/funding/v1/process-collection', 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.payaza.africa/live/subsidiary/funding/v1/process-collection",
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([
'transaction_reference' => 'MOCIV0009384',
'country_code' => 'CI'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"X-ProductID: <api-key>",
"X-TenantID: <api-key>"
],
]);
$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.payaza.africa/live/subsidiary/funding/v1/process-collection"
payload := strings.NewReader("{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<api-key>")
req.Header.Add("X-ProductID", "<api-key>")
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.payaza.africa/live/subsidiary/funding/v1/process-collection")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.header("X-ProductID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/subsidiary/funding/v1/process-collection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
request["X-ProductID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}"
response = http.request(request)
puts response.read_body{
"response_code": "00",
"response_message": "Account Successfully Funded"
}Momo And ZAR Collections
Test Account Funding
This endpoint funds is used to fund collections that have been initialized using your Test API Keys. It is only available on the sandbox environment
POST
/
subsidiary
/
funding
/
v1
/
process-collection
Test Account Funding
curl --request POST \
--url https://api.payaza.africa/live/subsidiary/funding/v1/process-collection \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'X-ProductID: <api-key>' \
--header 'X-TenantID: <api-key>' \
--data '
{
"transaction_reference": "MOCIV0009384",
"country_code": "CI"
}
'import requests
url = "https://api.payaza.africa/live/subsidiary/funding/v1/process-collection"
payload = {
"transaction_reference": "MOCIV0009384",
"country_code": "CI"
}
headers = {
"Authorization": "<api-key>",
"X-TenantID": "<api-key>",
"X-ProductID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'X-TenantID': '<api-key>',
'X-ProductID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transaction_reference: 'MOCIV0009384', country_code: 'CI'})
};
fetch('https://api.payaza.africa/live/subsidiary/funding/v1/process-collection', 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.payaza.africa/live/subsidiary/funding/v1/process-collection",
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([
'transaction_reference' => 'MOCIV0009384',
'country_code' => 'CI'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json",
"X-ProductID: <api-key>",
"X-TenantID: <api-key>"
],
]);
$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.payaza.africa/live/subsidiary/funding/v1/process-collection"
payload := strings.NewReader("{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("X-TenantID", "<api-key>")
req.Header.Add("X-ProductID", "<api-key>")
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.payaza.africa/live/subsidiary/funding/v1/process-collection")
.header("Authorization", "<api-key>")
.header("X-TenantID", "<api-key>")
.header("X-ProductID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.payaza.africa/live/subsidiary/funding/v1/process-collection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["X-TenantID"] = '<api-key>'
request["X-ProductID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_reference\": \"MOCIV0009384\",\n \"country_code\": \"CI\"\n}"
response = http.request(request)
puts response.read_body{
"response_code": "00",
"response_message": "Account Successfully Funded"
}Authorizations
Payaza {{Public API Key in Base 64}}
live or test
default value is ‟app”
Body
application/json
⌘I