Differences
This shows you the differences between two versions of the page.
|
|
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] |
{{indexmenu_n>5}} | |
====== Change billing plan ====== | |
| |
To set a billing plan, use the command **account/update_plan**: | |
| |
<code javascript> | |
svc=account/update_plan¶ms={"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> | |