update_plan

Prerequisites

To assign a billing plan to an account, the user must have the Manage account access right to this account (see core/check_items_billing). The user must be a direct or indirect parent of the account.

To assign a billing plan, use the account/update_plan method:

Copied!
svc=account/update_plan&params={"itemId":<long>,
                "plan":<text>} 

Parameters

The request must contain the following parameters:

Parameter Description
itemId Resource (account) ID.
plan Billing plan name.

Response

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

Otherwise, an error code is returned.

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