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
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
The number of SMS cannot be summarized for different directions. When sending SMS in one direction, the number of available SMS messages in all other directions is reduced according to their cost.
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:
If you send two sms to Russia, the XML document will change as follows:
Last updated