Main
🏠 Home ℹ️ About Us
WhatsApp
💬 WhatsApp Business API (WABA) 🔐 OTP & TAC via WhatsApp 🤖 WhatsApp + AI Chatbot 🔵 Blue Tick Verification
SMS
📱 One-Way Bulk SMS 🔒 Two-Factor Authentication (2FA) 🌏 Global SMS Coverage ⚡ SMS API
Email & API
✉️ Email Service Overview 🔌 Email SMTP API 🛠 REST API Reference
Queue System
🏢 Queue System Overview 💬 WhatsApp QMS ☁️ Cloud QMS ⚡ Cloud + WhatsApp QMS 📖 Cloud & WhatsApp QMS Guide 🎯 Request Free Demo
Pricing
💰 Full SGD Rate List 🛒 Buy SMS Credits
Support
📩 Contact Us ❓ FAQ 📖 End-User Guide ⚠️ Service Advisory
📝 Register Free
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.bulksms.com.sg/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.bulksms.com.sg/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.

💬