Get account balance
curl --request GET \
--url https://wallet.wearemarz.com/api/v1/balance \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://wallet.wearemarz.com/api/v1/balance"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://wallet.wearemarz.com/api/v1/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://wallet.wearemarz.com/api/v1/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: Basic <encoded-value>"
],
]);
$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://wallet.wearemarz.com/api/v1/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wallet.wearemarz.com/api/v1/balance")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wallet.wearemarz.com/api/v1/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_name": "<string>",
"balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"available_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"total_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"card_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX",
"description": "Card wallet balance"
},
"status": {
"mode": "live",
"account_status": "active",
"is_frozen": true,
"freeze_reason": "<string>"
},
"limits": {
"withdrawal": {
"minimum": 123,
"maximum": 123
},
"deposit": {
"minimum": 123,
"maximum": 123
}
}
},
"summary": {
"monthly": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123
},
"weekly": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123
},
"daily": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123,
"period": "yesterday"
}
},
"metadata": {
"country_code": "UG",
"last_updated": "<string>",
"response_timestamp": "<string>"
}
}
}{
"status": "error",
"message": "<string>",
"error_code": "VALIDATION_ERROR",
"errors": {}
}{
"status": "error",
"message": "<string>",
"error_code": "VALIDATION_ERROR",
"errors": {}
}Balance & account
Get account balance
Returns main wallet, card wallet, account status, limits, and period summaries for the resolved country.
GET
/
balance
Get account balance
curl --request GET \
--url https://wallet.wearemarz.com/api/v1/balance \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://wallet.wearemarz.com/api/v1/balance"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://wallet.wearemarz.com/api/v1/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://wallet.wearemarz.com/api/v1/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: Basic <encoded-value>"
],
]);
$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://wallet.wearemarz.com/api/v1/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wallet.wearemarz.com/api/v1/balance")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wallet.wearemarz.com/api/v1/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"account": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_name": "<string>",
"balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"available_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"total_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX"
},
"card_balance": {
"formatted": "5,000.00",
"raw": 5000,
"currency": "UGX",
"description": "Card wallet balance"
},
"status": {
"mode": "live",
"account_status": "active",
"is_frozen": true,
"freeze_reason": "<string>"
},
"limits": {
"withdrawal": {
"minimum": 123,
"maximum": 123
},
"deposit": {
"minimum": 123,
"maximum": 123
}
}
},
"summary": {
"monthly": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123
},
"weekly": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123
},
"daily": {
"credits": "<string>",
"debits": "<string>",
"net_change": "<string>",
"transaction_count": 123,
"period": "yesterday"
}
},
"metadata": {
"country_code": "UG",
"last_updated": "<string>",
"response_timestamp": "<string>"
}
}
}{
"status": "error",
"message": "<string>",
"error_code": "VALIDATION_ERROR",
"errors": {}
}{
"status": "error",
"message": "<string>",
"error_code": "VALIDATION_ERROR",
"errors": {}
}Authorizations
base64(api_key:api_secret)
Response
Balance retrieved
Example:
"success"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes

