curl --request POST \
--url https://api.globalstack.io/v1/beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"label": "<string>",
"currency": "<string>",
"network": "bank",
"metadata": {},
"merchant_reference": "<string>",
"customer_id": "<string>",
"country_code": "<string>",
"provider_id": "prov_01JBQR7K3M9XZVTNA4H5C2PDES",
"rail": "payshap",
"account_number": "<string>",
"account_name": "<string>",
"address": "<string>"
}
'import requests
url = "https://api.globalstack.io/v1/beneficiaries"
payload = {
"name": "<string>",
"label": "<string>",
"currency": "<string>",
"network": "bank",
"metadata": {},
"merchant_reference": "<string>",
"customer_id": "<string>",
"country_code": "<string>",
"provider_id": "prov_01JBQR7K3M9XZVTNA4H5C2PDES",
"rail": "payshap",
"account_number": "<string>",
"account_name": "<string>",
"address": "<string>"
}
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({
name: '<string>',
label: '<string>',
currency: '<string>',
network: 'bank',
metadata: {},
merchant_reference: '<string>',
customer_id: '<string>',
country_code: '<string>',
provider_id: 'prov_01JBQR7K3M9XZVTNA4H5C2PDES',
rail: 'payshap',
account_number: '<string>',
account_name: '<string>',
address: '<string>'
})
};
fetch('https://api.globalstack.io/v1/beneficiaries', 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/beneficiaries",
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([
'name' => '<string>',
'label' => '<string>',
'currency' => '<string>',
'network' => 'bank',
'metadata' => [
],
'merchant_reference' => '<string>',
'customer_id' => '<string>',
'country_code' => '<string>',
'provider_id' => 'prov_01JBQR7K3M9XZVTNA4H5C2PDES',
'rail' => 'payshap',
'account_number' => '<string>',
'account_name' => '<string>',
'address' => '<string>'
]),
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/beneficiaries"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\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/beneficiaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/beneficiaries")
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 \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Beneficiary created successfully",
"code": "ok",
"data": {
"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"
},
"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"
}
}Create a beneficiary
Save a payout destination: a bank account, mobile money wallet or PayShap proxy (fiat), or an
on-chain address (crypto). You then pay it with a transfer or an offramp.
Send every field at the top level. On read, account details are nested under details, and
provider_id is expanded to provider. For a walkthrough, see
Beneficiaries.
Body: every beneficiary
| Field | Required | Description |
|---|---|---|
type | Yes | fiat or crypto. |
name | Yes | Max 255 chars. |
label | Yes | A short tag for your UI. Max 128 chars. |
currency | Yes | e.g. NGN, USDC. |
customer_id | No | Owner (cust_…). Omit it for your own merchant account. |
merchant_reference | No | Your id, unique per integration. Max 128 chars. Generated as ref_… if omitted. |
metadata | No | Record<string, string>. |
Body: fiat
| Field | Required | Description |
|---|---|---|
country_code | Yes | ISO 3166-1 alpha-2, e.g. NG. |
network | Yes | bank or mobile_money: what the destination is. |
rail | No | How money reaches it. Only payshap, which is valid only for ZAR bank in ZA. Omit it for the default. |
account_number | Yes | A bank account number, a mobile number for mobile_money, or a PayShap proxy (an E.164 mobile number, or a ShapName like acme@nedbank, exactly as given). |
provider_id | Yes | The bank or operator (prov_…), from GET /v1/countries/{code}/providers. Not needed for PayShap: ignored if sent, though still format-checked. |
account_name | No | Optional where we look the name up: NGN and GHS bank accounts, and PayShap. Your value is then replaced by the looked-up name. Required everywhere else, including mobile money. |
Body: crypto
| Field | Required | Description |
|---|---|---|
network | Yes | solana, base or ethereum. |
address | Yes | Max 128 chars. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | The currency, network or rail isn’t supported for this country, or a required field for the destination is missing. |
| 400 | account_resolution_failed | The bank couldn’t confirm the account. Check account_number and provider_id. |
| 404 | not_found | customer_id doesn’t exist in your integration. |
| 409 | duplicate_resource | merchant_reference is already used. |
Examples
POST /v1/beneficiaries
{
"type": "fiat", "currency": "NGN", "country_code": "NG", "network": "bank",
"provider_id": "prov_01KPBAP7WTDKQKW5B3R31VPNX4", "account_number": "0039415616",
"name": "Alice Bank Beneficiary", "label": "Alice's salary account"
}
POST /v1/beneficiaries
{
"type": "crypto", "currency": "USDC", "network": "solana", "address": "9wFFa…",
"name": "Alice Wallet", "label": "Personal cold wallet"
}
curl --request POST \
--url https://api.globalstack.io/v1/beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"label": "<string>",
"currency": "<string>",
"network": "bank",
"metadata": {},
"merchant_reference": "<string>",
"customer_id": "<string>",
"country_code": "<string>",
"provider_id": "prov_01JBQR7K3M9XZVTNA4H5C2PDES",
"rail": "payshap",
"account_number": "<string>",
"account_name": "<string>",
"address": "<string>"
}
'import requests
url = "https://api.globalstack.io/v1/beneficiaries"
payload = {
"name": "<string>",
"label": "<string>",
"currency": "<string>",
"network": "bank",
"metadata": {},
"merchant_reference": "<string>",
"customer_id": "<string>",
"country_code": "<string>",
"provider_id": "prov_01JBQR7K3M9XZVTNA4H5C2PDES",
"rail": "payshap",
"account_number": "<string>",
"account_name": "<string>",
"address": "<string>"
}
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({
name: '<string>',
label: '<string>',
currency: '<string>',
network: 'bank',
metadata: {},
merchant_reference: '<string>',
customer_id: '<string>',
country_code: '<string>',
provider_id: 'prov_01JBQR7K3M9XZVTNA4H5C2PDES',
rail: 'payshap',
account_number: '<string>',
account_name: '<string>',
address: '<string>'
})
};
fetch('https://api.globalstack.io/v1/beneficiaries', 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/beneficiaries",
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([
'name' => '<string>',
'label' => '<string>',
'currency' => '<string>',
'network' => 'bank',
'metadata' => [
],
'merchant_reference' => '<string>',
'customer_id' => '<string>',
'country_code' => '<string>',
'provider_id' => 'prov_01JBQR7K3M9XZVTNA4H5C2PDES',
'rail' => 'payshap',
'account_number' => '<string>',
'account_name' => '<string>',
'address' => '<string>'
]),
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/beneficiaries"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\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/beneficiaries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/beneficiaries")
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 \"name\": \"<string>\",\n \"label\": \"<string>\",\n \"currency\": \"<string>\",\n \"network\": \"bank\",\n \"metadata\": {},\n \"merchant_reference\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"country_code\": \"<string>\",\n \"provider_id\": \"prov_01JBQR7K3M9XZVTNA4H5C2PDES\",\n \"rail\": \"payshap\",\n \"account_number\": \"<string>\",\n \"account_name\": \"<string>\",\n \"address\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Beneficiary created successfully",
"code": "ok",
"data": {
"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"
},
"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"
}
}Body
CreateBeneficiaryDto
What the destination is. For type: fiat one of: bank, mobile_money. For type: crypto a supported chain. account_name is required only for mobile_money: bank has its resolved by the provider. See rail for HOW the money reaches a bank account.
bank, mobile_money, solana, base, ethereum 1"bank"
How to move money into the account, rather than what the account is. Optional; omit for the corridor's default rail. Only valid when network is 'bank'. 'payshap' is ZAR and South Africa only, and its account_number is a PayShap proxy rather than a bank account number — a mobile number in E.164 form, or a ShapName with its bank such as 'acme@nedbank', sent exactly as the recipient gives it — so no provider is chosen for it.
payshap "payshap"
Response
Beneficiary created successfully