Subordinate billing plans

To set the list of subplans, which current account can assign, use the command account/update_sub_plans:

svc=account/update_sub_plans&params={"itemId":<long>,
				     "plans":[<text>]}

:!: Attention!
Current user can assign only available for him subordinate plans. To assign a 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.

Parameters

Name Description
itemId resource (account) ID
plans list of subplans

Response

{}	/* empty object if execution successful, if not - error code */

Errors

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
6 error setting the list of subplans
7 access denied
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam