Skip to main content

Account Balance API

Checking your account balance in Messente


Introduction

Using the Messente Account Balance API you can retrieve your current account balance. In case of a failed request, the response will return an error indicating the reason why the request failed.

Account Balance API

HTTP GET/POST Request URL:

http(s)://api2.messente.com/get_balance/

Backup balance API endpoint URL:

http(s)://api3.messente.com/get_balance/

Request parameters

KeyDescription
username
API account user name from the Messente's web page
password
API account security key (API key) from the Messente's web page

Response from get_balance request

Basic syntax for successful response: OK [SMS balance in EUR].

When the request was unsuccessful, the HTTP response includes one of the response codes:

CodeMeaning
ERROR 101
Access is restricted, wrong credentials. Check username and password values.
ERROR 102
Parameters are wrong or missing. Check that all required parameters are present.
FAILED 209
Server failure, try again after a few seconds or try api3.messente.com backup server.

Example request

https://api2.messente.com/get_balance/?username=api_username&password=api_password

Successful response:

OK 707.54