To set a billing plan, use the command account/update_plan:
svc=account/update_plan¶ms={"itemId":<long>, "plan":<text>}
Attention!
To assign a billing plan to an account, the current user must have the right to manage this account. Besides, the current user must be a direct or indirect parent of the account.
| Name | Description |
|---|---|
| itemId | resource (account) ID |
| plan | billing plan name |
{} /* empty object if execution successful, if not - error code */
| Code | Value |
|---|---|
| 1 | invalid session |
| 2 | invalid service name |
| 3 | invalid result |
| 4 | - invalid format or value of parameters - current user hasn't got an account - current account has no subplans to assign |
| 6 | error setting billing plan |
| 7 | access denied |
|