Skip to content

Check balance account

GET
/v2/balance

Checks the balance of your account.

accounts
boolean

If is set to true, it will return the balance of all accounts associated with your API key.

Balance account successfully retrieved

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

Missing required parameters

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

Your key auth is not valid

object
status
boolean
error
boolean
true
message
string
Your key auth is not valid, please check with your administrator to get the new key
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>"