update_sub_plans

Prerequisites

The user can assign only the available subordinate billing plans. To assign a billing plan to an account, the user must be a direct or indirect parent of the account and have the following permissions:

  • Manage account access right to this account (see core/check_items_billing).
  • dealer rights. To enable them, use the account/update_dealer_rights method.

  • To set the list of subplans that the specified account can assign, use the account/update_sub_plans method:

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

    Parameters

    The request must contain the following parameters:

    Parameter Description
    itemId Resource (account) ID.
    plans List of subplans.

    Response

    If the plan is updated successfully, an empty object is returned.

    Otherwise, the response contains error code 7, indicating that the user has no dealer rights.

    If you find a mistake in the text, please select it and press Ctrl+Enter.

    Report a mistake

    Your message was sent. Thank you!

    An error occurred while submitting the form

    Download PDF file
    Download Word document

    See also