Queries transactions within your Alibaba Cloud account.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
bss:DescribeAcccountTran | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TransactionNumber | string | No | The number of the transaction. | 133314076 |
RecordID | string | No | The ID of the order or bill. | 20200302 |
TransactionChannelSN | string | No | The serial number of the transaction channel. | 12342134 |
CreateTimeStart | string | No | The beginning of the creation time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. Example: 2018-01-01T00:00:00Z. | 2020-03-05T01:46:09Z |
CreateTimeEnd | string | No | The end of the creation time range to query. By default, the transactions in the last month are queried. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. Example: 2018-01-01T00:00:00Z. | 2020-03-06T01:55:00Z |
PageNum | integer | No | The number of the page to return. Default value is 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value is 20. | 10 |
TransactionType | string | No | The type of the transaction. If you specify one of the following transaction types for this parameter, the results for the specified transaction type are returned. If the transaction type that you specify does not belong to the following types, no result is returned. If you leave this parameter empty, the results for all the following transaction types are returned by default. Valid values:
| Payment |
TransactionFlow | string | No | The type of the transaction flow. If you specify one of the following types for this parameter, the results for the specified type are returned. If the type that you specify does not belong to the following types, no result is returned. If you leave this parameter empty, the results for the following two types are returned by default. Valid values:
| Income |
TransactionChannel | string | No | The transaction channel. If you specify one of the following transaction channels for this parameter, the results for the specified transaction channel are returned. If the transaction channel that you specify does not belong to the following transaction channels, no result is returned. If you leave this parameter empty, the results for all the following transaction channels are returned by default. Valid values:
| AccountBalance |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "8634E02D-0942-4B1D-8295-5352FE9A1F39",
"Success": true,
"Data": {
"PageNum": 1,
"PageSize": 10,
"TotalCount": 10,
"AccountName": "test@test.aliyunid.com",
"AccountTransactionsList": {
"AccountTransactionsList": [
{
"BillingCycle": "2020-03",
"TransactionChannel": "AccountBalance",
"RecordID": "2020030242",
"Remarks": "NAT_GW",
"Amount": "0",
"TransactionAccount": "213562146",
"TransactionTime": "2020-03-10T02:03:20Z",
"TransactionType": "Consumption",
"TransactionFlow": "Expense",
"FundType": "Cash",
"TransactionChannelSN": "1234354325",
"TransactionNumber": "43342334",
"Balance": "0"
}
]
}
}
}
Error codes
For a list of error codes, visit the Service error codes.