You can call this operation to query sub-accounts.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/account/sub_account_list HTTPS|HTTP

Request parameters

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String message

The returned message.

RequestId String 57609587-DFA2-41EC-****-*********

The ID of the request.

SubAccountList Array

The returned list of sub-accounts.

AdminUserId String test@13624697***

The ID of the primary account corresponding to the sub-account returned.

SubUserId String 221306970*******

The ID of the sub-account returned.

Email String email@aliyun.com

The email address of the sub-account user.

Phone String 1373322****

The mobile number of the sub-account user.

AdminUserKp String 13624697********

The user ID of the primary account corresponding to the sub-account.

SubUserKp String sub@13624697******

The user ID of the sub-account.

Examples

Sample requests

POST /pop/v5/account/sub_account_list HTTP/1.1
Common request headers

Sample success responses

JSON format

{
    "Message": "success",
    "SubAccountList": {
        "SubAccount": [
            {
                "AdminUserKp": "13624697*****9",
                "SubUserKp": "221306970*******"
            },
            {
                "AdminUserKp": "13624697******",
                "SubUserKp": "29716777********"
            }
        ]
    },
    "Code": 200
}

XML format

<Message>success</Message>
<SubAccountList>
    <SubAccount>
        <AdminUserKp>13624697*****9</AdminUserKp>
        <SubUserKp>221306970*******</SubUserKp>
    </SubAccount>
    <SubAccount>
        <AdminUserKp>13624697******</AdminUserKp>
        <SubUserKp>29716777********</SubUserKp>
    </SubAccount>
</SubAccountList>
<Code>200</Code>

Error codes

For a list of error codes, visit the API Error Center.