Balance check request
Balance check request
POST
http://lk.mysmpp.ru/xml/balance.php
Headers
Content-type*
String
text/xml; charset=utf-8;
Request Body
login.value*
String
Your login in the system
password.value*
String
Your password in the system
token.value*
String
You can use a secret key instead of login and password. To obtain it, please contact your manager
<?xml version="1.0" encoding="utf-8" ?>
<response>
<money>150</money>
<sms area="Russia">111</sms>
<sms area="Ukraine">111</sms>
</response>
Deciphering parameters in query responses
money
Int
Fund balance
sms
Int
Number of available SMS messages for this destination
sms.area
String
The direction in which a given quantity of SMS can be shipped
error
String
The error text can take the following values:
Incorrect XML document format
Incorrect login or password
POST data is missing
Example XML request
<?xml version="1.0" encoding="utf-8" ?>
<request>
<security>
<login value="login" />
<password value="password" />
</security>
</request>
Example
You have 10 y.e. on your balance.
The cost of SMS message sent to Russia is 1 y.e.
The cost of SMS message sent to Ukraine is 2 y.e.
The following XML document will be returned to you:
<?xml version="1.0" encoding="utf-8" ?>
<response>
<money>10</money>
<sms area="Russia">10</sms>
<sms area="Ukraine">5</sms>
</response>
If you send two sms to Russia, the XML document will change as follows:
<?xml version="1.0" encoding="utf-8" ?>
<response>
<money>8</money>
<sms area="Russia">8</sms>
<sms area="Ukraine">4</sms>
</response>
Last updated