Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:account:update_billing_service [30/01/2013 14:32] zuve |
en:sidebar:remoteapi:apiref:account:update_billing_service [29/11/2013 13:31] (current) |
====== Services management ====== | ====== Services management ====== |
| |
To manage services use command **core/update_billing_service**: | To manage services (available features and their cost), use the command **core/update_billing_service**: |
| |
<code javascript> | <code javascript> |
===== Parameters ===== | ===== Parameters ===== |
^ Name ^ Description ^ | ^ Name ^ Description ^ |
| itemId | resource(account) ID| | | itemId | resource (account) ID| |
| name | service name (complete list of services is described in chapter [[get_account_data]]) | | | name | service name (complete list of services is given in the chapter [[get_account_data|]]) | |
| type | service type (see below) | | | type | service type (see below) | |
| intervalType | interval type (see below) | | | intervalType | interval type (see below) | |
| |
Service types: | Service types: |
* **1** -- on demand, for example SMS, commands etc. IntervalType defines frequency of service usage counter reset. | * **1** -- on demand (for example, SMS). //IntervalType// defines frequency of service usage counter reset. |
* **2** -- periodic service, payments for them must be performed in specified time interval. | * **2** -- periodic services, payments for them must be performed in specified time interval. |
| |
Interval types: | Interval types: |
* **4** -- monthly. | * **4** -- monthly. |
| |
===== Возвращаемый результат ===== | ===== Response ===== |
<code=javascript> | <code=javascript> |
{} /* пустой объект при удачном выполнении, при неудачном - код ошибки */ | {} /* empty object if execution successful, if not - error code */ |
</code> | </code> |