Differences
This shows you the differences between two versions of the page.
Next revision
|
Previous revision
|
en:sidebar:remoteapi:apiref:account:update_plan [23/01/2013 08:43] 127.0.0.1 external edit |
en:sidebar:remoteapi:apiref:account:update_plan [29/11/2013 13:31] (current) |
{{indexmenu_n>5}} | {{indexmenu_n>5}} |
====== Смена тарифного плана ====== | ====== Change billing plan ====== |
Чтобы назначить тарифный план, нужно использовать команду **account/update_plan**: | |
| To set a billing plan, use the command **account/update_plan**: |
| |
<code javascript> | <code javascript> |
</code> | </code> |
| |
:!: //Внимание!//\\ Для того, чтобы текущий пользователь мог назначать тарифные планы, у него должны быть права типа: Управление учетной записью (см. [[../core/check_items_billing#Ресурсы| Флаги доступа: Ресурсы]]) на данную учетную запись, также текущий пользователь должен быть прямым или непрямым родителем этой учетной записи. | :!: //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 | ID ресурса (учетной записи) | | | itemId | resource (account) ID | |
| plan | название тарифного плана | | | plan | billing plan name | |
| |
===== Возвращаемый результат ===== | ===== Response ===== |
<code=javascript> | <code=javascript> |
{} /* пустой объект при удачном выполнении, при неудачном - код ошибки */ | {} /* empty object if execution successful, if not - error code */ |
</code> | </code> |