Get a bills transaction
curl --request GET \
--url https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/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://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status",
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: Bearer <token>"
],
]);
$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.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "<string>",
"data": {
"id": "101",
"company_id": "28",
"master_savings_id": "55",
"bill_type": "airtime",
"direction": "debit",
"amount": "1000.00",
"fee_amount": "0.00",
"balance_after": "49000.00",
"reference": "PROVIDER-REFERENCE",
"status": "successful",
"narration": "<string>",
"savings_transaction_id": "9001",
"meta": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Bills Payment
Get a bills transaction
Looks up a bills-payment debit by the provider reference returned
on purchase. A reference that belongs to another partner, or that
does not exist, is 404 TRANSACTION_NOT_FOUND. On
DUPLICATE_REFERENCE, call this instead of purchasing again.
GET
/
services
/
bills-payment
/
transactions
/
status
Get a bills transaction
curl --request GET \
--url https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/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://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status",
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: Bearer <token>"
],
]);
$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.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rexmfbank.com/baas/api/v1/services/bills-payment/transactions/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "<string>",
"data": {
"id": "101",
"company_id": "28",
"master_savings_id": "55",
"bill_type": "airtime",
"direction": "debit",
"amount": "1000.00",
"fee_amount": "0.00",
"balance_after": "49000.00",
"reference": "PROVIDER-REFERENCE",
"status": "successful",
"narration": "<string>",
"savings_transaction_id": "9001",
"meta": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
See Authentication for the full explanation of session tokens vs. API keys and when each is used.