Differences

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

Link to this comparison view

en:sidebar:remoteapi:apiref:account:update_plan [13/02/2013 14:30]
alek
en:sidebar:remoteapi:apiref:account:update_plan [29/11/2013 13:31]
Line 1: Line 1:
-{{indexmenu_n>​5}} 
-====== Change billing plan ====== 
  
-To set a billing plan, use the command **account/​update_plan**: ​ 
- 
-<code javascript>​ 
-svc=account/​update_plan&​params={"​itemId":<​long>,​ 
- "​plan":<​text>​} 
-</​code>​ 
- 
-:!: //​Attention!//​\\ To assign a billing plan to an account, the current user must have the right to manage this account (see [[../​core/​check_items_billing#​Resources| Access flags: Resources]]). Besides, the current user must be a direct or indirect parent of the account. 
- 
-===== Parameters ===== 
-^ Name ^ Description ^ 
-| itemId | resource (account) ID | 
-| plan | billing plan name | 
- 
-===== 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