接口描述:

  • 商户收银机APP专用接口文档,查询订单列表

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 马腾飞 2019-08-26 2019-08-26
1.0.0 朱小 2020-01-12 2020-01-12

请求URL:

  • 商户接口URL/api/trade_order/list

请求方式:

  • GET
  • POST

请求参数:

参数名 是否必须 类型 说明
page string 页号
limit string 页码
tradeType byte 交易类型:1-收款
industryType string 固定值:4
cashSearchData string 商户交易单号或牌号或会员手机号
queryStartDateTime string 订单创建时间开始日期 yyyy-MM-dd HH:mm:ss
queryEndDateTime string 订单创建时间结束日期 yyyy-MM-dd HH:mm:ss

返回参数说明:

参数名 类型 说明
code int 0
msg string success
data json 订单状态信息

返回数据说明:

参数名 类型 说明
tradeOrderId string 商户交易单号
tradeType string 交易类型:1-收款,2-充值
depositMode string 押金模式:0-普通收款,1-押金模式
mchId string 商户ID
appId string 应用ID
clientIp string 客户端IP
device string 设备
goodsId string 商品ID
subject string 商品标题
body string 商品描述信息
orderAmount string 订单金额,单位分
discountAmount string 优惠金额,单位分
amount string 实际支付金额,单位分
mchIncome string 商户入账金额,单位:分
userId string 用户ID
channelUserId string 支付渠道用户ID
status string 订单状态:取消订单(-2),失败(-1),生成(0),支付中(1),支付成功(2),部分退款(4),全额退款(5),押金未结算(6),押金退还(7)
payOrderId string 支付订单号
productId string 产品ID
productName string 产品名称
productType string 支付方式: 现金收款(1),会员账户(2),微信(3),支付宝(4),云闪付(5)
couponId string 优惠券核销码
storeNo string 门店编号
storeName string 门店名称
operatorId string 操作员id
operatorName string 操作员姓名
memberId string 会员ID
memberTel string 会员手机号
givePoints string 消费赠送积分
refundTotalAmount string 退款总金额
tradeSuccTime string 交易成功时间
createTime string 创建时间
updateTime string 更新时间

返回示例:

{
  "code": 0,
  "msg": "success",
  "data": [
    {
      "payOrderId": "P01201908230414452700006",
      "goodsId": "",
      "subject": "被扫支付",
      "refundTotalAmount": 0,
      "tradeOrderId": "E01201908230414433510006",
      "discountAmount": 0,
      "body": "被扫支付",
      "couponId": null,
      "operatorName": "123",
      "productName": "微信条码支付(被扫)",
      "orderAmount": 1,
      "channelUserId": null,
      "mchIncome": 1,
      "appId": "",
      "storeName": null,
      "givePoints": null,
      "operatorId": "null",
      "productType": null,
      "tradeType": 1,
      "memberId": null,
      "memberTel": null,
      "amount": 1,
      "mchId": 20000000,
      "productId": "8020",
      "tradeSuccTime": "2019-08-23T11:12:21.000+0000",
      "updateTime": "2019-08-23T19:13:22.000+0000",
      "userId": "134713461986047502",
      "storeNo": null,
      "createTime": "2019-08-23T16:14:42.000+0000",
      "clientIp": "0:0:0:0:0:0:0:1",
      "device": "",
      "status": 1
    }
  ],
  "count": 1
}

备注:

-

文档更新时间: 2021-10-25 17:45   作者:刘正阳