HomeCheck SMS Balance (PHP)

🐘 Check SMS Balance (PHP)

Retrieve your iSMS SMS credit balance programmatically using PHP and the iSMS balance API.

PHP · cURLHTTPS GETv2.0
API Endpoint

Check SMS Balance via HTTPS

Use this endpoint to retrieve your current iSMS credit balance and expiry date programmatically.

HTTPS GET Endpoint
https://www.isms.com.my/isms_balance.php?un=your_username&pwd=your_password
PHP Code Example
PHP · cURL GET
<?php

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL            => 'https://www.isms.com.my/isms_balance.php?un=your_username&pwd=your_password',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_SSL_VERIFYPEER => true,
    CURLOPT_TIMEOUT        => 15,
]);

$balance = curl_exec($ch);
$err     = curl_error($ch);
curl_close($ch);

if ($err) {
    echo 'Error: ' . $err;
} else {
    // Response is plain text e.g. "250.0"
    echo 'SMS Credits Remaining: ' . trim($balance);
}
ℹ️
The response is a plain text number representing your remaining SMS credits. Credits are valid for 1 year from purchase date and cannot carry forward.

Need Help Getting Started?

Contact our team — we reply within 1 business day.

📱 SMS Coverage — All Countries Worldwide

A B C D E F G H I J K L M N O P Q R S T U V Y Z