Get Wallet Balance

Retrieves the current balance of a user's sub-wallet for a specified currency.

Endpoint

GET {{base_url}}/api/v1/user/subwallet-balance

Headers

HeaderRequiredDescription
x-merchant-refYesMerchant reference used to identify the merchant making the request.

Query Parameters

ParameterTypeRequiredDescription
currencystringYesCurrency of the sub-wallet whose balance you want to retrieve.
user_refstringYesUnique reference identifying the user.
chainstringNoBlockchain network for the wallet. Leave empty if a chain is not required.

Example Request

curl --location -g '{{base_url}}/api/v1/user/subwallet-balance?currency=NGN&user_ref={{vault%3AMerchant-user-ref}}' \
--header 'x-merchant-ref: {{vault:x-merchant-ref}}'

Success Response

{
  "message": "Wallet Balance",
  "data": {
    "wallet_address": "LBWNGN81C4801EE29D43F8A0B2231E967B74550063J",
    "currency": "NGN",
    "available_balance": 20,
    "ledger_balance": 0,
    "chain": "",
    "status": "COMPLETED"
  }
}

Response Fields

FieldDescription
messageResponse message confirming the wallet balance request.
data.wallet_addressAddress of the user's sub-wallet.
data.currencyCurrency of the wallet.
data.available_balanceBalance currently available for use.
data.ledger_balanceLedger balance recorded for the wallet.
data.chainBlockchain network associated with the wallet. Empty when not applicable.
data.statusStatus of the balance request.

Did this page help you?