All Products
Search
Document Center

Resource Management:GetPayerForAccount

Last Updated:Jun 25, 2024

Queries the information of a billing account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AccountIdstringYes

The ID of the billing account.

12323344****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

PayerAccountNamestring

The name of the billing account.

Alice
RequestIdstring

The ID of the request.

9B34724D-54B0-4A51-B34D-4512372FE1BE
PayerAccountIdstring

The ID of the billing account.

172841235500****

Examples

Sample success responses

JSONformat

{
  "PayerAccountName": "Alice",
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
  "PayerAccountId": "172841235500****"
}

Error codes

HTTP status codeError codeError messageDescription
404EntityNotExists.ResourceDirectoryThe resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.The account is not used to enable a resource directory. Use the account to enable a resource directory first.
404EntityNotExists.AccountThis resource directory account does not exist.The member does not exist. Create such a member first.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history