curl --request POST \
--url https://api.jenzy.com/v1/payouts/bank \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount_mwk": 250000,
"institution_id": 221400,
"account_number": "<string>",
"beneficiary_name": "<string>"
}
'import requests
url = "https://api.jenzy.com/v1/payouts/bank"
payload = {
"amount_mwk": 250000,
"institution_id": 221400,
"account_number": "<string>",
"beneficiary_name": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount_mwk: 250000,
institution_id: 221400,
account_number: '<string>',
beneficiary_name: '<string>'
})
};
fetch('https://api.jenzy.com/v1/payouts/bank', 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.jenzy.com/v1/payouts/bank",
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([
'amount_mwk' => 250000,
'institution_id' => 221400,
'account_number' => '<string>',
'beneficiary_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.jenzy.com/v1/payouts/bank"
payload := strings.NewReader("{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.jenzy.com/v1/payouts/bank")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v1/payouts/bank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_mwk": "250000.00",
"fee": "360.00",
"rail": "bank",
"status": "succeeded",
"destination": {
"institution_id": 123,
"account_number": "<string>",
"beneficiary_name": "<string>"
},
"failure": {
"code": "recipient_account_invalid",
"message": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"terminal_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Create a bank payout
Hold funds and queue a payout to a bank account. The endpoint is the rail — there is no rail field in the body. Requires an Idempotency-Key.
curl --request POST \
--url https://api.jenzy.com/v1/payouts/bank \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount_mwk": 250000,
"institution_id": 221400,
"account_number": "<string>",
"beneficiary_name": "<string>"
}
'import requests
url = "https://api.jenzy.com/v1/payouts/bank"
payload = {
"amount_mwk": 250000,
"institution_id": 221400,
"account_number": "<string>",
"beneficiary_name": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount_mwk: 250000,
institution_id: 221400,
account_number: '<string>',
beneficiary_name: '<string>'
})
};
fetch('https://api.jenzy.com/v1/payouts/bank', 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.jenzy.com/v1/payouts/bank",
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([
'amount_mwk' => 250000,
'institution_id' => 221400,
'account_number' => '<string>',
'beneficiary_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.jenzy.com/v1/payouts/bank"
payload := strings.NewReader("{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.jenzy.com/v1/payouts/bank")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v1/payouts/bank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_mwk\": 250000,\n \"institution_id\": 221400,\n \"account_number\": \"<string>\",\n \"beneficiary_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_mwk": "250000.00",
"fee": "360.00",
"rail": "bank",
"status": "succeeded",
"destination": {
"institution_id": 123,
"account_number": "<string>",
"beneficiary_name": "<string>"
},
"failure": {
"code": "recipient_account_invalid",
"message": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"terminal_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Headers
Body
Response
Accepted: funds are held and the payout is queued for submission. Track it via webhooks or GET /payouts/{id}.
What the provider charged for this payout, passed through to you at cost — an exact decimal string at two decimal places (fees are not whole kwacha), so parse it with a decimal library and never a float.
null means the fee is not known — usually because the payout is still in flight, but a terminal payout can also read null when the provider reported no fee for it. It never means free, so do not treat null as zero, and do not treat it as proof the payout is still moving — status is what tells you that.
A failed payout reads "0.00" — fees apply to successful transfers only — and a reversed payout keeps the fee it was charged, because it did succeed before it was clawed back.
Your balance must cover the amount plus the fee.
"360.00"
Lifecycle: received → validated → held → submitted → pending → succeeded | failed. succeeded, failed and reversed are terminal. reversed means the payout succeeded and the provider then clawed the transfer back — it is not a failure and carries no failure object.
received, validated, held, submitted, pending, succeeded, failed, reversed "succeeded"