交易订单汇总信息查询
接口地址: /open-api/trade/order/getOrderSummary
请求方式: POST
接口描述: 根据查询时间和手机号,统计用户的订单数量和总金额
公共请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | 示例值 |
|---|---|---|---|---|---|
| appId | 应用ID | header | true | string | test |
| nonce | 随机字符串 | header | true | string | 75ba4a58-8db0-4ce0-b403-2ccc8dbaea72 |
| timestamp | 时间戳 | header | true | string | 1772763315016 |
| sign | 签名串 | header | true | string | 89f4ad32ea7151cc33477215c24e8020bfb801a9a805a1369d9d6ceddc67a7e4 |
业务请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | 示例值 |
|---|---|---|---|---|---|
| userMobile | 用户手机号 | body | true | string | 13660000000 |
| startTime | 开始时间 | body | false | string | 2024-01-01 00:00:00 |
| endTime | 结束时间 | body | false | string | 2024-12-31 23:59:59 |
请求示例
POST /open-api/trade/order/getOrderSummary HTTP/1.1Host: fjgs-gateway.imageco.cnContent-Type: application/jsonappId: testnonce: 75ba4a58-8db0-4ce0-b403-2ccc8dbaea72timestamp: 1746677123456sign: xxxxxxxxxxxxxxxxxxxx{"userMobile": "13660000000","startTime": "2025-01-01 00:00:00","endTime": "2025-12-31 23:59:59"}
响应参数:
| 参数名称 | 参数说明 | 类型 | 示例值 |
|---|---|---|---|
| code | 返回码 | integer | 0 |
| msg | 返回信息 | string | |
| data | 业务数据 | JSONObject | 参考data业务数据 |
data 业务数据 (JSONObject)
| 参数名称 | 参数说明 | 类型 | 示例值 |
|---|---|---|---|
| orderCount | 订单数量 | long | 15 |
| totalAmount | 订单总金额(分) | long | 158000 |
响应示例:
{ "code": 0, "msg": "", "data": { "orderCount": 15, "totalAmount": 158000 } }
备注:
totalAmount单位为分,如需转换为元,请除以 100- 如果不传
startTime和endTime,则统计该用户的所有订单 - 时间格式必须为:
yyyy-MM-dd HH:mm:ss


