调用GetPayerForAccount获取结算账号信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetPayerForAccount |
要执行的操作。取值:GetPayerForAccount。 |
| AccountId | String | 是 | 12323344**** |
账号ID。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| PayerAccountId | String | 172841235500**** |
结算账号ID。 |
| PayerAccountName | String | Alice |
结算账号名称。 |
| RequestId | String | 9B34724D-54B0-4A51-B34D-4512372FE1BE |
请求ID。 |
示例
请求示例
https://resourcemanager.aliyuncs.com/?Action=GetPayerForAccount
&AccountId=12323344****
&<公共请求参数>
正常返回示例
XML 格式
<GetPayerForAccountResponse>
<RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
<PayerAccountId>172841235500****</PayerAccountId>
<PayerAccountName>Alice</PayerAccountName>
</GetPayerForAccountResponse>
JSON 格式
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
"PayerAccountId":"172841235500****",
"PayerAccountName": "Alice"
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 |
| 404 | EntityNotExists.Account | This resource directory account does not exist. | 成员不存在,请先创建成员。 |
访问错误中心查看更多错误码。