Main
🏠 Home ℹ️ About Us
WhatsApp Solutions
💬 WhatsApp Business API (WABA) 🔐 OTP & TAC via WhatsApp 🔵 Blue Tick Verification 🤖 WhatsApp + AI Chatbot ☎️ Cloud PBX + WhatsApp AI 🔗 Sending Links via WABA 📄 WABA API Documentation
SMS Services
📱 One-Way Bulk SMS ↩️ Two-Way SMS 🔒 Two-Factor Authentication (2FA) 🌐 Unicode SMS 🏭 SMS for Industries 🌏 Global SMS Coverage
API & Developer
⚡ SMS API Documentation 💬 WABA API Documentation ✉️ Email API Documentation 🛠️ REST API Reference 🧪 Postman Guide — SMS 🧪 Postman Guide — WABA 🧪 Postman Guide — Email
Email
✉️ Email Service Overview ⭐ Features & Pricing 🔌 Email API Integration
Buy Credits
💰 Full Rate List 🛒 Buy SMS Credits (MYR) 🇸🇬 Buy Credits (SGD) 🇺🇸 Buy Credits (USD)
Help & Support
📩 Contact Us ❓ FAQ 📖 End-User Guide ⬇️ Downloads ⚠️ Service Advisory 🚫 SMS Illegal Content Policy 📜 Malaysia PDPA 2010 📜 Singapore DNC Registry
🔑 Log In 📝 Free Sign Up
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