Fetch wallets
curl --request GET \
--url https://api-staging.stablestack.com/api/wallets \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-staging.stablestack.com/api/wallets"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api-staging.stablestack.com/api/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-staging.stablestack.com/api/wallets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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-staging.stablestack.com/api/wallets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
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-staging.stablestack.com/api/wallets")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.stablestack.com/api/wallets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"id": "49468947-4006-4b9a-bd96-f6b0d0210ad3",
"asset_type": "STABLECOIN",
"currency": "USDC",
"balance": "0.00000000",
"description": "my erc account",
"status": "active",
"created_at": "2025-05-01T21:04:31.928Z",
"updated_at": "2025-05-01T21:04:31.928Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": [
{
"id": "2381eeac-a592-4992-8bb9-4286634a0e94",
"address": "0x78D41923E23DcE32d1A346e96558dA89f89DD1aB",
"network": "erc20",
"created_at": "2025-05-01T21:04:32.179Z"
}
]
},
{
"id": "2acf9413-4db9-4602-9b91-22357b256e51",
"asset_type": "FIAT",
"currency": "CAD",
"balance": "0.00",
"description": "my cad account",
"status": "pending",
"created_at": "2025-05-12T16:53:15.383Z",
"updated_at": "2025-05-12T16:53:15.383Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": []
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 10,
"totalPages": 1
}
}Wallets
GET Wallets
API reference for fetching all wallets
GET
/
wallets
Fetch wallets
curl --request GET \
--url https://api-staging.stablestack.com/api/wallets \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-staging.stablestack.com/api/wallets"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api-staging.stablestack.com/api/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-staging.stablestack.com/api/wallets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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-staging.stablestack.com/api/wallets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
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-staging.stablestack.com/api/wallets")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.stablestack.com/api/wallets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"id": "49468947-4006-4b9a-bd96-f6b0d0210ad3",
"asset_type": "STABLECOIN",
"currency": "USDC",
"balance": "0.00000000",
"description": "my erc account",
"status": "active",
"created_at": "2025-05-01T21:04:31.928Z",
"updated_at": "2025-05-01T21:04:31.928Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": [
{
"id": "2381eeac-a592-4992-8bb9-4286634a0e94",
"address": "0x78D41923E23DcE32d1A346e96558dA89f89DD1aB",
"network": "erc20",
"created_at": "2025-05-01T21:04:32.179Z"
}
]
},
{
"id": "2acf9413-4db9-4602-9b91-22357b256e51",
"asset_type": "FIAT",
"currency": "CAD",
"balance": "0.00",
"description": "my cad account",
"status": "pending",
"created_at": "2025-05-12T16:53:15.383Z",
"updated_at": "2025-05-12T16:53:15.383Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": []
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 10,
"totalPages": 1
}
}Retrieves a list of all wallets associated with your merchant account.
Key Features:
- Returns both STABLECOIN and FIAT wallets
- Supports filtering by status, asset_type, currency, and customer_id
- Includes pagination metadata
Query Parameters:
page: Page number (default: 1)limit: Items per page (default: 10)status: Filter by status (active/pending/suspended)asset_type: Filter by type (STABLECOIN/FIAT)currency: Filter by currency (USDC, USDT, etc.)customer_id: Filter by customer ID
Response Examples:
Success Response:{
"status": "success",
"data": [
{
"id": "49468947-4006-4b9a-bd96-f6b0d0210ad3",
"asset_type": "STABLECOIN",
"currency": "USDC",
"balance": "0.00000000",
"description": "my erc account",
"status": "active",
"created_at": "2025-05-01T21:04:31.928Z",
"updated_at": "2025-05-01T21:04:31.928Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": [
{
"id": "2381eeac-a592-4992-8bb9-4286634a0e94",
"address": "0x78D41923E23DcE32d1A346e96558dA89f89DD1aB",
"network": "erc20",
"created_at": "2025-05-01T21:04:32.179Z"
}
]
},
{
"id": "2acf9413-4db9-4602-9b91-22357b256e51",
"asset_type": "FIAT",
"currency": "CAD",
"balance": "0.00",
"description": "my cad account",
"status": "pending",
"created_at": "2025-05-12T16:53:15.383Z",
"updated_at": "2025-05-12T16:53:15.383Z",
"customer_id": "85b148ab-3f6b-4d55-917f-3c8de668a48e",
"addresses": []
}
],
"pagination": {
"total": 2,
"page": 1,
"limit": 10,
"totalPages": 1
}
}
Headers
Query Parameters
Available options:
active Available options:
STABLECOIN, FIAT Available options:
USDC, ZAR Required range:
x >= 1Required range:
1 <= x <= 100