Skip to content

Check Account Balance

GET
/v2/balance

Returns the current balance of your account.

accounts
boolean

Set to true to include the balance of all sub-accounts associated with your API key.

Balance account successfully retrieved

object
status
boolean
true
error
boolean
description
Array<object>
object
username
string
DEMO
name
string
DEMO
balance
number format: float
-1
limit_credit
number format: float
0
Example
{
"status": true,
"error": false,
"description": [
{
"username": "DEMO",
"name": "DEMO",
"balance": -1,
"limit_credit": 0
}
]
}

Missing required parameters

Example
{
"status": false,
"error": true,
"description": "Missing params, please verify or contact to support"
}

Your key auth is not valid

Example
{
"status": false,
"error": true,
"description": "Your key auth is not valid, please check with your administrator to get the new key"
}

Useful for guiding users to view code examples in different developer languages.

developer@developer:~#
curl -X GET "https://api.example.com/v2/balance?accounts=false" \
-H "Accept: application/json" \
-H "Connection: keep-alive" \
-H "Authorization: Basic <base64-encoded-credentials>"