curl --request POST \
--url https://api.jenzy.com/v2/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount": "10000.00",
"asset": "USDC",
"destination": {
"type": "wallet",
"network": "ethereum",
"address": "0x52908400098527886E0F7030069857D2E4169EE7",
"beneficiary_name": "Jane Doe",
"beneficiary_country": "KE",
"beneficiary_date_of_birth": "1990-02-28"
},
"source_asset": "USDC",
"invoice_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.jenzy.com/v2/payouts"
payload = {
"amount": "10000.00",
"asset": "USDC",
"destination": {
"type": "wallet",
"network": "ethereum",
"address": "0x52908400098527886E0F7030069857D2E4169EE7",
"beneficiary_name": "Jane Doe",
"beneficiary_country": "KE",
"beneficiary_date_of_birth": "1990-02-28"
},
"source_asset": "USDC",
"invoice_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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: '10000.00',
asset: 'USDC',
destination: {
type: 'wallet',
network: 'ethereum',
address: '0x52908400098527886E0F7030069857D2E4169EE7',
beneficiary_name: 'Jane Doe',
beneficiary_country: 'KE',
beneficiary_date_of_birth: '1990-02-28'
},
source_asset: 'USDC',
invoice_document_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.jenzy.com/v2/payouts', 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/v2/payouts",
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' => '10000.00',
'asset' => 'USDC',
'destination' => [
'type' => 'wallet',
'network' => 'ethereum',
'address' => '0x52908400098527886E0F7030069857D2E4169EE7',
'beneficiary_name' => 'Jane Doe',
'beneficiary_country' => 'KE',
'beneficiary_date_of_birth' => '1990-02-28'
],
'source_asset' => 'USDC',
'invoice_document_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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/v2/payouts"
payload := strings.NewReader("{\n \"amount\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/v2/payouts")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/payouts")
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\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"asset": "USDC",
"amount": "10000.00",
"source_asset": "USDC",
"source_amount": "10000.00",
"fee": "0.8",
"rate": null,
"destination": {
"type": "wallet",
"network": "<string>",
"address": "<string>",
"beneficiary_name": "<string>",
"beneficiary_type": "individual",
"beneficiary_country": "<string>",
"beneficiary_date_of_birth": "<string>"
},
"failure": {
"code": "recipient_account_invalid",
"message": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"terminal_at": "2023-11-07T05:31:56Z",
"receipt_url": "<string>",
"tx_hash": null
}{
"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 payout
Reserve the money and pay a beneficiary in asset. amount is what they receive; your source_asset balance is debited source_amount plus fee. The destination is validated before any money is reserved, so a refusal (422) leaves nothing behind. The response is the payout as it stands after the payment network has answered — normally pending; a payout may be failed in its creation response, with the reserved money already released. Requires an Idempotency-Key.
curl --request POST \
--url https://api.jenzy.com/v2/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount": "10000.00",
"asset": "USDC",
"destination": {
"type": "wallet",
"network": "ethereum",
"address": "0x52908400098527886E0F7030069857D2E4169EE7",
"beneficiary_name": "Jane Doe",
"beneficiary_country": "KE",
"beneficiary_date_of_birth": "1990-02-28"
},
"source_asset": "USDC",
"invoice_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.jenzy.com/v2/payouts"
payload = {
"amount": "10000.00",
"asset": "USDC",
"destination": {
"type": "wallet",
"network": "ethereum",
"address": "0x52908400098527886E0F7030069857D2E4169EE7",
"beneficiary_name": "Jane Doe",
"beneficiary_country": "KE",
"beneficiary_date_of_birth": "1990-02-28"
},
"source_asset": "USDC",
"invoice_document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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: '10000.00',
asset: 'USDC',
destination: {
type: 'wallet',
network: 'ethereum',
address: '0x52908400098527886E0F7030069857D2E4169EE7',
beneficiary_name: 'Jane Doe',
beneficiary_country: 'KE',
beneficiary_date_of_birth: '1990-02-28'
},
source_asset: 'USDC',
invoice_document_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.jenzy.com/v2/payouts', 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/v2/payouts",
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' => '10000.00',
'asset' => 'USDC',
'destination' => [
'type' => 'wallet',
'network' => 'ethereum',
'address' => '0x52908400098527886E0F7030069857D2E4169EE7',
'beneficiary_name' => 'Jane Doe',
'beneficiary_country' => 'KE',
'beneficiary_date_of_birth' => '1990-02-28'
],
'source_asset' => 'USDC',
'invoice_document_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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/v2/payouts"
payload := strings.NewReader("{\n \"amount\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/v2/payouts")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/payouts")
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\": \"10000.00\",\n \"asset\": \"USDC\",\n \"destination\": {\n \"type\": \"wallet\",\n \"network\": \"ethereum\",\n \"address\": \"0x52908400098527886E0F7030069857D2E4169EE7\",\n \"beneficiary_name\": \"Jane Doe\",\n \"beneficiary_country\": \"KE\",\n \"beneficiary_date_of_birth\": \"1990-02-28\"\n },\n \"source_asset\": \"USDC\",\n \"invoice_document_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"asset": "USDC",
"amount": "10000.00",
"source_asset": "USDC",
"source_amount": "10000.00",
"fee": "0.8",
"rate": null,
"destination": {
"type": "wallet",
"network": "<string>",
"address": "<string>",
"beneficiary_name": "<string>",
"beneficiary_type": "individual",
"beneficiary_country": "<string>",
"beneficiary_date_of_birth": "<string>"
},
"failure": {
"code": "recipient_account_invalid",
"message": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"terminal_at": "2023-11-07T05:31:56Z",
"receipt_url": "<string>",
"tx_hash": null
}{
"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
Created. status is normally pending; it can be held (the payment network has not yet acknowledged — poll) or already failed.
Lifecycle: held (money reserved, the payment network has not yet acknowledged) → pending → succeeded | failed. succeeded, failed and reversed are terminal. A payout may already be failed in its creation response: the destination was accepted but the payment network refused it at once, and the reserved money is released. reversed means the payout succeeded and was then clawed back — it is not a failure and carries no failure object.
received, validated, held, submitted, pending, succeeded, failed, reversed "pending"
The on-chain hash of a wallet payout: an Ethereum transaction hash or a Solana signature. Set while the payout is pending, from the first read that has it, so you can follow the transfer on a block explorer. Null before Hermes has the hash, and for each payout that is not a wallet payout.
null