🏠 Home ℹ️ About Us
📩 Contact Us 🔔 Notice
🔑 Log In 📝 Free Sign Up
HomeCheck SMS Balance (VB.net)

🔷 Check SMS Balance (VB.net)

Retrieve your iSMS SMS credit balance using VB.NET and HttpClient — modern async pattern.

VB.net · HttpClientHTTPS GET
API Endpoint

Check SMS Balance via JSON POST

Post your credentials as JSON to retrieve the current credit balance. Available for prepaid accounts only — postpaid accounts receive an INVALID ACCOUNT TYPE response.

HTTPS POST Endpoint · application/json
https://www.isms.com.my/isms_balance_json.php
VB.net Code Example
VB.net · HttpClient JSON POST
Imports System.Net.Http
Imports System.Text
Imports System.Text.Json

Module IsmsBalance

    Private ReadOnly _client As New HttpClient()

    Async Function GetBalanceAsync(un As String, pwd As String) As Task(Of String)
        Dim body = JsonSerializer.Serialize(New With {.un = un, .pwd = pwd})
        Dim content As New StringContent(body, Encoding.UTF8, "application/json")

        Dim res = Await _client.PostAsync(
            "https://www.isms.com.my/isms_balance_json.php", content)

        Return Await res.Content.ReadAsStringAsync()
    End Function

    Sub Main()
        Dim raw = GetBalanceAsync("myusername", "mypassword").Result
        Using doc = JsonDocument.Parse(raw)
            Dim root = doc.RootElement
            If root.GetProperty("status").GetString() = "success" Then
                Console.WriteLine("SMS Credits Remaining: " & root.GetProperty("balance").GetString())
            Else
                Console.WriteLine("Error: " & root.GetProperty("message").GetString())
            End If
        End Using
    End Sub

End Module
✅ Success
{ "status": "success", "code": 0,
  "username": "myusername",
  "balance": "1500" }
❌ Error
{ "status": "error", "code": -1001,
  "message": "-1001 = AUTHENTICATION FAILED" }
⚠️
IP whitelist required. Every API request must originate from a whitelisted server IP. Email support@mobiweb.com.my to whitelist your IP before your first call — non-whitelisted requests are rejected with -1003.
ℹ️
You will also need to register a free iSMS account and purchase SMS credits. Full parameters, response codes and delivery callbacks are in the SMS API documentation.

Need Help Getting Started?

Contact our team — we reply within 1 business day.

📱 SMS Coverage — Every Country We Reach Jump to a country's rate by first letter

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