USD wallet balance
curl --request GET \
--url https://api.cartevo.co/api/v1/wallets/usd-balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/wallets/usd-balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/wallets/usd-balance', 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.cartevo.co/api/v1/wallets/usd-balance",
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.cartevo.co/api/v1/wallets/usd-balance"
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.cartevo.co/api/v1/wallets/usd-balance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/wallets/usd-balance")
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{
"success": true,
"statusCode": 200,
"message": "Data retrieved successfully",
"data": {
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"balance": 175.5,
"currency": "USD",
"country": "United States"
}
}Wallets
Get USD Wallet Balance
Retrieve the current balance of your company’s USD wallet — the wallet that funds card issuance, funding, and termination refunds.
GET
/
wallets
/
usd-balance
USD wallet balance
curl --request GET \
--url https://api.cartevo.co/api/v1/wallets/usd-balance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/wallets/usd-balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/wallets/usd-balance', 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.cartevo.co/api/v1/wallets/usd-balance",
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.cartevo.co/api/v1/wallets/usd-balance"
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.cartevo.co/api/v1/wallets/usd-balance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/wallets/usd-balance")
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{
"success": true,
"statusCode": 200,
"message": "Data retrieved successfully",
"data": {
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"balance": 175.5,
"currency": "USD",
"country": "United States"
}
}Overview
GET /wallets/usd-balance is a convenience endpoint that resolves your company’s USD wallet and returns its current balance. The USD wallet is the one used to issue and fund cards and to receive card-termination refunds.
When to use it
- Check available USD funds before issuing or funding a card.
- Display the USD balance in your dashboard without listing every wallet.
GET /wallets/{id} or GET /wallets.
Prerequisites
- Your company must have a
USDwallet.
Request
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Response
200 — Success
{
"success": true,
"statusCode": 200,
"message": "Data retrieved successfully",
"data": {
"walletId": "w1a2b3c4-d5e6-7890-abcd-ef1234567890",
"balance": 175.5,
"currency": "USD",
"country": "United States"
}
}
data fields:
| Field | Type | Description |
|---|---|---|
walletId | string | ID of your company’s USD wallet (UUID) |
balance | number | Current USD wallet balance |
currency | string | Always "USD" |
country | string | Wallet country |
Error responses
| Status | Trigger |
|---|---|
404 | No USD wallet exists for your company. |
Code examples
cURL
curl https://api.cartevo.co/api/v1/wallets/usd-balance \
-H "Authorization: Bearer $TOKEN"
Related
GET /wallets— list all wallets.GET /wallets/{id}— full details for a single wallet.GET /payment/balance— pay-in / pay-out balances per currency.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.