Retrieve your wallet
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/wallet \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/wallet"
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/wallet"
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": "wallet",
"credited_kobo": 100000000,
"allocated_kobo": 5000000,
"reserved_kobo": 0,
"withdrawing_kobo": 2000000,
"withdrawn_kobo": 3000000,
"available_kobo": 90000000
}Retrieve your wallet
Returns your wallet. Each figure is a ledger sum, all read at the same moment. Takes no parameters. Requires the read scope.
GET
/
v1
/
wallet
Retrieve your wallet
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/wallet \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/wallet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/wallet"
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/wallet"
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": "wallet",
"credited_kobo": 100000000,
"allocated_kobo": 5000000,
"reserved_kobo": 0,
"withdrawing_kobo": 2000000,
"withdrawn_kobo": 3000000,
"available_kobo": 90000000
}Authorizations
Response
Your wallet.
Every figure is a sum of your wallet's ledger, read at one moment. available_kobo is always credited_kobo minus allocated_kobo, reserved_kobo, withdrawing_kobo and withdrawn_kobo.