API

What API endpoints does SMSVerifier provide for checking user account balance and transaction history?

July 30, 2026 · 4 min read · 8 views
SMSVerifier offers dedicated API endpoints to quickly check your account balance and fetch recent transaction history by specifying appropriate action parameters in your API requests.

Overview of Balance and Transaction Endpoints

SMSVerifier provides a streamlined RESTful API interface to manage your virtual phone number verification needs. Among its features, you can programmatically check your current account balance and review recent transaction history. This is accomplished via two main API endpoints exposed through the same handler script, distinguished by the action query parameter.

Important context.

All API calls require a valid API key passed as a parameter for authentication. Requests are made via HTTP GET method to the handler_api.php endpoint.

The two primary actions relevant here are:

  • getBalance: Returns your current account balance.
  • getTransactions: Returns a list of recent transactions tied to your account.

These endpoints help you track your spending and ensure you have enough funds for ongoing SMS verifications.

Checking Account Balance

To check your SMSVerifier account balance, you send an HTTP GET request to the API handler with the following parameters:

  • api_key: Your personal API key (required)
  • action=getBalance: Specifies the balance-check action
Send API request with action=getBalance
API authenticates your key
Returns your current account balance

The balance is usually returned as a plain number representing your available funds in USD, for example 25.43. This allows your application to programmatically monitor funds and notify you when topping up is needed.

bash
curl "https://smsverifier.com/stubs/handler_api.php?api_key=YOUR_API_KEY&action=getBalance"
Pro tip.

Cache the balance response for a short duration (e.g., 1 minute) in your app to avoid excessive API calls and rate limiting.

Retrieving Transaction History

The transaction history endpoint lets you fetch recent transactions made on your SMSVerifier account. This includes purchases and any refunds or credits applied.

To access transaction history, send a GET request with:

  • api_key: Your API key
  • action=getTransactions: Request to retrieve transactions

The response includes transaction IDs, timestamps, amounts, and statuses.

bash
curl "https://smsverifier.com/stubs/handler_api.php?api_key=YOUR_API_KEY&action=getTransactions"
Common pitfall.

Currently, the transaction endpoint does not support pagination or filters. Responses may be limited to recent transactions only, so plan accordingly.

Response Data Format and Examples

By default, the API returns plain text or simple JSON, depending on the endpoint and parameters used.

For getBalance, the API returns a numeric string representing your balance:

text
42.75

For getTransactions, a typical JSON response looks like this:

json
{
  "transactions": [
    {
      "id": "TX123456",
      "date": "2024-05-20T14:33:00Z",
      "amount": -1.20,
      "type": "purchase",
      "status": "completed"
    },
    {
      "id": "TX123457",
      "date": "2024-05-21T09:15:00Z",
      "amount": 1.20,
      "type": "refund",
      "status": "completed"
    }
  ]
}
Note.

Amounts are expressed in USD. Negative values indicate debits; positive values indicate credits or refunds.

Best Practices for API Integration

🔐

Secure your API key

Never expose your API key publicly. Store it securely server-side and restrict usage via IP whitelisting if available.

⏱️

Optimize request frequency

Limit balance and transaction checks to reasonable intervals to prevent hitting rate limits.

📊

Log transactions locally

Maintain a local cache of transaction history for reporting and reconciliation purposes.

Automation thrives on reliable balance and transaction data — SMSVerifier’s API makes it seamless.

Frequently asked questions

How do I check my SMSVerifier account balance using the API?
You can check your account balance by sending a GET request to the handler_api.php endpoint with the action parameter set to getBalance and your API key included.
Is there an API endpoint to retrieve my transaction history?
Yes, SMSVerifier provides an endpoint to get your transaction history by using the action parameter getTransactions in your API request.
What format is the response data for balance and transactions?
The API returns data in plain text or JSON format depending on the request, with details like current balance, transaction IDs, timestamps, and amounts.
Can I filter or paginate transaction history via the API?
Currently, the API supports basic retrieval of recent transactions without advanced filtering or pagination options.
Where can I find detailed API documentation for these endpoints?
You can access full API documentation, including examples for balance and transaction endpoints, on the SMSVerifier API docs page.

Ready to integrate SMSVerifier account balance and transaction APIs?

Explore our API documentation now and start building automated balance checks and transaction tracking.

Read the API docs
Tags: api balance transaction-history sms-verification integration
Browse Services A-Z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
View all services →
From Our Blog
Browse all articles →