curl --request POST \
--url https://api.globalstack.io/v1/transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wallet_id": "<string>",
"beneficiary_id": "<string>",
"amount": "<string>",
"reference": "<string>",
"source_currency": "<string>",
"destination_currency": "<string>",
"retry_on_failure": true,
"metadata": {}
}
'import requests
url = "https://api.globalstack.io/v1/transfers"
payload = {
"wallet_id": "<string>",
"beneficiary_id": "<string>",
"amount": "<string>",
"reference": "<string>",
"source_currency": "<string>",
"destination_currency": "<string>",
"retry_on_failure": True,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_id: '<string>',
beneficiary_id: '<string>',
amount: '<string>',
reference: '<string>',
source_currency: '<string>',
destination_currency: '<string>',
retry_on_failure: true,
metadata: {}
})
};
fetch('https://api.globalstack.io/v1/transfers', 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.globalstack.io/v1/transfers",
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([
'wallet_id' => '<string>',
'beneficiary_id' => '<string>',
'amount' => '<string>',
'reference' => '<string>',
'source_currency' => '<string>',
'destination_currency' => '<string>',
'retry_on_failure' => true,
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.globalstack.io/v1/transfers"
payload := strings.NewReader("{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.globalstack.io/v1/transfers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Transfer executed successfully",
"code": "ok",
"data": {
"id": "tfr_01EXAMPLE",
"reference": "INV-2026-001",
"status": "processing",
"retry_on_failure": true,
"customer": {
"id": "cust_seed_alice",
"type": "individual",
"name": "Alice Johnson",
"email": "alice.seed@globalstack.mock",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"wallet": {
"id": "wal_seed_alice_usdc",
"currency": "USDC",
"label": "USDC Wallet"
},
"beneficiary": {
"id": "ben_01KPBAP7WTDKQKW5B3R31VPNX4",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"name": "Alice Bank Beneficiary",
"type": "fiat",
"currency": "NGN",
"details": {
"country_code": "NG",
"network": "bank",
"account_number": "0039415616",
"provider": {
"id": "prov_01KPBAP7WTDKQKW5B3R31VPNX4",
"name": "Access Bank",
"code": "000014"
},
"rail": "payshap",
"account_name": "ALICE JOHNSON"
},
"metadata": {},
"status": "pending",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z",
"label": "Alice's salary account",
"merchant_reference": "ref_01HXYZ4K5ABCDEFGHJKLMNPQRS"
},
"amount": "5.000000",
"currency": "USDC",
"network": "base",
"metadata": {
"payout_batch": "batch_001"
},
"created_at": "2026-04-22T02:00:00.000Z",
"updated_at": "2026-04-22T02:00:00.000Z",
"transaction_hash": null,
"failure_reason": null,
"failure_reason_message": null,
"fee": "<unknown>"
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Execute a transfer
Pay out from a wallet to a beneficiary in the same currency. The beneficiary decides where the money goes: a fiat beneficiary pays a bank account, mobile money wallet or PayShap proxy, and a crypto beneficiary pays an on-chain address.
The transfer starts as processing and then becomes success or failed. Follow it with the
transfer.* webhooks.
Body
| Field | Required | Description |
|---|---|---|
wallet_id | Yes | The wallet to pay from (wal_…). |
beneficiary_id | Yes | Who to pay (ben_…). Must be in the wallet’s currency. |
amount | Yes | Decimal string, within the network’s outbound limits. |
reference | Yes | Your id, unique per integration and never reusable. A reused one returns 409 duplicate_resource. |
source_currency, destination_currency | No | If sent, they must match the wallet and beneficiary currencies. |
metadata | No | Record<string, string>. |
Send an Idempotency-Key header so retries are safe.
Fiat transfers
| Currency | Destination | Beneficiary needs |
|---|---|---|
| NGN | Bank | 10-digit NUBAN + bank provider_id |
| ZAR | Bank | Account number + the bank’s provider_id + account_name |
| ZAR | PayShap | Mobile number (E.164) or ShapName |
| GHS | Bank | Account number + bank provider_id |
| GHS | Mobile money | Mobile number + operator provider_id |
Fees are added on top. The beneficiary receives amount in full, and your wallet is debited
amount + fee. The wallet must hold both, or the request fails with
422 ledger_insufficient_funds. The response shows the charge as fee: { amount, currency }.
To know the fee in advance, read your route’s schedule from
fees.payment_methods[].transfer on GET /v1/currencies:
- Take the tiers whose
[transaction_value_min, transaction_value_max]range contains your amount. Both ends are inclusive. - Sort them by
weight, lowest first. - For each tier, deduct
max(min_fee, min(raw, max_fee))from a running net.rawisfee_valuefor aflattier, ornet × fee_value / 100for apercentagetier. - The fee is the sum of the deductions, rounded down to 2 decimal places.
A route with no published schedule is refused with 400 invalid_input before the transfer is
created, so your reference stays unused.
Crypto transfers
- No fee:
feeisnull. - USDC settles in whole cents, so
amountcan have at most 2 decimal places, ignoring trailing zeros.2.980000is fine, but2.980228returns400 invalid_amount_precision.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Currencies don’t match, the beneficiary is missing details its route needs, or the route has no fee schedule. |
| 400 | invalid_amount_precision | USDC amount with more than 2 decimal places. |
| 409 | duplicate_resource | reference already used. |
| 422 | ledger_insufficient_funds | The balance doesn’t cover amount (+ fee for fiat). |
Example
POST /v1/transfers
Idempotency-Key: payout-inv-2026-001
{
"wallet_id": "wal_01HXYZ…",
"beneficiary_id": "ben_01KPBAP…",
"amount": "250.00",
"reference": "payout-inv-2026-001"
}
curl --request POST \
--url https://api.globalstack.io/v1/transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wallet_id": "<string>",
"beneficiary_id": "<string>",
"amount": "<string>",
"reference": "<string>",
"source_currency": "<string>",
"destination_currency": "<string>",
"retry_on_failure": true,
"metadata": {}
}
'import requests
url = "https://api.globalstack.io/v1/transfers"
payload = {
"wallet_id": "<string>",
"beneficiary_id": "<string>",
"amount": "<string>",
"reference": "<string>",
"source_currency": "<string>",
"destination_currency": "<string>",
"retry_on_failure": True,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_id: '<string>',
beneficiary_id: '<string>',
amount: '<string>',
reference: '<string>',
source_currency: '<string>',
destination_currency: '<string>',
retry_on_failure: true,
metadata: {}
})
};
fetch('https://api.globalstack.io/v1/transfers', 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.globalstack.io/v1/transfers",
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([
'wallet_id' => '<string>',
'beneficiary_id' => '<string>',
'amount' => '<string>',
'reference' => '<string>',
'source_currency' => '<string>',
'destination_currency' => '<string>',
'retry_on_failure' => true,
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.globalstack.io/v1/transfers"
payload := strings.NewReader("{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.globalstack.io/v1/transfers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_id\": \"<string>\",\n \"beneficiary_id\": \"<string>\",\n \"amount\": \"<string>\",\n \"reference\": \"<string>\",\n \"source_currency\": \"<string>\",\n \"destination_currency\": \"<string>\",\n \"retry_on_failure\": true,\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Transfer executed successfully",
"code": "ok",
"data": {
"id": "tfr_01EXAMPLE",
"reference": "INV-2026-001",
"status": "processing",
"retry_on_failure": true,
"customer": {
"id": "cust_seed_alice",
"type": "individual",
"name": "Alice Johnson",
"email": "alice.seed@globalstack.mock",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"wallet": {
"id": "wal_seed_alice_usdc",
"currency": "USDC",
"label": "USDC Wallet"
},
"beneficiary": {
"id": "ben_01KPBAP7WTDKQKW5B3R31VPNX4",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"name": "Alice Bank Beneficiary",
"type": "fiat",
"currency": "NGN",
"details": {
"country_code": "NG",
"network": "bank",
"account_number": "0039415616",
"provider": {
"id": "prov_01KPBAP7WTDKQKW5B3R31VPNX4",
"name": "Access Bank",
"code": "000014"
},
"rail": "payshap",
"account_name": "ALICE JOHNSON"
},
"metadata": {},
"status": "pending",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z",
"label": "Alice's salary account",
"merchant_reference": "ref_01HXYZ4K5ABCDEFGHJKLMNPQRS"
},
"amount": "5.000000",
"currency": "USDC",
"network": "base",
"metadata": {
"payout_batch": "batch_001"
},
"created_at": "2026-04-22T02:00:00.000Z",
"updated_at": "2026-04-22T02:00:00.000Z",
"transaction_hash": null,
"failure_reason": null,
"failure_reason_message": null,
"fee": "<unknown>"
},
"meta": {
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}{
"status": false,
"message": "Resource not found",
"code": "not_found",
"data": null,
"meta": {
"next_steps": {
"action": "Verify the resource identifier and retry.",
"docs_url": "https://docs.globalstack.io/errors#not_found"
},
"request_id": "req_01HXYZ4K5ABCDEFGHJKLMNPQRS",
"timestamp": "2026-05-14T15:43:55.732Z",
"version": "1"
}
}Headers
Optional client-supplied key. Identical key + identical body within 24h replays the original response. Identical key + different body returns 409 idempotency_conflict. The hash is over raw bytes — clients retrying must send the byte-identical body; a re-serialised JSON payload will produce a different hash and a 409. Strongly recommended for retry-safe clients.
^[A-Za-z0-9_\-]{8,255}$Body
ExecuteTransferDto
Response
Transfer executed successfully