Fetch a wallet
curl --request GET \
--url https://api.globalstack.io/v1/wallets/{walletId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.globalstack.io/v1/wallets/{walletId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.globalstack.io/v1/wallets/{walletId}', 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/{walletId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.globalstack.io/v1/wallets/{walletId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.globalstack.io/v1/wallets/{walletId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/wallets/{walletId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Wallet fetched successfully",
"code": "ok",
"data": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"currency": "USDC",
"available_balance": "1234.567890",
"pending_balance": "0.000000",
"total_balance": "1234.567890",
"metadata": {},
"provisioned": false,
"credentials": [
{
"id": "wcr_01HXYZABC1234567890ABCDEFG",
"type": "crypto",
"currency": "USDC",
"network": "base",
"wallet": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"currency": "USDC",
"label": "USDC Wallet"
},
"metadata": {
"team": "ops"
},
"details": {
"accountName": "Medard Ilunga",
"accountNumber": "1234567890",
"bankName": "Wema Bank",
"bankCode": "035",
"currency": "NGN",
"reference": "GSVRYTZ496CM"
},
"status": "pending",
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"label": "Treasury deposit"
}
],
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"country_code": "NG",
"label": "USDC Operating Wallet"
},
"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"
}
}Wallets
Fetch a wallet
Returns a single wallet, including its credentials.
The path id is the GlobalStack external identifier (wal_…) returned by
POST /v1/wallets and GET /v1/wallets.
Credentials
data.credentials lists the wallet’s credentials, created via POST /v1/wallets/{id}/credentials — newest first. The array is empty when the wallet has no credentials.
Balances
available_balance, pending_balance, and total_balance start at
0.00 (formatted to the currency precision).
Errors
400 invalid_input—wallet_iddoes not start withwal_. This catches callers passing a non-GlobalStack id (e.g. acust_…id).404 not_found— returned for all lookup misses: the id does not exist.
Example
GET /v1/wallets/wal_seed_alice_usdc
GET
/
v1
/
wallets
/
{walletId}
Fetch a wallet
curl --request GET \
--url https://api.globalstack.io/v1/wallets/{walletId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.globalstack.io/v1/wallets/{walletId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.globalstack.io/v1/wallets/{walletId}', 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/{walletId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.globalstack.io/v1/wallets/{walletId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.globalstack.io/v1/wallets/{walletId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.globalstack.io/v1/wallets/{walletId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Wallet fetched successfully",
"code": "ok",
"data": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"customer_id": "cust_01HXYZABC1234567890ABCDEFG",
"currency": "USDC",
"available_balance": "1234.567890",
"pending_balance": "0.000000",
"total_balance": "1234.567890",
"metadata": {},
"provisioned": false,
"credentials": [
{
"id": "wcr_01HXYZABC1234567890ABCDEFG",
"type": "crypto",
"currency": "USDC",
"network": "base",
"wallet": {
"id": "wal_01HXYZABC1234567890ABCDEFG",
"currency": "USDC",
"label": "USDC Wallet"
},
"metadata": {
"team": "ops"
},
"details": {
"accountName": "Medard Ilunga",
"accountNumber": "1234567890",
"bankName": "Wema Bank",
"bankCode": "035",
"currency": "NGN",
"reference": "GSVRYTZ496CM"
},
"status": "pending",
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"label": "Treasury deposit"
}
],
"created_at": "2026-05-20T12:00:00.000Z",
"updated_at": "2026-05-20T12:00:00.000Z",
"country_code": "NG",
"label": "USDC Operating Wallet"
},
"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"
}
}Authorizations
API key issued during merchant onboarding.
Path Parameters
Pattern:
[^\/#\?]+?Response
Wallet fetched successfully
⌘I