Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:account:update_billing_service [13/02/2013 14:51]
alek
en:sidebar:remoteapi:apiref:account:update_billing_service [29/11/2013 13:31]
Line 1: Line 1:
-{{indexmenu_n>​8}} 
-====== Services management ====== 
  
-To manage services (available features and their cost), use the command **core/​update_billing_service**:​ 
- 
-<code javascript>​ 
-svc=account/​update_billing_service&​params={"​itemId":<​long>,​ 
-    "​name":<​text>,​ 
-    "​type":<​ubyte>,​  
-    "​intervalType":<​ubyte>,​ 
-    "​costTable":<​text>​ 
-} 
-</​code>​ 
- 
-===== Parameters ===== 
-^ Name ^ Description ^ 
-| itemId | resource (account) ID| 
-| name | service name (complete list of services is given in the chapter [[get_account_data|]]) | 
-| type | service type (see below) | 
-| intervalType | interval type (see below) | 
-| costTable | cost table | 
- 
-Service types: 
-  * **1** -- on demand (for example SMS). //​IntervalType//​ defines frequency of service usage counter reset. ​ 
-  * **2** -- periodic services, payments for them must be performed in specified time interval. ​ 
- 
-Interval types: 
-  * **0** -- never; 
-  * **1** -- hourly; 
-  * **2** -- daily; 
-  * **3** -- weekly; 
-  * **4** -- monthly. ​ 
- 
-===== Response ===== 
-<​code=javascript>​ 
-{} /* empty object if execution successful, if not - error code */ 
-</​code>​ 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam