Check balance
Check balance #
GET /v1/sms/balanceQuery parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
format |
string | full | full also returns the local and international SMS prices, simple only the credit and the currency. |
currency |
string | — | Currency shown: XOF, XAF, USD, EUR, NGN, GHS. By default, your organization's. It only changes the label: the credit is not converted. |
// Consulter le solde du compte
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/sms/balance', {
headers: { 'Authorization': 'Basic ' + credentials }
});
// Consulter le solde du compte
$ch = curl_init('https://api.callistosignal.com/v1/sms/balance');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
https://api.callistosignal.com/v1/sms/balance
Response
{
"credit": 975,
"currency": "XOF",
"sms_price_local": 25,
"sms_price_international": 50
}