curl --request POST \
--url https://api.globalstack.io/v1/wallets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"country_code": "<string>",
"customer_id": "<string>",
"destination_address": "<string>",
"label": "<string>",
"metadata": {}
}
'import requests
url = "https://api.globalstack.io/v1/wallets"
payload = {
"currency": "<string>",
"country_code": "<string>",
"customer_id": "<string>",
"destination_address": "<string>",
"label": "<string>",
"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({
currency: '<string>',
country_code: '<string>',
customer_id: '<string>',
destination_address: '<string>',
label: '<string>',
metadata: {}
})
};
fetch('https://api.globalstack.io/v1/wallets', 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/wallets",
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([
'currency' => '<string>',
'country_code' => '<string>',
'customer_id' => '<string>',
'destination_address' => '<string>',
'label' => '<string>',
'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/wallets"
payload := strings.NewReader("{\n \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\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/wallets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/wallets")
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 \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Wallet created successfully",
"code": "ok",
"data": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"customer": {
"id": "cust_01HXYZABC1234567890ABCDEFG",
"type": "individual",
"name": "Alice Johnson",
"email": "alice@example.com",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"currency": "USDC",
"type": "custodial",
"available_balance": "1234.567890",
"pending_balance": "0.000000",
"total_balance": "1234.567890",
"metadata": {},
"provisioned": false,
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"country_code": "NG",
"label": "USDC Operating Wallet",
"destination_address": null,
"destination_chain": null
},
"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"
}
}Create a wallet
Create a wallet: a balance in one currency, owned by a customer.
A wallet has no account details on its own. To receive bank transfers into it, add a
credential with
POST /v1/wallets/{id}/credentials. You can still onramp into a wallet that has no credentials.
Body
| Field | Required | Description |
|---|---|---|
currency | Yes | Currency code, e.g. USDC, NGN. Must support deposits (can_deposit). |
customer_id | No | The owner (cust_…). Omit it to create the wallet for your own merchant account. |
country_code | No | ISO 3166-1 alpha-2. Required only when the currency code exists in more than one country, e.g. XOF. Ignored for crypto. |
type | No | custodial (default) or forwarding. See below. |
destination_address | No | Required for a forwarding wallet, and rejected otherwise. Where a forwarding wallet sends funds. Max 128 chars, valid for destination_chain. |
destination_chain | No | Required for a forwarding wallet, and rejected otherwise. solana, base or ethereum, and supported by currency. |
label | No | Max 255 chars. Use it to tell wallets apart. |
metadata | No | Record<string, string>. |
Rules
- Verified customers only for fiat. A fiat wallet for a customer whose
kyc_statusisn’tapprovedreturns409 invalid_status. See Verify customers. - One wallet per fiat currency per customer. A customer can hold several wallets in the same crypto currency.
- Pinned country.
country_codeis stored on the wallet and used by quotes and deposit addresses, so the wallet can serve payers outside the customer’s KYC country. - Balances start at zero, formatted to the currency’s precision.
Wallet types
type | Behaviour |
|---|---|
custodial | Holds a balance. Deposits credit it, and you convert, offramp and transfer out of it. |
forwarding | Holds nothing. Every inflow goes straight to destination_address. Crypto only. It can’t be the source of a transfer, offramp or conversion, and its destination can’t be changed later. |
Response
Returns the wallet, including customer: a summary of the owner (id, type, name, email,
tier). For the full customer, call GET /v1/customers/{customerId}.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | The currency isn’t supported, isn’t supported in country_code, or exists in several countries and country_code is missing. Also when a forwarding wallet’s fields are invalid, or are sent for a custodial wallet. |
| 409 | invalid_status | Fiat currency, and the customer’s KYC isn’t approved. |
| 409 | duplicate_resource | The customer already has a wallet in this fiat currency. |
Examples
POST /v1/wallets
{ "currency": "NGN", "customer_id": "cust_01HXYZ…", "label": "Ada — NGN" }
A forwarding wallet that delivers every deposit to your own address on Base:
POST /v1/wallets
{
"currency": "USDC",
"type": "forwarding",
"destination_address": "0x1111111111111111111111111111111111111111",
"destination_chain": "base"
}
curl --request POST \
--url https://api.globalstack.io/v1/wallets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"country_code": "<string>",
"customer_id": "<string>",
"destination_address": "<string>",
"label": "<string>",
"metadata": {}
}
'import requests
url = "https://api.globalstack.io/v1/wallets"
payload = {
"currency": "<string>",
"country_code": "<string>",
"customer_id": "<string>",
"destination_address": "<string>",
"label": "<string>",
"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({
currency: '<string>',
country_code: '<string>',
customer_id: '<string>',
destination_address: '<string>',
label: '<string>',
metadata: {}
})
};
fetch('https://api.globalstack.io/v1/wallets', 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/wallets",
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([
'currency' => '<string>',
'country_code' => '<string>',
'customer_id' => '<string>',
'destination_address' => '<string>',
'label' => '<string>',
'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/wallets"
payload := strings.NewReader("{\n \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\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/wallets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/wallets")
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 \"currency\": \"<string>\",\n \"country_code\": \"<string>\",\n \"customer_id\": \"<string>\",\n \"destination_address\": \"<string>\",\n \"label\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Wallet created successfully",
"code": "ok",
"data": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"customer": {
"id": "cust_01HXYZABC1234567890ABCDEFG",
"type": "individual",
"name": "Alice Johnson",
"email": "alice@example.com",
"tier": "tier_2",
"created_at": "2026-04-16T16:14:08.000Z",
"updated_at": "2026-04-16T16:14:08.000Z"
},
"currency": "USDC",
"type": "custodial",
"available_balance": "1234.567890",
"pending_balance": "0.000000",
"total_balance": "1234.567890",
"metadata": {},
"provisioned": false,
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"country_code": "NG",
"label": "USDC Operating Wallet",
"destination_address": null,
"destination_chain": null
},
"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"
}
}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
CreateWalletDto
Response
Wallet created successfully