Get Balance

The Ubiqpay Balance API allows you to check the balance of your account in different currencies. This document will guide you through the process of using our API to retrieve your account balance.

Response Parameters

The response to a request to the Ubiqpay Balance API will be in JSON format, with the following parameters:

ParameterTypeDescription
status_codestringThe status of the request, either "success" or "error"
messagestringA message describing the status of the request
dataobjectAn object containing the account balance

The data object can contain multiple keys, each corresponding to a different currency. Each currency key contains an object with a single property:

PropertyTypeDescription
balancenumberThe balance of the account in the specified currency
updated_atstringBalance update date in ISO format

If a currency does not appear in the response, there has been no transaction in that currency. Once a transaction is made in a new currency, the currency will appear in the response.

Example Response

Here's an example of a successful response to the Ubiqpay Balance API:

{
   "status_code": "success",
   "message": "Request successfully processed",
   "data": {
     "KE": {
       "KES": {
         "balance": 213.45,
         "updated_at": "2023-05-29T10:34:13.000Z"
       }
     },
     "NG": {
       "NGN": {
         "balance": 50.00,
         "updated_at": "2023-05-29T10:34:13.000Z"
       }
     }
   }
}

In this example, the account balance is available in three currencies: KES and NGN. The account balance in each currency is shown in the corresponding currency object.

If you have any questions or need assistance with using the Ubiqpay Balance API, don't hesitate to contact our support team for assistance.

Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!