list_change_accounts

To get a list of accounts to which you can transfer a unit, use the list_change_accounts method:

Copied!
svc=account/list_change_accounts&params={"units":[<long>],"dataFlags":<long>}

Parameters

The request must contain the following parameters:

Parameter Description
units Array of unit IDs.
dataFlags Optional. Response data flags. The default value is 0x1: the ID and name of each account are returned. If 0 is specified, an empty array is returned.

Response

If the request is completed successfully, a response of the following format is returned:

Copied!
[
    {
    "id":<long>,      /* Account ID. */
    "name":<text>     /* Account name. */
    },
    ...               /* Other valid accounts (if any). */
]

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