查询交易明细
拥有此API的权限集 |
---|
资产管理-查询 |
请求方式及url
- 请求方式:
POST
- 请求头:
Content-Type:application/json
- 接口地址:
https://api.xiaoe-tech.com/xe.trade.detail_list/1.0.0
- 频率限制:
10秒300次
在线调试工具
请求
响应
请求参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 专属token |
date_type | 否 | string | 'transaction_time'交易时间, 'settle_time_new':结算时间, 'bill_time':记账时间 |
page_index | 否 | string | 页数 |
page_size | 否 | string | 条数 |
order_id | 否 | string | 订单id |
sub_mchid | 否 | string | 商户号 |
purchase_type | 否 | string | 商品类型 |
start_date | 否 | string | 开始时间 |
end_date | 否 | string | 结束时间 |
transaction_state | 否 | string | 交易状态 ALL/REFUND_ALL_SUCCESS/REFUND_PART_SUCCESS/CLOSE/SUCCESS/WAIT_SETTLE |
income_type | 否 | string | 收支类型筛选 1-收入 2-支出 |
请求示例
{
"access_token":"xe_xxxxx",
"date_type":"bill_time",
"end_date":"2025-02-19",
"income_type":0,
"order_id":"",
"page_index":1,
"page_size":10,
"purchase_type":"",
"start_date":"2025-01-20",
"sub_mchid":"",
"transaction_state":"ALL",
}
返回参数
参数名 | 类型 | 说明 |
---|---|---|
code | int | 状态码:0-成功,其他为错误 |
msg | string | 对返回码的文本描述内容 |
data.list | object | 数据列表 |
data.list
数据列表
参数名 | 类型 | 说明 |
---|---|---|
settle_time_new | string | 结算时间 |
bill_time | string | 记账时间 |
purchase_name_str | string | 商品名称 |
purchase_id | string | 商品id |
purchase_type | string | 商品类型 |
order_id | string | 内部订单号 |
transaction_id_id | string | 外部订单号 |
sub_mchid | string | 商户号 |
income_type | string | 收支类型 1-收入 2支出 |
buz_type | string | 收支场景 |
price | string | 交易金额 |
transaction_state | string | 状态 |
data.count
数据总数
返回示例
{
"code": 0,
"msg": "SUCCESS",
"data": {
"list": [{
"app_id": "appsiq8gtb49273",
"sub_mchid": "\u5fae\u4fe1-1673446753",
"use_collection": 2,
"order_id": "20250219140549a02f27Y9LZHYkBCqNT",
"transaction_id": "20250219140549a02f27Y9LZHYkBCqNT",
"income_type": -1,
"profit_type": 112,
"buz_type": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"price": -672350,
"purchase_name": ["-"],
"purchase_type": "",
"resource_type": "0",
"transaction_state": "SUCCESS",
"transaction_time": "2025-02-19 14:05:14",
"settle_time": "2025-02-19 14:05:14",
"settle_time_new": "2025-02-19 14:05:14",
"bill_time": "2025-02-19 14:05:14",
"refund_id": "",
"provider_refund_id": "",
"remark": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"created_at": "2025-02-19 14:05:23",
"purchase_name_str": "-",
"resource_type_desc": "\u5176\u4ed6",
"transaction_state_remark": {
"msg": [],
"notice": [],
"error": []
},
"new_order_id": "20250219140549a02f27Y9LZHYkBCqNT"
}, {
"app_id": "appsiq8gtb49273",
"sub_mchid": "\u5fae\u4fe1-1673446753",
"use_collection": 2,
"order_id": "20250217140519934481zYsJfOtWTLan",
"transaction_id": "20910088594763417397723134069662",
"income_type": -1,
"profit_type": 112,
"buz_type": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"price": -1115942,
"purchase_name": ["-"],
"purchase_type": "",
"resource_type": "0",
"transaction_state": "SUCCESS",
"transaction_time": "2025-02-17 14:05:13",
"settle_time": "2025-02-17 14:05:14",
"settle_time_new": "2025-02-17 14:05:14",
"bill_time": "2025-02-17 14:05:14",
"refund_id": "",
"provider_refund_id": "",
"remark": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"created_at": "2025-02-17 14:05:17",
"purchase_name_str": "-",
"resource_type_desc": "\u5176\u4ed6",
"transaction_state_remark": {
"msg": [],
"notice": [],
"error": []
},
"new_order_id": "20250217140519934481zYsJfOtWTLan"
}, {
"app_id": "appsiq8gtb49273",
"sub_mchid": "\u5fae\u4fe1-1673446753",
"use_collection": 2,
"order_id": "2025021614050196c6bcilNEcDfWayqD",
"transaction_id": "20910088594763417396859131685254",
"income_type": -1,
"profit_type": 112,
"buz_type": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"price": -838771,
"purchase_name": ["-"],
"purchase_type": "",
"resource_type": "0",
"transaction_state": "SUCCESS",
"transaction_time": "2025-02-16 14:05:13",
"settle_time": "2025-02-16 14:05:14",
"settle_time_new": "2025-02-16 14:05:14",
"bill_time": "2025-02-16 14:05:14",
"refund_id": "",
"provider_refund_id": "",
"remark": "\u5c0f\u9e45\u901a\u5e73\u53f0\u63d0\u73b0",
"created_at": "2025-02-16 14:05:19",
"purchase_name_str": "-",
"resource_type_desc": "\u5176\u4ed6",
"transaction_state_remark": {
"msg": [],
"notice": [],
"error": []
},
"new_order_id": "2025021614050196c6bcilNEcDfWayqD"
}],
"count": 3
}
}