Fund Transfer Wallet
curl --request POST \
--url https://api.example.com/make_payment \
--header 'Content-Type: application/json' \
--data '
{
"Authorization": "<string>",
"service_id": 123,
"reference": "<string>",
"transaction_id": "<string>",
"trans_type": "<string>",
"amount": 123,
"nw": "<string>",
"nickname": "<string>",
"payment_option": "<string>",
"currency_code": "<string>",
"currency_val": "<string>",
"callback_url": "<string>",
"landing_page": "<string>",
"request_time": "<string>"
}
'import requests
url = "https://api.example.com/make_payment"
payload = {
"Authorization": "<string>",
"service_id": 123,
"reference": "<string>",
"transaction_id": "<string>",
"trans_type": "<string>",
"amount": 123,
"nw": "<string>",
"nickname": "<string>",
"payment_option": "<string>",
"currency_code": "<string>",
"currency_val": "<string>",
"callback_url": "<string>",
"landing_page": "<string>",
"request_time": "<string>"
}
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({
Authorization: '<string>',
service_id: 123,
reference: '<string>',
transaction_id: '<string>',
trans_type: '<string>',
amount: 123,
nw: '<string>',
nickname: '<string>',
payment_option: '<string>',
currency_code: '<string>',
currency_val: '<string>',
callback_url: '<string>',
landing_page: '<string>',
request_time: '<string>'
})
};
fetch('https://api.example.com/make_payment', 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.example.com/make_payment",
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([
'Authorization' => '<string>',
'service_id' => 123,
'reference' => '<string>',
'transaction_id' => '<string>',
'trans_type' => '<string>',
'amount' => 123,
'nw' => '<string>',
'nickname' => '<string>',
'payment_option' => '<string>',
'currency_code' => '<string>',
'currency_val' => '<string>',
'callback_url' => '<string>',
'landing_page' => '<string>',
'request_time' => '<string>'
]),
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://api.example.com/make_payment"
payload := strings.NewReader("{\n \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\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://api.example.com/make_payment")
.header("Content-Type", "application/json")
.body("{\n \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/make_payment")
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 \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"response_message": "<string>",
"response_code": "<string>",
"redirect_url": "<string>"
}API Reference
Fund Transfer Wallet
Initiate a payment transaction to fund your transfer wallet. Use this endpoint to process payments via bank transfer, mobile money, or card payments. You will need to provide essential details like the service ID, transaction type, amount, and a callback URL for real-time status updates.
POST
/
make_payment
Fund Transfer Wallet
curl --request POST \
--url https://api.example.com/make_payment \
--header 'Content-Type: application/json' \
--data '
{
"Authorization": "<string>",
"service_id": 123,
"reference": "<string>",
"transaction_id": "<string>",
"trans_type": "<string>",
"amount": 123,
"nw": "<string>",
"nickname": "<string>",
"payment_option": "<string>",
"currency_code": "<string>",
"currency_val": "<string>",
"callback_url": "<string>",
"landing_page": "<string>",
"request_time": "<string>"
}
'import requests
url = "https://api.example.com/make_payment"
payload = {
"Authorization": "<string>",
"service_id": 123,
"reference": "<string>",
"transaction_id": "<string>",
"trans_type": "<string>",
"amount": 123,
"nw": "<string>",
"nickname": "<string>",
"payment_option": "<string>",
"currency_code": "<string>",
"currency_val": "<string>",
"callback_url": "<string>",
"landing_page": "<string>",
"request_time": "<string>"
}
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({
Authorization: '<string>',
service_id: 123,
reference: '<string>',
transaction_id: '<string>',
trans_type: '<string>',
amount: 123,
nw: '<string>',
nickname: '<string>',
payment_option: '<string>',
currency_code: '<string>',
currency_val: '<string>',
callback_url: '<string>',
landing_page: '<string>',
request_time: '<string>'
})
};
fetch('https://api.example.com/make_payment', 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.example.com/make_payment",
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([
'Authorization' => '<string>',
'service_id' => 123,
'reference' => '<string>',
'transaction_id' => '<string>',
'trans_type' => '<string>',
'amount' => 123,
'nw' => '<string>',
'nickname' => '<string>',
'payment_option' => '<string>',
'currency_code' => '<string>',
'currency_val' => '<string>',
'callback_url' => '<string>',
'landing_page' => '<string>',
'request_time' => '<string>'
]),
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://api.example.com/make_payment"
payload := strings.NewReader("{\n \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\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://api.example.com/make_payment")
.header("Content-Type", "application/json")
.body("{\n \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/make_payment")
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 \"Authorization\": \"<string>\",\n \"service_id\": 123,\n \"reference\": \"<string>\",\n \"transaction_id\": \"<string>\",\n \"trans_type\": \"<string>\",\n \"amount\": 123,\n \"nw\": \"<string>\",\n \"nickname\": \"<string>\",\n \"payment_option\": \"<string>\",\n \"currency_code\": \"<string>\",\n \"currency_val\": \"<string>\",\n \"callback_url\": \"<string>\",\n \"landing_page\": \"<string>\",\n \"request_time\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"response_message": "<string>",
"response_code": "<string>",
"redirect_url": "<string>"
}Authorization
Basic authentication header of the form Basic
<encoded-value>, where <encoded-value> is the base64-encoded string username:password.Request Body
Your unique service identifier. You’ll receive this when you register your service with us.
A unique identifier for this transaction. Ensure this is unique for each request to avoid duplicate transactions. Use this to track the transaction in your system.
The amount to be transacted. Use a decimal point for fractional amounts (e.g., 10.50).
The network provider for mobile money transactions. Use ‘MTN’ for MTN Mobile Money, ‘TEL’ for Telecel Cash, ‘AIR’ for AirtelTigo Cash, or ‘CRD’ for card payments.
You can use your service name or the purpose of the transaction as the nickname as this will be shown on the payers phone when they receive the payment request.
The payment method. Use ‘MOM’ for mobile money, ‘CRD’ for card payments, or ‘CRM’ for both card and mobile money.
The currency code for the transaction. For example, use ‘GHS’ for Ghanaian Cedi, ‘USD’ for US Dollars.
The currency value. This is typically the amount in the currency specified in the currency_code unless you’re dealing with a specific exchange rate scenario.
Your URL where we’ll send transaction status updates. Ensure this endpoint is set up to receive POST requests.
The timestamp of your request. Use the format YYYY-MM-DD HH:MM (e.g., ‘2024-06-28 12:46’).
Response
A code indicating the status of the payment initiation. Refer to our response code documentation for details.
Example Request
curl -X POST https://api.thebridgesolutions.com/make_payment \
-H "Authorization: Basic YOUR_ENCODED_CREDENTIALS" \
-H "Content-Type: application/json" \
-d '{
"service_id": 12345,
"reference": "REF123456",
"transaction_id": "TXN987654",
"trans_type": "DTTW",
"amount": 100.50,
"nw": "CRD",
"nickname": "Wallet Funding",
"payment_option": "CRD",
"currency_code": "GHS",
"currency_val": "100.50",
"callback_url": "https://your-domain.com/callback",
"landing_page": "https://your-domain.com/landing",
"request_time": "2024-06-28 12:46"
}'
Example Response
// MOBILE MONEY
{
"response_message": "Request successfully received for processing",
"response_code": "202",
}
// CARD PAYMENT
{
"response_message": "Successful",
"response_code": "000",
"redirect_url": "https://paymentpage.com/en/payment/123456789"
}

