API tariff EN: различия между версиями

Материал из WiKi - UserSide
(Fix Ukrainian API localization)
([IronBot] Sync localization from RU)
 
Строка 37: Строка 37:


==== edit ====
==== edit ====
''Updated in: 3.21.63 (added description and additional_comment parameters)''
  Description: Edit tariff
  Description: Edit tariff
  Required parameters:
  Required parameters:
   id - id of tariff
   id - id of tariff
  Optional parameters:
  Optional parameters:
  additional_comment - additional comment
  description - notes
   is_in_billing - flag - whether the tariff is available in third party billing
   is_in_billing - flag - whether the tariff is available in third party billing
   name - tariff name
   name - tariff name

Текущая версия от 14:52, 25 сентября 2026

en | uk | ru

Section API ERP "UserSide"

Purpose: Tariffs

Additional parameters:
action - request subcategory (possible value: see below)

Subcategories

add

Description: Add a tariff
Required parameters:
 name - name of tariff
 billing_id - billing id
 billing_tariff_id - id of tariff in third-party billing

add_group

Added in: 3.14.67

Description: Add a tariff group
Required parameters:
 name - name

add_tariff_in_group

Added in: 3.14.67

Description: Add a tariff to a tariff group
Required parameters:
 tariff_id - tariff id
 group_id - id of tariff group

delete_group

Added in: 3.14.67

Description: Delete a tariff group
Required parameters:
 id - id of the group

edit

Updated in: 3.21.63 (added description and additional_comment parameters)

Description: Edit tariff
Required parameters:
 id - id of tariff
Optional parameters:
 additional_comment - additional comment
 description - notes
 is_in_billing - flag - whether the tariff is available in third party billing
 name - tariff name
 payment - amount of subscription fee
 payment_interval - subscription fee debiting interval (in days)
 speed_rx - incoming speed (in kbps)
 speed_tx - outgoing speed (in kbps)
 traffic - included traffic by tariff (in MB)

edit_group

Added in: 3.14.67

Description: Editing a group of tariffs
Required parameters:
 id - id of the group
 name - name

get

Added in: 3.12.2

Description: List of tariffs
Additional parameters:
 billing_id - billing id
 name - name of tariff

get_group

Added in: 3.13.19

Description: Information about tariff groups
Additional parameters:
 id - id of the group (can be comma separated)

remove_tariff_from_group

Added in: 3.14.67

Description: Excluding a tariff from a tariff group
Required parameters:
 tariff_id - id of tariff
 group_id - id of tariff group