This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:sidebar:remoteapi:apiref:account:update_billing_service [30/01/2013 14:32] zuve |
en:sidebar:remoteapi:apiref:account:update_billing_service [13/02/2013 14:51] alek |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== 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> | ||
Line 15: | Line 15: | ||
===== 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) | | ||
Line 22: | Line 22: | ||
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: | ||
Line 32: | Line 32: | ||
* **4** -- monthly. | * **4** -- monthly. | ||
- | ===== Возвращаемый результат ===== | + | ===== Response ===== |
<code=javascript> | <code=javascript> | ||
- | {} /* пустой объект при удачном выполнении, при неудачном - код ошибки */ | + | {} /* empty object if execution successful, if not - error code */ |
</code> | </code> |
|