Retrieve an account's balance
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/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))
}{
"object": "balance",
"account": "1000000001",
"currency": "NGN",
"opening_kobo": 104517875,
"opening_kobo_decimal": "104517875",
"pending_debits_kobo": 609000,
"pending_debits_kobo_decimal": "609000",
"available_kobo": 103908875,
"available_kobo_decimal": "103908875"
}Retrieve an account's balance
Returns the account’s balance as the broker reports it. Takes no query parameters. Requires the read scope.
GET
/
v1
/
accounts
/
{account}
/
balance
Retrieve an account's balance
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/balance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/accounts/{account}/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))
}{
"object": "balance",
"account": "1000000001",
"currency": "NGN",
"opening_kobo": 104517875,
"opening_kobo_decimal": "104517875",
"pending_debits_kobo": 609000,
"pending_debits_kobo_decimal": "609000",
"available_kobo": 103908875,
"available_kobo_decimal": "103908875"
}Authorizations
Path Parameters
Response
The account's balance.
The account's cash, with every figure as the broker defines it. The broker keeps cash to fractions of a kobo, so each figure is given twice: exact, as a _kobo_decimal string, and in whole kobo, rounded so that what the account can spend is never overstated: opening_kobo and available_kobo round down, pending_debits_kobo rounds up. opening_kobo and available_kobo can be negative when the account owes money. Size orders by available_kobo.