Create bank account recipient
curl --request POST \
--url https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accountNumber": "1234567890",
"bankId": "bank-001",
"accountName": "John Doe",
"country": "zm"
}
'import requests
url = "https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account"
payload = {
"accountNumber": "1234567890",
"bankId": "bank-001",
"accountName": "John Doe",
"country": "zm"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountNumber: '1234567890',
bankId: 'bank-001',
accountName: 'John Doe',
country: 'zm'
})
};
fetch('https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account', 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/transfer-recipients/bank-account",
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([
'accountNumber' => '1234567890',
'bankId' => 'bank-001',
'accountName' => 'John Doe',
'country' => 'zm'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account"
payload := strings.NewReader("{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.usebila.com/api/v1/bila/transfer-recipients/bank-account")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f4",
"type": "bank-account",
"accountName": "John Doe",
"country": "zm",
"createdAt": "2024-01-15T10:30:00Z",
"accountNumber": "1234567890",
"bankId": "bank-001",
"bankName": "Zambia National Commercial Bank",
"phone": "0977123456",
"operator": "airtel"
}
}Transfer Recipients
Create bank account recipient
Create a new bank account transfer recipient
POST
/
api
/
v1
/
bila
/
transfer-recipients
/
bank-account
Create bank account recipient
curl --request POST \
--url https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accountNumber": "1234567890",
"bankId": "bank-001",
"accountName": "John Doe",
"country": "zm"
}
'import requests
url = "https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account"
payload = {
"accountNumber": "1234567890",
"bankId": "bank-001",
"accountName": "John Doe",
"country": "zm"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountNumber: '1234567890',
bankId: 'bank-001',
accountName: 'John Doe',
country: 'zm'
})
};
fetch('https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account', 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/transfer-recipients/bank-account",
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([
'accountNumber' => '1234567890',
'bankId' => 'bank-001',
'accountName' => 'John Doe',
'country' => 'zm'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account"
payload := strings.NewReader("{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.usebila.com/api/v1/bila/transfer-recipients/bank-account")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usebila.com/api/v1/bila/transfer-recipients/bank-account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"1234567890\",\n \"bankId\": \"bank-001\",\n \"accountName\": \"John Doe\",\n \"country\": \"zm\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Operation completed successfully",
"data": {
"id": "68f11209-451f-4a15-bfcd-d916eb8b09f4",
"type": "bank-account",
"accountName": "John Doe",
"country": "zm",
"createdAt": "2024-01-15T10:30:00Z",
"accountNumber": "1234567890",
"bankId": "bank-001",
"bankName": "Zambia National Commercial Bank",
"phone": "0977123456",
"operator": "airtel"
}
}Authorizations
Merchant API key (e.g., sk_live_xxx or sk_test_xxx)
Body
application/json
Was this page helpful?
⌘I
