Send Payment (Legacy)
curl --request POST \
--url https://api.example.com/v1/payments \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"recipient": {
"recipient.name": "<string>",
"recipient.account_number": "<string>",
"recipient.routing_number": "<string>",
"recipient.email": "<string>"
},
"description": "<string>",
"idempotency_key": "<string>"
}
'import requests
url = "https://api.example.com/v1/payments"
payload = {
"amount": 123,
"recipient": {
"recipient.name": "<string>",
"recipient.account_number": "<string>",
"recipient.routing_number": "<string>",
"recipient.email": "<string>"
},
"description": "<string>",
"idempotency_key": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
recipient: {
'recipient.name': '<string>',
'recipient.account_number': '<string>',
'recipient.routing_number': '<string>',
'recipient.email': '<string>'
},
description: '<string>',
idempotency_key: '<string>'
})
};
fetch('https://api.example.com/v1/payments', 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.example.com/v1/payments",
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' => 123,
'recipient' => [
'recipient.name' => '<string>',
'recipient.account_number' => '<string>',
'recipient.routing_number' => '<string>',
'recipient.email' => '<string>'
],
'description' => '<string>',
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/v1/payments")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"amount": 123,
"recipient_name": "<string>",
"created_at": "<string>",
"estimated_arrival": {}
}Agent API
Send Payment (Legacy)
Send an outbound fiat payment to an external bank account via ACH.
POST
/
v1
/
payments
Send Payment (Legacy)
curl --request POST \
--url https://api.example.com/v1/payments \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"recipient": {
"recipient.name": "<string>",
"recipient.account_number": "<string>",
"recipient.routing_number": "<string>",
"recipient.email": "<string>"
},
"description": "<string>",
"idempotency_key": "<string>"
}
'import requests
url = "https://api.example.com/v1/payments"
payload = {
"amount": 123,
"recipient": {
"recipient.name": "<string>",
"recipient.account_number": "<string>",
"recipient.routing_number": "<string>",
"recipient.email": "<string>"
},
"description": "<string>",
"idempotency_key": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
recipient: {
'recipient.name': '<string>',
'recipient.account_number': '<string>',
'recipient.routing_number': '<string>',
'recipient.email': '<string>'
},
description: '<string>',
idempotency_key: '<string>'
})
};
fetch('https://api.example.com/v1/payments', 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.example.com/v1/payments",
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' => 123,
'recipient' => [
'recipient.name' => '<string>',
'recipient.account_number' => '<string>',
'recipient.routing_number' => '<string>',
'recipient.email' => '<string>'
],
'description' => '<string>',
'idempotency_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/v1/payments"
payload := strings.NewReader("{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/v1/payments")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"recipient\": {\n \"recipient.name\": \"<string>\",\n \"recipient.account_number\": \"<string>\",\n \"recipient.routing_number\": \"<string>\",\n \"recipient.email\": \"<string>\"\n },\n \"description\": \"<string>\",\n \"idempotency_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"amount": 123,
"recipient_name": "<string>",
"created_at": "<string>",
"estimated_arrival": {}
}This endpoint is deprecated. Use POST /v1/pay with a bank details recipient object instead.
Requires a bearer token with the
pay permission.Request Body
integer
required
Payment amount in cents. Must be between 1 and 100,000,000 ($1,000,000.00).
object
required
string
Payment description for record-keeping. Max 500 characters.
string
Unique key to prevent duplicate payments. Alphanumeric plus
_, -, :, .. Max 255 characters.Response
string
required
Unique transaction identifier.
string
required
Transaction status:
pending, processing, completed, or failed.integer
required
Payment amount in cents.
string
required
Name of the payment recipient.
string
required
ISO 8601 timestamp of when the payment was created.
string | null
required
Estimated delivery time (e.g., “2-3 business days”).
null if no ACH transfer was initiated.Examples
curl -X POST https://api.unwall.xyz/v1/payments \
-H "Authorization: Bearer aw_live_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"amount": 250000,
"recipient": {
"name": "Acme Supplies Inc",
"account_number": "9876543210",
"routing_number": "021000021",
"email": "billing@acme.com"
},
"description": "Monthly supply order #47",
"idempotency_key": "order-47-2026-03"
}'
import requests
resp = requests.post(
"https://api.unwall.xyz/v1/payments",
headers={"Authorization": "Bearer aw_live_xxxxxxxxxxxx"},
json={
"amount": 250000,
"recipient": {
"name": "Acme Supplies Inc",
"account_number": "9876543210",
"routing_number": "021000021",
"email": "billing@acme.com",
},
"description": "Monthly supply order #47",
"idempotency_key": "order-47-2026-03",
},
)
result = resp.json()
print(f"Payment {result['id']} — {result['status']}")
print(f"Arrives: {result['estimated_arrival']}")
const resp = await fetch("https://api.unwall.xyz/v1/payments", {
method: "POST",
headers: {
Authorization: "Bearer aw_live_xxxxxxxxxxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 250000,
recipient: {
name: "Acme Supplies Inc",
account_number: "9876543210",
routing_number: "021000021",
email: "billing@acme.com",
},
description: "Monthly supply order #47",
idempotency_key: "order-47-2026-03",
}),
});
const result = await resp.json();
console.log(`Payment ${result.id} — ${result.status}`);
console.log(`Arrives: ${result.estimated_arrival}`);
Response (201 Created)
{
"id": "tx_fiat_abc123",
"status": "processing",
"amount": 250000,
"recipient_name": "Acme Supplies Inc",
"created_at": "2026-03-11T14:30:00Z",
"estimated_arrival": "2-3 business days"
}
Idempotency
If you provide anidempotency_key and a transaction with that key already exists for this project, the API returns the original transaction with a 200 OK status (not 201 Created). The request body is not re-evaluated.
Always include an idempotency key when sending payments from automated agents. Use a deterministic key tied to your business logic (e.g., invoice number, order ID) to guarantee at-most-once delivery.