Skip to main content
GET
/
v1
/
wallet-balances
/
{country}
Wallet balances for country
curl --request GET \
  --url https://api.sandbox.pawapay.io/v1/wallet-balances/{country} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.sandbox.pawapay.io/v1/wallet-balances/{country}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.sandbox.pawapay.io/v1/wallet-balances/{country}', 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.sandbox.pawapay.io/v1/wallet-balances/{country}",
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.sandbox.pawapay.io/v1/wallet-balances/{country}"

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.sandbox.pawapay.io/v1/wallet-balances/{country}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.sandbox.pawapay.io/v1/wallet-balances/{country}")

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
{
  "balances": [
    {
      "country": "ZMB",
      "balance": "21798.03",
      "currency": "ZMW",
      "mno": ""
    }
  ]
}
{
"errorId": "4f0d5e13-7e88-4cc6-827c-8c0640dc2cd3",
"errorCode": 1,
"errorMessage": "Invalid input ‘country’"
}
{
"errorId": "cad1529e-040b-4c9d-a21d-2ba3056ff750",
"errorCode": 2,
"errorMessage": "Authentication error"
}
{
"errorId": "daa495f0-541d-4192-b636-a8877b25a510",
"errorCode": 3,
"errorMessage": "Authorization error"
}
{
"errorId": "d428a89e-fa8b-42b8-ba20-68be20d50af1",
"errorCode": 0,
"errorMessage": "Internal error"
}
Allows you to get the wallet balances for a specific country configured for your account.

Authorizations

Authorization
string
header
required

Path Parameters

country
string
required

The country for which to get wallet balances for.

Format is ISO 3166-1 alpha-3, three character country code in upper case. Read more from Wikipedia.

Required string length: 3

Response

Request has been succesfully processed.

balances
object[]
required

List of wallet balances