Request to add/edit/delete subscribers of the base
Request to add/edit/delete subscribers of the base
POST
http://lk.mysmpp.ru/xml/phones.php
Headers
Name | Type | Description |
---|---|---|
Content-type* | String |
|
Request Body
Name | Type | Description |
---|---|---|
login.value* | String | Your login in the system |
base.id_base* | Int | Base number in the system |
token.value* | String | You can use a secret key instead of login and password. To obtain it, please contact your manager |
password.value* | String | Your password in the system |
base.phone.surname | String | Subscriber's last name |
base.phone.name | String | Subscriber Name |
base.phone.operator | String | Operator. If not set, it is automatically determined. |
base.phone.region | String | Region. If not set, it is determined automatically |
base.phone.phone* | Int | The phone number of the subscriber. If a subscriber with this number already exists, it will be edited |
base.phone.addition_1 | String | Second additional field |
base.phone.addition_1 | String | First additional field |
base.phone.male | String | Gender: "f"-female "m" - male |
base.phone.date_birth | Int | Date of birth |
base.phone.patronymic | String | Subscriber's patronymic |
base.phone.action | String | In case it is necessary to delete "delete" |
base.phone.number_phone | Int | Phone number in the system |
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:
|
Example XML request
Last updated