QueryAccountTransactions - 账户流水收支明细查询接口
查询用户账户流水信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
bss:DescribeAcccountTran |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| TransactionNumber |
string |
否 |
交易编号。 |
133314076 |
| RecordID |
string |
否 |
订单/账单号。 |
20200302 |
| TransactionChannelSN |
string |
否 |
交易渠道流水号。 |
12342134 |
| CreateTimeStart |
string |
否 |
创建时间段起,不传时默认是当前时间往前一个月。格式例:2018-01-01T00:00:00Z。 |
2020-03-05T01:46:09Z |
| CreateTimeEnd |
string |
否 |
创建时间段止,不传时默认是当前时间。格式例:2018-01-01T00:00:00Z。 |
2020-03-06T01:55:00Z |
| PageNum |
integer |
否 |
页码。不填默认 1 |
1 |
| PageSize |
integer |
否 |
每页显示条数。不填默认 20 |
10 |
| TransactionType |
string |
否 |
交易类型。 传入以下交易类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。
|
Payment |
| TransactionFlow |
string |
否 |
收支类型。 传入以下收支类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。
|
Income |
| TransactionChannel |
string |
否 |
交易渠道。 传入以下交易渠道类型,查询返回对应类型结果,不存在时结果为空。不传默认返回所有类型。
|
AccountBalance |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
string |
状态码。 |
Success |
| Data |
object |
返回数据。 |
|
| AccountName |
string |
用户账号。 |
test@test.aliyunid.com |
| AccountTransactionsList |
object |
||
| AccountTransactionsList |
array<object> |
流水信息集合。 |
|
|
object |
|||
| Amount |
string |
金额。 |
0 |
| Balance |
string |
余额。 |
0 |
| BillingCycle |
string |
账期,格式:YYYY-MM。 |
2020-03 |
| FundType |
string |
资金形式。
|
Cash |
| RecordID |
string |
订单号/账单号。 |
2020030242 |
| Remarks |
string |
交易备注。 |
NAT_GW |
| TransactionAccount |
string |
对应交易账号,比如支付宝充值账号或转账对端账号。 |
213562146 |
| TransactionChannel |
string |
交易渠道。
|
AccountBalance |
| TransactionChannelSN |
string |
交易渠道流水号。 |
1234354325 |
| TransactionFlow |
string |
收支类型。
|
Expense |
| TransactionNumber |
string |
交易编号。 |
43342334 |
| TransactionTime |
string |
交易时间。 |
2020-03-10T02:03:20Z |
| TransactionType |
string |
交易类型。
|
Consumption |
| PageNum |
integer |
页码。 |
1 |
| PageSize |
integer |
每页显示条数。 |
10 |
| TotalCount |
integer |
总记录数。 |
10 |
| Message |
string |
错误信息。 |
Successful! |
| RequestId |
string |
请求 ID。 |
8634E02D-0942-4B1D-8295-5352FE9A1F39 |
| Success |
boolean |
是否成功。 |
true |
示例
正常返回示例
JSON格式
{
"Code": "Success",
"Data": {
"AccountName": "test@test.aliyunid.com",
"AccountTransactionsList": {
"AccountTransactionsList": [
{
"Amount": "0",
"Balance": "0",
"BillingCycle": "2020-03",
"FundType": "Cash",
"RecordID": "2020030242",
"Remarks": "NAT_GW",
"TransactionAccount": "213562146",
"TransactionChannel": "AccountBalance",
"TransactionChannelSN": "1234354325",
"TransactionFlow": "Expense",
"TransactionNumber": "43342334",
"TransactionTime": "2020-03-10T02:03:20Z",
"TransactionType": "Consumption"
}
]
},
"PageNum": 1,
"PageSize": 10,
"TotalCount": 10
},
"Message": "Successful!",
"RequestId": "8634E02D-0942-4B1D-8295-5352FE9A1F39",
"Success": true
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。