Balance check request

Balance check request

POST http://lk.mysmpp.ru/json/balance.php

Headers

NameTypeDescription

Content-type*

String

text/json; charset=utf-8

Request Body

NameTypeDescription

login*

String

Your login in the system

token*

String

You can use a secret key instead of login and password. To obtain it, please contact your manager.

password*

String

Your password in the system

{
    "money": "19023.9",
    "currency": "RUR",
    "information": 
        [
            {
                "type_sms": "sms",
                "area": "Tele2",
                "num_sms": "72029"
            }, 
            {
                "type_sms": "sms",
                "area": "Russia",
                "num_sms": "Unlim"
            }
        ]
}

Deciphering parameters in query responses

ParameterData typeDescription

money

Int

Fund balance

currency

String

Currency

information.type_sms

String

Type of SMS

information.area

String

The direction in which a given quantity can be shippedво SMS

information.sms

Int

Number of available SMS messages for this destination

error

String

The error text can take the following values:

  • Incorrect JSON document format

  • Your account is locked

  • Incorrect login or password

  • POST data is missing

Last updated