Links

Request to add/edit/delete subscribers of the base

post
http://lk.mysmpp.ru/xml/phones.php
Request to add/edit/delete subscribers of the base
Parameters
Header
Content-type*
String
text/xml; charset=utf-8;
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
base.id_base*
Int
Base number in the system
base.phone.phone*
Int
The phone number of the subscriber. If a subscriber with this number already exists, it will be edited
base.phone.region
String
Region. If not set, it is determined automatically
base.phone.operator
String
Operator. If not set, it is automatically determined.
base.phone.name
String
Subscriber Name
base.phone.surname
String
Subscriber's last name
base.phone.patronymic
String
Subscriber's patronymic
base.phone.date_birth
Int
Date of birth
base.phone.male
String
Gender:
"f"-female
"m" - male
base.phone.addition_1
String
First additional field
base.phone.addition_1
String
Second additional field
base.phone.number_phone
Int
Phone number in the system
base.phone.action
String
In case it is necessary to delete "delete"
Responses
200: OK
If a valid XML document is received
400: Bad Request
If an error occurs in the sent XML document

Deciphering parameters in query responses

Parameter
Data type
Description
base.id_base
Int
Base number in the system
base.phone.phone
Int
Subscriber's phone number
base.phone.number_phone
Int
Phone number in the system
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>
<base id_base="1234">
<phone phone="79612242243" region="Novosibirsk " operator="Vimpelcom" name="Konstantin" surname="Ermolaev" patronymic="Aleksandrovich" date_birth="1984-08-21" male="male" addition_1="Firstadditionalfield" addition_2="second" number_phone="1"/>
<phone phone="79612242244" region="Novosibirsk " operator="Vimpelcom" name="Konstantin" surname="Ermolaev" patronymic="Aleksandrovich" date_birth="1984-08-21" male="male" male="male" addition_1="First additional field" addition_2="second" number_phone="2" />
...
<phone phone="79612242243" action="delete" number_phone="5"/>
<phone phone="7961224242244" action="delete" number_phone="6"/>
</base>
</request>
Last modified 5mo ago