Webcom Mobi API Docs
RU
  • Introduction
  • СПОСОБЫ ВЗАИМОДЕЙСТВИЯ С A2P ПЛАТФОРМОЙ
    • JSON specification
      • Sending SMS, Viber, Flash SMS, WAP-Push
      • SMS status request
        • POST request
        • Webhook
      • Balance check request
    • HTTP GET specification
      • Sending SMS
      • Sending Viber
      • Sending Cascade
      • Request message status
      • Registration
    • XML specification
      • Sending SMS, Viber, Flash SMS, WAP-Push
      • SMS status request
        • POST request
        • Webhook
      • Balance check request
      • Request to receive a list of senders
      • Request to add senders
      • Request for incoming SMS
      • Request for information by phone number
      • Request for obtaining the list of bases
      • Request to change parameters, add/remove bases
      • Request for receiving the list of subscribers of the base
      • Request to add/edit/delete subscribers of the base
      • Request to get the list of numbers from the STOP list
      • Request to add/remove subscribers to the STOP list
      • Request to receive the list of scheduled SMS
      • Request to delete a scheduled SMS
      • Request to get the time of change of something
      • Request for time verification
      • File upload request
      • Request to refill users' balance
    • ВЗАИМОДЕЙСТВИЕ С ПЛАТФОРМОЙ MSG (НЕОФ КАНАЛЫ)
    • Specification JSON
      • Чекинг базы номеров
Powered by GitBook
On this page
  • Balance check request
  • Deciphering parameters in query responses
  1. СПОСОБЫ ВЗАИМОДЕЙСТВИЯ С A2P ПЛАТФОРМОЙ
  2. JSON specification

Balance check request

Balance check request

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

Headers

Name
Type
Description

Content-type*

String

text/json; charset=utf-8

Request Body

Name
Type
Description

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"
            }
        ]
}
{
    "error": "Error message"
}

Deciphering parameters in query responses

Parameter
Data type
Description

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 1 year ago