Legacy: Get payout
curl --request GET \
--url https://api.daya.co/v1/payouts/{id} \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.daya.co/v1/payouts/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.daya.co/v1/payouts/{id}', 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.daya.co/v1/payouts/{id}",
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: <x-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.daya.co/v1/payouts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-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.daya.co/v1/payouts/{id}")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/payouts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"type": "NGN_PAYOUT",
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789abc",
"reference": "PAY-NGN-20250105-001",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "NGN",
"source_amount": "100.00",
"destination_amount": "155050.00",
"fee": "1.50",
"rate": {
"side": "SELL",
"value": "1550.50",
"captured_at": "2025-01-05T15:04:05Z"
},
"recipient": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "BANK_ACCOUNT",
"bank_account": {
"account_number": "1234567890",
"account_name": "John Doe",
"bank_code": "044",
"bank_name": "Access Bank"
},
"crypto_address": null,
"created_at": "2025-01-05T15:04:05Z"
},
"sender": {
"type": "MERCHANT",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901abc"
},
"tx_hash": null,
"created_at": "2025-01-05T15:04:05Z",
"settled_at": "2025-01-05T15:10:00Z"
}
{
"type": "CRYPTO_PAYOUT",
"id": "d4e5f6a7-b8c9-0123-defg-456789012bcd",
"reference": "PAY-CRYPTO-20250105-002",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "USDC",
"source_amount": "500.00",
"destination_amount": "499.25",
"fee": "0.75",
"rate": {
"side": "SELL",
"value": "1.00",
"captured_at": "2025-01-05T16:20:00Z"
},
"recipient": {
"id": "e5f6a7b8-c9d0-1234-efgh-567890123cde",
"type": "CRYPTO_ADDRESS",
"bank_account": null,
"crypto_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"created_at": "2025-01-05T16:18:00Z"
},
"sender": {
"type": "CUSTOMER",
"id": "f6a7b8c9-d0e1-2345-fghi-678901234def"
},
"tx_hash": "0x9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8",
"created_at": "2025-01-05T16:20:00Z",
"settled_at": "2025-01-05T16:22:30Z"
}
{
"error": {
"code": "payout_not_found",
"message": "Payout not found",
"details": "No payout with ID b2c3d4e5-f6a7-8901-bcde-000000000000 found for this merchant"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key",
"details": "Provide a valid API key via the X-Api-Key header"
}
}
Payouts
Legacy: Get payout
Legacy route for retrieving a settlement payout
GET
/
v1
/
payouts
/
{id}
Legacy: Get payout
curl --request GET \
--url https://api.daya.co/v1/payouts/{id} \
--header 'X-Api-Key: <x-api-key>'import requests
url = "https://api.daya.co/v1/payouts/{id}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://api.daya.co/v1/payouts/{id}', 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.daya.co/v1/payouts/{id}",
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: <x-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.daya.co/v1/payouts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<x-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.daya.co/v1/payouts/{id}")
.header("X-Api-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/payouts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"type": "NGN_PAYOUT",
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789abc",
"reference": "PAY-NGN-20250105-001",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "NGN",
"source_amount": "100.00",
"destination_amount": "155050.00",
"fee": "1.50",
"rate": {
"side": "SELL",
"value": "1550.50",
"captured_at": "2025-01-05T15:04:05Z"
},
"recipient": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "BANK_ACCOUNT",
"bank_account": {
"account_number": "1234567890",
"account_name": "John Doe",
"bank_code": "044",
"bank_name": "Access Bank"
},
"crypto_address": null,
"created_at": "2025-01-05T15:04:05Z"
},
"sender": {
"type": "MERCHANT",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901abc"
},
"tx_hash": null,
"created_at": "2025-01-05T15:04:05Z",
"settled_at": "2025-01-05T15:10:00Z"
}
{
"type": "CRYPTO_PAYOUT",
"id": "d4e5f6a7-b8c9-0123-defg-456789012bcd",
"reference": "PAY-CRYPTO-20250105-002",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "USDC",
"source_amount": "500.00",
"destination_amount": "499.25",
"fee": "0.75",
"rate": {
"side": "SELL",
"value": "1.00",
"captured_at": "2025-01-05T16:20:00Z"
},
"recipient": {
"id": "e5f6a7b8-c9d0-1234-efgh-567890123cde",
"type": "CRYPTO_ADDRESS",
"bank_account": null,
"crypto_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"created_at": "2025-01-05T16:18:00Z"
},
"sender": {
"type": "CUSTOMER",
"id": "f6a7b8c9-d0e1-2345-fghi-678901234def"
},
"tx_hash": "0x9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8",
"created_at": "2025-01-05T16:20:00Z",
"settled_at": "2025-01-05T16:22:30Z"
}
{
"error": {
"code": "payout_not_found",
"message": "Payout not found",
"details": "No payout with ID b2c3d4e5-f6a7-8901-bcde-000000000000 found for this merchant"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key",
"details": "Provide a valid API key via the X-Api-Key header"
}
}
Overview
Retrieve a read-only settlement payout by ID.Payouts are legacy read-only settlement artifacts. Merchant-initiated sends use the Transfers API.
Authentication
Your merchant API key
Path Parameters
Unique payout identifier (UUID)Example:
b2c3d4e5-f6a7-8901-bcde-f23456789abcRequest Examples
curl --request GET \
--url https://api.daya.co/v1/payouts/b2c3d4e5-f6a7-8901-bcde-f23456789abc \
--header 'X-Api-Key: YOUR_API_KEY'
const response = await fetch(
'https://api.daya.co/v1/payouts/b2c3d4e5-f6a7-8901-bcde-f23456789abc',
{
headers: {
'X-Api-Key': 'YOUR_API_KEY'
}
}
);
const payout = await response.json();
Response
Same structure as individual payout objects in list response.Success Response
{
"type": "NGN_PAYOUT",
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789abc",
"reference": "PAY-NGN-20250105-001",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "NGN",
"source_amount": "100.00",
"destination_amount": "155050.00",
"fee": "1.50",
"rate": {
"side": "SELL",
"value": "1550.50",
"captured_at": "2025-01-05T15:04:05Z"
},
"recipient": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "BANK_ACCOUNT",
"bank_account": {
"account_number": "1234567890",
"account_name": "John Doe",
"bank_code": "044",
"bank_name": "Access Bank"
},
"crypto_address": null,
"created_at": "2025-01-05T15:04:05Z"
},
"sender": {
"type": "MERCHANT",
"id": "c3d4e5f6-a7b8-9012-cdef-345678901abc"
},
"tx_hash": null,
"created_at": "2025-01-05T15:04:05Z",
"settled_at": "2025-01-05T15:10:00Z"
}
{
"type": "CRYPTO_PAYOUT",
"id": "d4e5f6a7-b8c9-0123-defg-456789012bcd",
"reference": "PAY-CRYPTO-20250105-002",
"status": "SETTLED",
"source_currency": "USD",
"destination_currency": "USDC",
"source_amount": "500.00",
"destination_amount": "499.25",
"fee": "0.75",
"rate": {
"side": "SELL",
"value": "1.00",
"captured_at": "2025-01-05T16:20:00Z"
},
"recipient": {
"id": "e5f6a7b8-c9d0-1234-efgh-567890123cde",
"type": "CRYPTO_ADDRESS",
"bank_account": null,
"crypto_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"created_at": "2025-01-05T16:18:00Z"
},
"sender": {
"type": "CUSTOMER",
"id": "f6a7b8c9-d0e1-2345-fghi-678901234def"
},
"tx_hash": "0x9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8",
"created_at": "2025-01-05T16:20:00Z",
"settled_at": "2025-01-05T16:22:30Z"
}
{
"error": {
"code": "payout_not_found",
"message": "Payout not found",
"details": "No payout with ID b2c3d4e5-f6a7-8901-bcde-000000000000 found for this merchant"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key",
"details": "Provide a valid API key via the X-Api-Key header"
}
}
Next Steps
List Payouts
View all payouts with filters
List Deposits
View incoming deposits
⌘I