Queries transactions within your Alibaba Cloud account.
Debugging
Authorization information
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.