curl --request GET \
--url https://api.vitawallet.io/api/businesses/wallets/{uuid} \
--header 'Authorization: <api-key>' \
--header 'x-date: <api-key>' \
--header 'x-login: <api-key>' \
--header 'x-trans-key: <api-key>'import requests
url = "https://api.vitawallet.io/api/businesses/wallets/{uuid}"
headers = {
"x-login": "<api-key>",
"x-trans-key": "<api-key>",
"x-date": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-login': '<api-key>',
'x-trans-key': '<api-key>',
'x-date': '<api-key>',
Authorization: '<api-key>'
}
};
fetch('https://api.vitawallet.io/api/businesses/wallets/{uuid}', 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.vitawallet.io/api/businesses/wallets/{uuid}",
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: <api-key>",
"x-date: <api-key>",
"x-login: <api-key>",
"x-trans-key: <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.vitawallet.io/api/businesses/wallets/{uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-login", "<api-key>")
req.Header.Add("x-trans-key", "<api-key>")
req.Header.Add("x-date", "<api-key>")
req.Header.Add("Authorization", "<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.vitawallet.io/api/businesses/wallets/{uuid}")
.header("x-login", "<api-key>")
.header("x-trans-key", "<api-key>")
.header("x-date", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vitawallet.io/api/businesses/wallets/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-login"] = '<api-key>'
request["x-trans-key"] = '<api-key>'
request["x-date"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"wallet": {
"uuid": "f0953f43-2e68-4a1a-acdf-f5227fe0095c",
"type": "business_wallet",
"attributes": {
"token": "master",
"created_at": "2020-08-19T20:36:12.652Z",
"balances": {
"usdc": 0,
"ars": 0,
"mxn": 0,
"cop": 0,
"brl": 0,
"usd": 7.02,
"usdt": 9.99,
"eur": 0,
"btc": 0,
"clp": 0
},
"is_master": true
}
}
}Balance
This endpoint returns the current balance of a wallet in real time. By passing the wallet’s uuid in the URL, the response includes the balances object reflecting the up-to-date balance at the exact moment of the request — across all currencies active in that wallet.
Use this endpoint whenever you need an authoritative, real-time view of available funds — for example, before initiating a payout, validating a transaction, or displaying balances in your dashboard.
Common Use Cases
-
Pre-payout balance check: Verify that the master wallet has sufficient funds before sending money to a customer or an external bank account.
-
Real-time dashboards: Display up-to-date balance information across all your wallets in admin or merchant-facing interfaces.
-
Multi-wallet reconciliation: Periodically refresh the balance of each wallet to ensure your internal records stay aligned with Vita Business.
-
Operational alerts: Trigger internal alerts when a wallet’s balance falls below a defined threshold (e.g., to top up before processing batches of payouts).
Path Parameters
| Parameter | Type | Description |
|---|---|---|
uuid | string (UUID) (required) | Universal unique identifier of the wallet you want to query. |
Request Example
curl --location 'https://api.vitawallet.io/api/businesses/wallets/ffe3d2ad-e062-4967-a58a-c586799d8d10'
Response Structure
The response returns a wallet object describing the queried wallet, including its identifier, its merchant token, the current balances by currency, and a flag indicating whether it’s a master wallet.
| Field | Description |
|---|---|
uuid | Universal unique identifier assigned by Vita Wallet to the wallet across all its services. |
token | Merchant identification token associated with the wallet (e.g., master). |
balances | Object containing the current balance for each active currency in the wallet (e.g., clp, usd, usdt). Values are updated at the moment of the request. |
is_master | Boolean indicating whether this wallet is the master wallet (true) or a sub-wallet (false). |
Response Example
json
{
"wallet": {
"uuid": "ffe3d2ad-e062-4967-a58a-c586799d8d10",
"token": "master",
"balances": {
"clp": 99979224179.28,
"usd": 9220.99,
"usdt": 1875.78182164,
"usdc": 1215.48,
"btc": 0
},
"is_master": true
}
}
Important Considerations
EndFragment
curl --request GET \
--url https://api.vitawallet.io/api/businesses/wallets/{uuid} \
--header 'Authorization: <api-key>' \
--header 'x-date: <api-key>' \
--header 'x-login: <api-key>' \
--header 'x-trans-key: <api-key>'import requests
url = "https://api.vitawallet.io/api/businesses/wallets/{uuid}"
headers = {
"x-login": "<api-key>",
"x-trans-key": "<api-key>",
"x-date": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-login': '<api-key>',
'x-trans-key': '<api-key>',
'x-date': '<api-key>',
Authorization: '<api-key>'
}
};
fetch('https://api.vitawallet.io/api/businesses/wallets/{uuid}', 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.vitawallet.io/api/businesses/wallets/{uuid}",
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: <api-key>",
"x-date: <api-key>",
"x-login: <api-key>",
"x-trans-key: <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.vitawallet.io/api/businesses/wallets/{uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-login", "<api-key>")
req.Header.Add("x-trans-key", "<api-key>")
req.Header.Add("x-date", "<api-key>")
req.Header.Add("Authorization", "<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.vitawallet.io/api/businesses/wallets/{uuid}")
.header("x-login", "<api-key>")
.header("x-trans-key", "<api-key>")
.header("x-date", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vitawallet.io/api/businesses/wallets/{uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-login"] = '<api-key>'
request["x-trans-key"] = '<api-key>'
request["x-date"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"wallet": {
"uuid": "f0953f43-2e68-4a1a-acdf-f5227fe0095c",
"type": "business_wallet",
"attributes": {
"token": "master",
"created_at": "2020-08-19T20:36:12.652Z",
"balances": {
"usdc": 0,
"ars": 0,
"mxn": 0,
"cop": 0,
"brl": 0,
"usd": 7.02,
"usdt": 9.99,
"eur": 0,
"btc": 0,
"clp": 0
},
"is_master": true
}
}
}Authorizations
Business xLogin
Business xTransKey
ISO8601 datetime
V2-HMAC-SHA256 signature. Example: V2-HMAC-SHA256, Signature: <hash>
Path Parameters
Wallet UUID
Response
Successful response.