List transfers
curl --request GET \
--url https://api.usebila.com/api/v1/bila/transfers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.usebila.com/api/v1/bila/transfers', 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.usebila.com/api/v1/bila/transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.usebila.com/api/v1/bila/transfers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.usebila.com/api/v1/bila/transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"data": [
{
"id": "txn-001",
"reference": "payout-12345",
"type": "bank-account",
"status": "successful",
"amount": 1000,
"currency": "ZMW",
"recipient": {
"accountName": "JOHN DOE",
"accountNumber": "1234567890",
"bankName": "Zambia National Commercial Bank",
"phone": "0977123456",
"operator": "airtel"
},
"createdAt": "2024-01-15T10:30:00Z",
"narration": "Salary payment",
"completedAt": "2024-01-15T10:31:00Z"
}
],
"meta": {
"total": 150,
"perPage": 50,
"currentPage": 1,
"pageCount": 3
}
}
}Transfers
List transfers
Retrieve a paginated list of transfers/payouts for the authenticated merchant
GET
/
api
/
v1
/
bila
/
transfers
List transfers
curl --request GET \
--url https://api.usebila.com/api/v1/bila/transfers \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usebila.com/api/v1/bila/transfers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.usebila.com/api/v1/bila/transfers', 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.usebila.com/api/v1/bila/transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.usebila.com/api/v1/bila/transfers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.usebila.com/api/v1/bila/transfers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"data": [
{
"id": "txn-001",
"reference": "payout-12345",
"type": "bank-account",
"status": "successful",
"amount": 1000,
"currency": "ZMW",
"recipient": {
"accountName": "JOHN DOE",
"accountNumber": "1234567890",
"bankName": "Zambia National Commercial Bank",
"phone": "0977123456",
"operator": "airtel"
},
"createdAt": "2024-01-15T10:30:00Z",
"narration": "Salary payment",
"completedAt": "2024-01-15T10:31:00Z"
}
],
"meta": {
"total": 150,
"perPage": 50,
"currentPage": 1,
"pageCount": 3
}
}
}Authorizations
Merchant API key (e.g., sk_live_xxx or sk_test_xxx)
Query Parameters
Page number (default: 1)
Required range:
x >= 1Example:
1
Items per page (default: 50)
Required range:
1 <= x <= 100Example:
50
Filter by transfer status
Available options:
pending, successful, failed Filter by transfer type
Available options:
bank-account, mobile-money Filter by account ID
Example:
"68f11209-451f-4a15-bfcd-d916eb8b09f4"
Filter by start date (ISO 8601)
Example:
"2024-01-01T00:00:00Z"
Filter by end date (ISO 8601)
Example:
"2024-12-31T23:59:59Z"
Was this page helpful?
