订单列表查询
Path: /optimus/core/order/queryOrders
入参说明(JSON 格式)
入参整体结构:
| 字段 | 类型 | 描述 |
|---|---|---|
| appid | String | 应用ID |
| filter | Object | 筛选条件 |
| cursor | Object | 分页游标 |
| sort | Object | 排序条件 |
filter 字段明细:
| 字段 | 类型 | 描述 | 示例 |
|---|---|---|---|
| merchantSn | String | 商户号 | "21690004035507" |
| beginDateTime | String | 开始时间 | "20240710090700" |
| endDateTime | String | 结束时间 | "20250714090700" |
cursor 字段明细:
| 字段 | 类型 | 描述 | 示例 |
|---|---|---|---|
| count | Integer | 每页数量 | 100 |
| cursorField | String | 游标字段 | "order_id" |
sort 字段明细:
| 字段 | 类型 | 描述 | 示例 |
|---|---|---|---|
| sortField | String | 排序字段 | "order_id" |
| sort | String | 排序方式 | "DESC" |
出参说明(JSON 格式)
出参整体结构:
| 字段 | 类型 | 描述 |
|---|---|---|
| success | Boolean | 是否成功 |
| code | String | 返回码 |
| msg | String | 返回消息 |
| data | Array | 订单数据 |
data 字段明细(单条订单):
| 参数 | 参数名称 | 类型 | 描述 | 示例 |
|---|---|---|---|---|
| orderSn | 订单号 | String | 订单号,全局唯一 | "71582143744560" |
| payTsnList | 支付流水号列表 | Array |
- | ["7895xxxxxxxx"] |
| terminalSn | 交易终端号 | String | 收钱吧终端号 | "2101056320290513285" |
| storeSn | 交易门店号 | String | 收钱吧门店号 | "21590000000608177" |
| orderAmount | 订单金额 | Long | 订单金额,单位分 | 99999 |
| createdAt | 下单时间 | String | 格式yyyy-MM-dd HH:mm:ss | "2024-01-30 15:00:00" |
| orderStateCode | 订单状态码 | Integer | 0: 已创建 10: 已支付 35: 已完成 40: 已取消 |
35 |
| items | 订单项 | Array |
详见《订单项格式》 | [{"title":"Mr您","skuDesc":"---","quantity":"1","unit":""}] |
| collectedInfo | 采集数据 | String | Json字串,详见《采集数据格式》 | "[{\"type\":\"text\",\"form\":\"basic\",\"fieldName\":\"姓名\",\"content\":\"好\"}]" |
| orderSignature | 订单签名 | String | - | - |
订单项字段格式:
| 参数 | 参数名称 | 类型 | 描述 | 示例 |
|---|---|---|---|---|
| title | 商品标题 | String | - | "衣柜" |
| skuDesc | 规格描述 | String | - | "高度" |
| quantity | 数量 | String | - | "1" |
| unit | 单位 | String | - | "件" |
采集数据字段格式:
| 参数 | 参数名称 | 类型 | 描述 | 示例 |
|---|---|---|---|---|
| type | 控件类型 | String | - | "text" |
| form | 控件格式 | String | - | "basic" |
| fieldName | 字段名 | String | - | "姓名" |
| content | 采集数据内容 | String | - | "张三" |
入参示例
{
"appid": "2025082700005615",
"filter": {
"merchantSn": "21690004035507",
"beginDateTime": "20240710090700",
"endDateTime": "20250714090700"
},
"cursor": {
"count": 100,
"cursorField": "order_id"
},
"sort": {
"sortField": "order_id",
"sort": "DESC"
}
}
出参示例
{
"success": true,
"code": "0000",
"msg": "处理成功",
"data": [
{
"orderSn": "7273438794350987",
"terminalSn": "2101056320290801699",
"storeSn": "21590000001660565",
"orderAmount": 1,
"createdAt": "2025-06-26 13:56:01",
"orderStateCode": 40,
"items": [],
"collectedInfo": "[{\"type\":\"text\",\"form\":\"basic\",\"fieldName\":\"姓名\",\"content\":\"\"},{\"type\":\"radio\",\"form\":\"basic\",\"fieldName\":\"单选\",\"content\":\"\"},{\"type\":\"cascade\",\"form\":\"cascade\",\"fieldName\":\"必填非搜索\",\"content\":[{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"省\",\"content\":\"江苏省\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"市\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"区\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"乡镇\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"村委会\",\"content\":\"\"}]},{\"type\":\"cascade\",\"form\":\"cascade\",\"fieldName\":\"必填搜索(朝代)\",\"content\":[{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"朝代\",\"content\":\"唐\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"诗人\",\"content\":\"李白\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"诗词标题11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\",\"content\":\"静夜思\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"诗词内容\",\"content\":\"床前明月光,疑是地上霜。举头望明月,低头思故乡。\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"5级标题\",\"content\":\"\"}]},{\"type\":\"cascade\",\"form\":\"cascade\",\"fieldName\":\"非必填非搜索\",\"content\":[{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"张三\",\"content\":\"元\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"李四\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"王五\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"找六\",\"content\":\"\"}]},{\"type\":\"preset-input\",\"form\":\"basic\",\"fieldName\":\"来来来\",\"content\":\"\"},{\"type\":\"cascade\",\"form\":\"cascade\",\"fieldName\":\"非必填搜索\",\"content\":[{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"房间号\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"业主姓名\",\"content\":\"\"},{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"费用名称\",\"content\":\"\"}]},{\"type\":\"cascade\",\"form\":\"cascade\",\"fieldName\":\"多级联动\",\"content\":[{\"type\":\"text\",\"form\":\"cascade\",\"fieldName\":\"一级标题\",\"content\":\"\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"二级标题\",\"content\":\"\"},{\"type\":\"text\",\"form\":null,\"fieldName\":\"三级标题\",\"content\":\"\"}]}]"
}
]
}