Wallets
Get Wallet Balance

Get Wallet Balance API

The Get Wallet Balance API retrieves the balance of a specific wallet. It requires the walletId as a path parameter.

Endpoint

GET: {{baseURL}}/v1/wallet/{{walletId}}/balance

Note: Replace {{walletId}} with the actual wallet ID you got from the GET Wallet endpoint.


Request Example (cURL)

curl --location --request GET '{{baseURL}}/v1/wallet/{walletId}/balance' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json'

Request Headers

HeaderTypeDescriptionRequiredExample Value
x-api-keyStringAPI key for authentication✅ YesAPI_KEY_HERE
Content-TypeStringRequest content type (JSON)✅ Yesapplication/json

Query Parameters

ParameterTypeDescriptionRequiredExample Value
walletIdStringUnique identifier for wallet✅ Yes12345-xyz

Success Response (200 OK)

{
    "message": "wallet balance fetched successfully",
    "status": "success",
    "data": {
        "id": "739d7131-d523-49ui-8524-xxxxxxxxxx", 
        "balance": 2300000000.00 , 
        "currency": "NGN", 
        "country": "NG"
    }
}

Response Breakdown

FieldTypeDescription
idStringThe unique wallet identifier
balanceNumberAvailable balance in the wallet
currencyStringCurrency of the balance
countryStringCountry of currency

Error Responses

Status CodeMeaningExample ResponseHow to Handle
400Bad Request (Missing or Invalid walletId)walletId is requiredEnsure the request includes a valid walletId as a path or query parameter.
401Unauthorized (Invalid API Key)Invalid authentication credentialsCheck that the x-api-key header is present and the key is valid.
403Forbidden (Non-whitelisted IP)Your IP address is not allowed to access this serviceAdd your IP to the allowed list in the API Management section of the Dashboard.
404Wallet Not FoundWallet with given ID not foundConfirm the walletId exists and belongs to your business account.
422Unprocessable EntityInvalid wallet format or unexpected valueCheck if the walletId has correct format and that any additional parameters are valid.
429Too Many RequestsAPI rate limit exceedImplement retry logic with backoff; do not exceed allowed number of requests per second.
500Internal Server ErrorAn unexpected error occurred on the serverRetry the request after some time or contact support if issue persists.
Internal Server Error{ "message": "Server failed to process request" }