API customer EN: различия между версиями
Нет описания правки |
IronBot (обсуждение | вклад) (Update localized API documentation) |
||
| (не показано 12 промежуточных версий 3 участников) | |||
| Строка 1: | Строка 1: | ||
[[ | '''en''' | [[API_customer_UK|uk]] | [[API customer|ru]] | ||
Section '''[[API_EN|API]]''' ERP "UserSide" | Section '''[[API_EN|API]]''' ERP "UserSide" | ||
Purpose: Actions with | Purpose: Actions with customers. Most actions are relevant for [[Supported_billings|manual billing]]. | ||
Additional parameters: | Additional parameters: | ||
action - subcategory of the request ''(possible value: see below)'' | |||
== Subcategories == | == Subcategories == | ||
| Строка 12: | Строка 12: | ||
==== add ==== | ==== add ==== | ||
''Modified in: 3.13.25 (added is_corporate parameter)'' | ''Modified in: 3.13.25 (added is_corporate parameter)'' | ||
Description: | Description: Add a customer | ||
Optional parameters: | Optional parameters: | ||
fio - name of the | fio - name of the customer | ||
codeti - | codeti - customer id in the billing system | ||
is_potential - flag - potential | is_potential - flag - potential customer | ||
is_corporate - flag - legal entity | is_corporate - flag - legal entity | ||
billing_id - billing id | billing_id - billing id | ||
billing_customer_id - customer id in billing ''(required if this is not a potential customer)'' | |||
==== abon_hist ==== | ==== abon_hist ==== | ||
''Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)'' | ''Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)'' | ||
Description: Display transactions | Description: Display customer transactions (financial and other) | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
==== change_balance ==== | ==== change_balance ==== | ||
| Строка 32: | Строка 33: | ||
''Modified in: 3.13.22 (added operator_id parameter)'' | ''Modified in: 3.13.22 (added operator_id parameter)'' | ||
Description: | Description: Change balance (income/expense operation) | ||
Required parameters: | |||
customer_id - customer ID | |||
amount - Amount | amount - Amount | ||
comment - operation notes | comment - operation notes | ||
| Строка 46: | Строка 47: | ||
''Added in: 3.12.48'' | ''Added in: 3.12.48'' | ||
Description: | Description: Change billing | ||
Required parameters: | |||
customer_id - | customer_id - customer id | ||
billing_id - billing id | billing_id - billing id | ||
Optional parameters: | Optional parameters: | ||
billing_user_id - | billing_user_id - customer id in billing | ||
==== change_date_connect ==== | ==== change_date_connect ==== | ||
| Строка 57: | Строка 58: | ||
Description: Change the connection date | Description: Change the connection date | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
value - date | value - date | ||
==== delete ==== | ==== delete ==== | ||
''Added in: 3.14.21'' | ''Added in: 3.14.21'' | ||
Description: | Description: Delete a customer | ||
Required parameters: | |||
id - | id - customer ID | ||
==== edit ==== | ==== edit ==== | ||
''Modified in: 3.20.10 (added coordinates parameter)'' | |||
''Modified in: 3.16dev3 (added group_id parameter)'' | ''Modified in: 3.16dev3 (added group_id parameter)'' | ||
| Строка 74: | Строка 77: | ||
''Added in: 3.12rc2'' | ''Added in: 3.12rc2'' | ||
Description: | Description: Edit a customer | ||
Required parameters: | |||
id - | id - customer ID | ||
Optional parameters: | Optional parameters: | ||
account_number - personal account number | account_number - personal account number | ||
| Строка 83: | Строка 86: | ||
apartment_number - flat number | apartment_number - flat number | ||
comment - notes | comment - notes | ||
coordinates - coordinates as text separated by comma ''(example: 47.839628,35.140553)'' | |||
date_activity - date of network activity | date_activity - date of network activity | ||
date_activity_inet - date of internet activity | date_activity_inet - date of internet activity | ||
| Строка 92: | Строка 96: | ||
group_id - group id | group_id - group id | ||
house_id - house id | house_id - house id | ||
is_potential - flag - potential | is_potential - flag - potential customer | ||
login - login | login - login | ||
manager_id - id of manager employee | manager_id - id of manager employee | ||
name - name of | name - name of customer | ||
parent_id - id of parent | parent_id - id of parent customer ''(for the child customer)'' | ||
phone0 - mobile phone number | phone0 - mobile phone number | ||
phone1 - home phone number | phone1 - home phone number | ||
phone2 - additional phone number 1 | |||
phone3 - additional phone number 2 | |||
phone4 - additional phone number 3 | |||
==== get_activity_counter ==== | ==== get_activity_counter ==== | ||
''Added in: 3.12.81'' | ''Added in: 3.12.81'' | ||
Description: Retrieve the counter of active | Description: Retrieve the counter of active customers | ||
Required parameters: | |||
type - counter type ''(Possible values: net, internet, personal_area)'' | type - counter type ''(Possible values: net, internet, personal_area)'' | ||
==== get_abon_id ==== | ==== get_abon_id ==== | ||
''Modified in: 3.14.34 (added possible account value for data_typer parameter)'' | ''Modified in: 3.14.34 (added possible account value for data_typer parameter)'' | ||
Description: | Description: Retrieve customer ID from input data | ||
Required parameters: | |||
data_typer - type of data we are checking ''(possible values: account, billing_uid, codeti, dognumber, ip, login, mac, mail, phone)'' | data_typer - type of data we are checking ''(possible values: account, billing_uid, codeti, dognumber, ip, login, mac, mail, phone)'' | ||
data_value - value | data_value - value | ||
Optional parameters: | Optional parameters: | ||
is_skip_old - flag - do not search among former | is_skip_old - flag - do not search among former customers | ||
==== get_customer_group ==== | |||
''Added in: 3.19beta1'' | |||
Description: Get list of customer groups | |||
Required parameters: | |||
None | |||
Optional parameters: | |||
None | |||
==== get_customers_id ==== | ==== get_customers_id ==== | ||
| Строка 135: | Строка 152: | ||
''Added in: 3.12.8'' | ''Added in: 3.12.8'' | ||
Description: Retrieve list of | Description: Retrieve list of customer IDs by incoming conditions | ||
Required parameters: | |||
None | None | ||
Optional parameters ''(but at least one condition must be specified)'': | Optional parameters ''(but at least one condition must be specified)'': | ||
account_number - personal account number | |||
address_unit_id - address unit id | address_unit_id - address unit id | ||
appartment - number of the flat | appartment - number of the flat | ||
| Строка 144: | Строка 162: | ||
balance_to - balance ''(to)'' | balance_to - balance ''(to)'' | ||
billing_id - billing number id | billing_id - billing number id | ||
billing_uuid - customer id in billing | |||
date_connect_from - date of connection ''(from)'' | date_connect_from - date of connection ''(from)'' | ||
date_connect_to - date of connection ''(to)'' | date_connect_to - date of connection ''(to)'' | ||
dependence_device_id - id of the device the | dependence_device_id - id of the device the customers depend on | ||
house_id - house id | house_id - house id | ||
is_corporate - flag - a legal entity | is_corporate - flag - a legal entity | ||
is_ex - flag - former | is_ex - flag - former customers | ||
manager_id - manager id ''(0 to search without manager)'' | |||
mark_id - mark id | mark_id - mark id | ||
name - name/title of | name - name/title of customer | ||
state_id - status id | state_id - status id | ||
tariff_id - tariff id | tariff_id - tariff id | ||
| Строка 158: | Строка 178: | ||
==== get_data ==== | ==== get_data ==== | ||
Description: | Description: Retrieve customer information | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
or | |||
account_number - customer's personal account number | |||
+ | |||
billing_id - billing ID | |||
==== get_ip_port_device_commutation ==== | ==== get_ip_port_device_commutation ==== | ||
''Added in: 3.12beta35'' | ''Added in: 3.12beta35'' | ||
Description: | Description: Get customer IP and MAC addresses with switch bindings ''(including for DHCP use)'' | ||
==== get_last_ip ==== | ==== get_last_ip ==== | ||
Description: Get the last used IP address for | Description: Get the last used IP address for customers | ||
==== get_mac_history ==== | ==== get_mac_history ==== | ||
| Строка 174: | Строка 198: | ||
''Added to: 3.16dev8'' | ''Added to: 3.16dev8'' | ||
Description: Get MAC address change history by | Description: Get MAC address change history by customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
==== get_max_agreement_number ==== | ==== get_max_agreement_number ==== | ||
| Строка 183: | Строка 207: | ||
Description: Get the maximum occupied contract number ''(numeric)'' | Description: Get the maximum occupied contract number ''(numeric)'' | ||
Optional parameters: | Optional parameters: | ||
billing_id - billing id of | billing_id - billing id of customers among which to perform the selection | ||
==== ip_add ==== | ==== ip_add ==== | ||
| Строка 191: | Строка 215: | ||
Description: Add IP address | Description: Add IP address | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
value - IP | value - IP | ||
Optional parameters: | Optional parameters: | ||
mac - MAC of the | mac - MAC of the customer | ||
==== ip_delete ==== | ==== ip_delete ==== | ||
''Modified in: 3.19beta1 (added possible value all to the value parameter)'' | |||
''Added in: 3.12.83'' | ''Added in: 3.12.83'' | ||
Description: Delete IP address | Description: Delete IP address | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
value - ip | value - ip or "-1" for entries with no IP address ''(MAC address only)'' or "all" for all addresses | ||
==== ip_subnet_add ==== | ==== ip_subnet_add ==== | ||
| Строка 210: | Строка 235: | ||
''Added in: 3.14.71'' | ''Added in: 3.14.71'' | ||
Description: | Description: Add an IP address subnet for a customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
ip - initial ip address | ip - initial ip address | ||
subnet - subnet mask/VLSM ''(for example: 24)'' | subnet - subnet mask/VLSM ''(for example: 24)'' | ||
| Строка 220: | Строка 245: | ||
''Added to: 3.14.71'' | ''Added to: 3.14.71'' | ||
Description: | Description: Delete an IP address subnet from a customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
ip - initial ip address | ip - initial ip address | ||
| Строка 229: | Строка 254: | ||
''Excluded in: 3.13'' | ''Excluded in: 3.13'' | ||
Description: List of tariffs available | Description: List of tariffs available for customer tariff changes | ||
Required parameters: | |||
usercode - | usercode - customer ID | ||
==== mark_add ==== | ==== mark_add ==== | ||
''Added in: 3.12.82'' | ''Added in: 3.12.82'' | ||
Description: | Description: Add a mark to a customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
mark_id - mark id | mark_id - mark id | ||
==== mark_delete ==== | ==== mark_delete ==== | ||
''Added in: 3.12.82'' | ''Added in: 3.12.82'' | ||
Description: | Description: Delete a mark from a customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
mark_id - mark id | mark_id - mark id | ||
| Строка 256: | Строка 281: | ||
''Modified in: 3.14.53 (added date_add_from, date_add_to, operator_id parameters)'' | ''Modified in: 3.14.53 (added date_add_from, date_add_to, operator_id parameters)'' | ||
Description: Display correspondence with a | Description: Display correspondence with a customer | ||
Optional parameters ''( | Optional parameters ''(at least one is required)'': | ||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
date_add_from - date of message (from) | date_add_from - date of message (from) | ||
date_add_to - date of message (to) | date_add_to - date of message (to) | ||
is_answer - whether the message has an answer ''(1 - answered, 0 - not answered)'' | |||
is_archive - whether the message is archived | |||
employee_id - id of the employee who authored the message | employee_id - id of the employee who authored the message | ||
operator_id - id of the operator who authored the message ''(before version 3.16dev2)'' | operator_id - id of the operator who authored the message ''(before version 3.16dev2)'' | ||
| Строка 267: | Строка 294: | ||
==== msg_add ==== | ==== msg_add ==== | ||
''Added in: 3.13.25'' | ''Added in: 3.13.25'' | ||
Description: | Description: Add a message from a customer | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
text - Message text | text - Message text | ||
Optional parameters: | |||
is_arc - flag - put the message into the archive | |||
==== pass_change ==== | ==== pass_change ==== | ||
| Строка 277: | Строка 306: | ||
''Modified in: 3.15.23 (pass_old parameter became optional)'' | ''Modified in: 3.15.23 (pass_old parameter became optional)'' | ||
Description: Change password for logging in to the | Description: Change password for logging in to the customer portal | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
pass_new - new password | pass_new - new password | ||
Additional parameters: | Additional parameters: | ||
| Строка 290: | Строка 319: | ||
Description: Add additional service | Description: Add additional service | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
service_id - id of additional service | service_id - id of additional service | ||
Optional parameters: | Optional parameters: | ||
| Строка 302: | Строка 331: | ||
Description: Remove additional service | Description: Remove additional service | ||
Required parameters: | |||
customer_id - | customer_id - customer ID | ||
service_id - id of additional service | service_id - id of additional service | ||
| Строка 309: | Строка 338: | ||
''Added in: 3.12beta35'' | ''Added in: 3.12beta35'' | ||
Description: | Description: Set the MAC address for a customer's IP address | ||
Required parameters: | |||
ip - IP address of the | ip - IP address of the customer (for example: 192.168.0.1) | ||
mac - MAC address of the | mac - MAC address of the customer (for example: 00:11:22:33:44:55) | ||
==== state_change ==== | ==== state_change ==== | ||
| Строка 320: | Строка 349: | ||
''Added in: 3.12.8'' | ''Added in: 3.12.8'' | ||
Description: | Description: Change a customer's service status | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
state_id - | state_id - customer status ID (0 - stop, 1 - paused, 2 - active) | ||
==== tarif_change ==== | ==== tarif_change ==== | ||
| Строка 330: | Строка 359: | ||
''Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)'' | ''Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)'' | ||
Description: | Description: Change a customer's tariff | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
tarif - new tariff ID | tarif - new tariff ID | ||
| Строка 341: | Строка 370: | ||
''Added in: 3.12.69'' | ''Added in: 3.12.69'' | ||
Description: | Description: Move a customer to the ''Former customers'' category | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
==== to_normal ==== | ==== to_normal ==== | ||
| Строка 351: | Строка 380: | ||
''Added in: 3.12.90'' | ''Added in: 3.12.90'' | ||
Description: | Description: Move a customer back to normal status (from "Former customers") | ||
Required parameters: | |||
usercode - ''(for version 3.16 and earlier)'' | usercode - ''(for version 3.16 and earlier)'' customer ID | ||
customer_id - ''(for version 3.17 and later)'' | customer_id - ''(for version 3.17 and later)'' customer ID | ||
==== merge ==== | |||
''Added in: 3.19.33'' | |||
Description: Merge customers | |||
Required parameters: | |||
dst_id - main customer id | |||
src_id - secondary customer id ''(whose information is moved to the main customer)'' | |||
==== msg_add_to_customer ==== | |||
''Added in: 3.19.45'' | |||
Description: Add a message from an employee to a customer | |||
Required parameters: | |||
employee_id - employee id | |||
customer_id - customer id | |||
text - Message text | |||
Optional parameters: | |||
is_arc - flag - put the message into the archive | |||
Текущая версия от 12:17, 10 мая 2026
Section API ERP "UserSide"
Purpose: Actions with customers. Most actions are relevant for manual billing.
Additional parameters: action - subcategory of the request (possible value: see below)
Subcategories
add
Modified in: 3.13.25 (added is_corporate parameter)
Description: Add a customer Optional parameters: fio - name of the customer codeti - customer id in the billing system is_potential - flag - potential customer is_corporate - flag - legal entity billing_id - billing id billing_customer_id - customer id in billing (required if this is not a potential customer)
abon_hist
Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)
Description: Display customer transactions (financial and other) Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID
change_balance
Modified in: 3.16dev2 (removed operator_id parameter, added employee_id parameter)
Modified in: 3.13.22 (added operator_id parameter)
Description: Change balance (income/expense operation) Required parameters: customer_id - customer ID amount - Amount comment - operation notes Optional parameters: employee_id - employee ID operator_id - operator ID (before version 3.16dev2)
change_billing
Modified in: 3.16.23 (added billing_user_id parameter)
Added in: 3.12.48
Description: Change billing Required parameters: customer_id - customer id billing_id - billing id Optional parameters: billing_user_id - customer id in billing
change_date_connect
Added in: 3.12.80
Description: Change the connection date Required parameters: customer_id - customer ID value - date
delete
Added in: 3.14.21
Description: Delete a customer Required parameters: id - customer ID
edit
Modified in: 3.20.10 (added coordinates parameter)
Modified in: 3.16dev3 (added group_id parameter)
Modified in: 3.13.56 (added manager_id parameter)
Added in: 3.12rc2
Description: Edit a customer Required parameters: id - customer ID Optional parameters: account_number - personal account number agreement_date - agreement date agreement_number - agreement number apartment_number - flat number comment - notes coordinates - coordinates as text separated by comma (example: 47.839628,35.140553) date_activity - date of network activity date_activity_inet - date of internet activity date_connect - date of connection email - email address entrance - entrance number flag_corporate - flag - legal entity floor - floor group_id - group id house_id - house id is_potential - flag - potential customer login - login manager_id - id of manager employee name - name of customer parent_id - id of parent customer (for the child customer) phone0 - mobile phone number phone1 - home phone number phone2 - additional phone number 1 phone3 - additional phone number 2 phone4 - additional phone number 3
get_activity_counter
Added in: 3.12.81
Description: Retrieve the counter of active customers Required parameters: type - counter type (Possible values: net, internet, personal_area)
get_abon_id
Modified in: 3.14.34 (added possible account value for data_typer parameter)
Description: Retrieve customer ID from input data Required parameters: data_typer - type of data we are checking (possible values: account, billing_uid, codeti, dognumber, ip, login, mac, mail, phone) data_value - value Optional parameters: is_skip_old - flag - do not search among former customers
get_customer_group
Added in: 3.19beta1
Description: Get list of customer groups Required parameters: None Optional parameters: None
get_customers_id
Modified in: 3.18.10 (added is_corporate parameter)
Modified in: 3.16dev3 (added parameters name, limit, is_like)
Modified in: 3.15.26 (added is_ex parameter)
Modified in: 3.14.71 (added dependence_device_id parameter)
Modified in: 3.14.58 (added balance_from, balance_to, state_id parameters)
Modified in: 3.14.41 (added date_connect_from and date_connect_to parameters)
Modified in: 3.14.5 (added address_unit_id parameter)
Modified in: 3.13.48 (added tariff_id parameter)
Modified in: 3.13.35 (added mark_id parameter)
Added in: 3.12.8
Description: Retrieve list of customer IDs by incoming conditions Required parameters: None Optional parameters (but at least one condition must be specified): account_number - personal account number address_unit_id - address unit id appartment - number of the flat balance_from - balance (from) balance_to - balance (to) billing_id - billing number id billing_uuid - customer id in billing date_connect_from - date of connection (from) date_connect_to - date of connection (to) dependence_device_id - id of the device the customers depend on house_id - house id is_corporate - flag - a legal entity is_ex - flag - former customers manager_id - manager id (0 to search without manager) mark_id - mark id name - name/title of customer state_id - status id tariff_id - tariff id limit - maximum number of records to return in the response is_like - flag - use substring comparison where possible (not a full match)
get_data
Description: Retrieve customer information Required parameters: customer_id - customer ID or account_number - customer's personal account number + billing_id - billing ID
get_ip_port_device_commutation
Added in: 3.12beta35
Description: Get customer IP and MAC addresses with switch bindings (including for DHCP use)
get_last_ip
Description: Get the last used IP address for customers
get_mac_history
Added to: 3.16dev8
Description: Get MAC address change history by customer Required parameters: customer_id - customer ID
get_max_agreement_number
Added in: 3.12.3
Description: Get the maximum occupied contract number (numeric) Optional parameters: billing_id - billing id of customers among which to perform the selection
ip_add
Modified in: 3.17.36 (added mac parameter)
Added in: 3.12.83
Description: Add IP address Required parameters: customer_id - customer ID value - IP Optional parameters: mac - MAC of the customer
ip_delete
Modified in: 3.19beta1 (added possible value all to the value parameter)
Added in: 3.12.83
Description: Delete IP address Required parameters: customer_id - customer ID value - ip or "-1" for entries with no IP address (MAC address only) or "all" for all addresses
ip_subnet_add
Added in: 3.14.71
Description: Add an IP address subnet for a customer Required parameters: customer_id - customer ID ip - initial ip address subnet - subnet mask/VLSM (for example: 24)
ip_subnet_delete
Added to: 3.14.71
Description: Delete an IP address subnet from a customer Required parameters: customer_id - customer ID ip - initial ip address
list_tarif_available
Excluded in: 3.13
Description: List of tariffs available for customer tariff changes Required parameters: usercode - customer ID
mark_add
Added in: 3.12.82
Description: Add a mark to a customer Required parameters: customer_id - customer ID mark_id - mark id
mark_delete
Added in: 3.12.82
Description: Delete a mark from a customer Required parameters: customer_id - customer ID mark_id - mark id
msg
Modified in: 3.17dev1 (usercode parameter removed, customer_id parameter added)
Modified in: 3.16dev3 (made usercode parameter optional)
Modified in: 3.16dev2 (excluded operator_id parameter, added employee_id parameter)
Modified in: 3.14.53 (added date_add_from, date_add_to, operator_id parameters)
Description: Display correspondence with a customer Optional parameters (at least one is required): usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID date_add_from - date of message (from) date_add_to - date of message (to) is_answer - whether the message has an answer (1 - answered, 0 - not answered) is_archive - whether the message is archived employee_id - id of the employee who authored the message operator_id - id of the operator who authored the message (before version 3.16dev2)
msg_add
Added in: 3.13.25
Description: Add a message from a customer Required parameters: customer_id - customer ID text - Message text Optional parameters: is_arc - flag - put the message into the archive
pass_change
Modified in: 3.17dev1 (usercode parameter removed, customer_id parameter added)
Modified in: 3.15.23 (pass_old parameter became optional)
Description: Change password for logging in to the customer portal Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID pass_new - new password Additional parameters: pass_old - current password
service_add
Added in: 3.18beta1
Description: Add additional service Required parameters: customer_id - customer ID service_id - id of additional service Optional parameters: price - individual price comment - notes
service_remove
Added in: 3.18beta1
Description: Remove additional service Required parameters: customer_id - customer ID service_id - id of additional service
set_mac_by_ip
Added in: 3.12beta35
Description: Set the MAC address for a customer's IP address Required parameters: ip - IP address of the customer (for example: 192.168.0.1) mac - MAC address of the customer (for example: 00:11:22:33:44:55)
state_change
Modified in: 3.17dev1 (removed usercode parameter, added customer_id parameter)
Added in: 3.12.8
Description: Change a customer's service status Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID state_id - customer status ID (0 - stop, 1 - paused, 2 - active)
tarif_change
Modified in: 3.17dev1 (excluded usercode parameter, added customer_id parameter)
Description: Change a customer's tariff Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID tarif - new tariff ID
to_ex
Modified in: 3.17dev1 (removed usercode parameter, added customer_id parameter)
Added in: 3.12.69
Description: Move a customer to the Former customers category Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID
to_normal
Modified in: 3.17dev1 (removed usercode parameter, added customer_id parameter)
Added in: 3.12.90
Description: Move a customer back to normal status (from "Former customers") Required parameters: usercode - (for version 3.16 and earlier) customer ID customer_id - (for version 3.17 and later) customer ID
merge
Added in: 3.19.33
Description: Merge customers Required parameters: dst_id - main customer id src_id - secondary customer id (whose information is moved to the main customer)
msg_add_to_customer
Added in: 3.19.45
Description: Add a message from an employee to a customer Required parameters: employee_id - employee id customer_id - customer id text - Message text Optional parameters: is_arc - flag - put the message into the archive