接口描述:

  • 查询订单列表

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 朱小 2020-04-09 2020-04-09

请求URL:

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

请求方式:

  • GET
  • POST

请求参数:

参数名 是否必须 类型 说明
page string 页号
limit string 页码
authFrom string 小程序:1-点餐 2-商城
postType string 1-堂食 2-外卖
status string 付款状态(与发货状态组合查询):生成(0),处理中(1),支付成功(2),失败(-1),部分退款(4),全额退款(5),押金未结算(6),押金退还(7)
postStatus string 发货状态:0-待发货 1-已发货 2-确认收货 3-评价完成 4-退款审核 5-已退款 6-退款拒绝 7-退货审核 8-已退货 9-退货拒绝

返回参数说明:

参数名 类型 说明
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
orderAmount string 订单金额,单位分
discountAmount string 优惠金额,单位分
amount string 实际支付金额,单位分
mchIncome string 商户入账金额,单位:分
userId string 用户ID
channelUserId string 支付渠道用户ID
status string 状态:生成(0),处理中(1),支付成功(2),失败(-1),部分退款(4),全额退款(5),押金未结算(6),押金退还(7)
payOrderId string 支付订单号
productId string 产品ID
productName string 产品名称
productType string 支付方式: 现金收款(1),会员账户(2),微信(3),支付宝(4),云闪付(5)
couponId string 优惠券核销码
storeNo string 门店编号
storeName string 门店名称
memberId string 会员ID
memberTel string 会员手机号
givePoints string 消费赠送积分
refundTotalAmount string 退款总金额
tradeSuccTime string 交易成功时间
industryType string 所属行业 1-餐饮 2-电商
postType string 1-堂食 2-外卖
storeAreaId string 餐桌号ID
areaName string 餐桌号
addressId string 收货地址ID
areaInfo string 省市县名称描述
address string 详细地址
receiveTel string 收货人手机号
receiveName string 收货人姓名
transportNo string 运单号
postStatus string 发货状态:0-待发货 1-已发货 2-确认收货 3-评价完成 4-退款审核 5-已退款 6-退款拒绝 7-退货审核 8-已退货 9-退货拒绝
evaluation string 订单评价
goodsDesc string 商品信息,见下表说明
postPrice string 运费
createTime string 创建时间
updateTime string 更新时间

商品信息说明:

参数名 类型 说明
goodsId string 商户ID
goodsName string 商户名称
cellingPrice string 商品单价, 单位分
goodsNum string 商品购买数量
frozenNum string 商品不可申请售后数量
imgPathMain string 商品主图
goodsPropsValue string 商品属性值

返回示例:

{
  "code": 0,
  "msg": "success",
  "data": [
    {
      "payOrderId": null,
      "ps": null,
      "subject": "消费|微信小程序支付",
      "postPrice": 0,
      "refundTotalAmount": 0,
      "tradeOrderId": "E01202008200541293380004",
      "discountAmount": 0,
      "body": "消费|微信小程序支付",
      "addressId": 1,
      "deleteFlag": 0,
      "evaluation": null,
      "receiveName": "wa",
      "areaName": null,
      "appId": "",
      "ruleId": null,
      "operatorId": null,
      "goodsDesc": "[{\"imgPathMain\":\"http://192.168.0.168:8204/imgs/goods/d48a07eb-dd08-488c-adbf-7c9168379da6.jpg\",\"goodsId\":3,\"cellingPrice\":2200,\"frozenNum\":0,\"goodsNum\":1,\"goodsName\":\"Skechers斯凯奇女鞋时尚闪钻装饰小白鞋复古厚底熊猫鞋66666252 白色/WHT 36\"}]",
      "memberId": 1,
      "depositAmount": null,
      "memberTel": "13266668888",
      "productId": null,
      "tradeSuccTime": "2020-08-20 17:41:33",
      "evaluationImage": null,
      "postId": null,
      "transportNo": null,
      "isvDeviceNo": null,
      "areaCode": 110101,
      "storeNo": null,
      "isvId": 40000008,
      "device": "",
      "status": 2,
      "receiveTel": "13273578260",
      "agentId": null,
      "cityCode": 1101,
      "goodsId": "",
      "settTaskStatus": 0,
      "mchCouponId": null,
      "postStatus": 0,
      "memberCouponNo": "",
      "remark": null,
      "operatorName": null,
      "returnDesc": null,
      "orderAmount": 2200,
      "appointmentTime": null,
      "industryType": 2,
      "channelUserId": null,
      "mchIncome": null,
      "returnReasonId": null,
      "storeName": null,
      "givePoints": 0,
      "goodsNum": 1,
      "productType": 2,
      "tradeType": 1,
      "amount": 2200,
      "depositMode": 0,
      "storeAreaId": null,
      "address": "11221",
      "mchId": 20000000,
      "imgPathMain": "http://192.168.0.168:8204/imgs/goods/d48a07eb-dd08-488c-adbf-7c9168379da6.jpg",
      "postType": 2,
      "provinceCode": 11,
      "updateTime": "2020-08-20 17:41:33",
      "storeId": null,
      "userId": "1",
      "areaInfo": "北京市北京市东城区",
      "createTime": "2020-08-20 17:41:29",
      "clientIp": "192.168.0.123"
    }
  ],
  "count": 1,
  "extData": null
}

备注:

-

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