How to Get Account Balance
Fetch your smsleopard account balance by making a HTTP GET
request using the endpoint below:
Endpoint
https://api.smsleopard.com/v1/balance
Authorization
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Code Examples
curl -u API_KEY:API_SECRET -X GET https://api.smsleopard.com/v1/balance
Example of a Successful Response
Status code: 201
{
"balance": 1190.67,
"conversion_rate": 0.009208,
"converted_balance": 10.96,
"currency": "USD"
}
balance | Account balance in base currency (KES). |
conversion_rate | Conversion rate from base currency (KES) to Account currency. |
converted_balance | Account balance in account currency. |
currency | Account currency. |