接口描述:

  • 订单详情

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 朱小 2020-03-23 2020-03-23

请求URL:

  • 商户接口URL:/api/tradeOrderDetail/get

请求方式:

  • GET
  • POST

请求参数:

参数名 是否必须 类型 说明
tradeOrderId string 交易单号

返回参数说明:

参数名 类型 说明
code int 0
msg string success
data json 查询成功返回list数据

返回数据说明:

参数名 类型 说明
orderId Long 订单详情ID
tradeOrderId String 交易单号
industryType int 所属行业 1-餐饮 2-电商
postType int 1-堂食 2-外卖
storeAreaId String 餐桌号
addressId Long 收货地址ID
transportNo String 运单号
addressInfo String 地址信息
receiveName String 收货人姓名
receiveTel String 收货人手机
postStatus int 发货状态
memberId Long 会员ID
goodsId Long 商品ID
goodsName String 商品名称
goodsDesc String 商品详情
totalPrice Long 订单总价,单位:分
cellingPrice Long 商品售价,单位:分
buyingPrice Long 商品进价,单位:分
memberPrice Long 商品会员价,单位:分
goodsNum int 商品数量
goodsProps String 商品属性ID
goodsPropsName String 商品属性名称
goodsPropsValue String 商品属性值
mchId Long 所属商户ID
isvId Long 服务商ID
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": 500,
    "refundTotalAmount": 0,
    "tradeOrderId": "E01202004071103549580002",
    "discountAmount": 0,
    "body": "消费|微信小程序支付",
    "addressId": 12,
    "evaluation": null,
    "receiveName": "马明啸",
    "areaName": null,
    "appId": "",
    "ruleId": null,
    "operatorId": null,
    "rrturnReasonId": 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": 1002,
    "depositAmount": null,
    "memberTel": "13325668888",
    "productId": null,
    "tradeSuccTime": "2020-04-07 23:04:01",
    "evaluationImage": null,
    "postId": null,
    "transportNo": null,
    "isvDeviceNo": null,
    "areaCode": 1,
    "storeNo": "20000002",
    "isvId": 40000000,
    "device": "",
    "status": 2,
    "receiveTel": "18630705315",
    "agentId": null,
    "cityCode": 1,
    "goodsId": "",
    "settTaskStatus": 0,
    "mchCouponId": null,
    "postStatus": 2,
    "memberCouponNo": null,
    "operatorName": null,
    "returnDesc": null,
    "orderAmount": 66100,
    "industryType": 1,
    "channelUserId": null,
    "mchIncome": null,
    "storeName": "百汇超市",
    "givePoints": 0,
    "productType": 2,
    "tradeType": 1,
    "amount": 66100,
    "depositMode": 0,
    "storeAreaId": null,
    "address": "运河区7号楼",
    "mchId": 20000000,
    "postType": 2,
    "provinceCode": 1,
    "updateTime": "2020-04-07 23:04:13",
    "storeId": 1004,
    "userId": "1002",
    "mchTradeDetail": [
      {
        "ps": null,
        "orderId": 11,
        "tradeOrderId": "E01202004071103549580002",
        "memberId": 1002,
        "goodsId": 100000,
        "goodsName": "锅包肉",
        "goodsDesc": "酸酸甜甜",
        "cellingPrice": 5800,
        "buyingPrice": 3800,
        "memberPrice": 5200,
        "goodsNum": 2,
        "goodsProps": "1038,1042",
        "goodsPropsName": "口味,甜味",
        "goodsPropsValue": "口味:无辣, 甜味:不甜",
        "mchId": 20000000,
        "isvId": 40000000,
        "createTime": "2020-04-07 23:03:54",
        "updateTime": "2020-04-07 23:03:54"
      },
      {
        "ps": null,
        "orderId": 12,
        "tradeOrderId": "E01202004071103549580002",
        "memberId": 1002,
        "goodsId": 100001,
        "goodsName": "火锅鸡",
        "goodsDesc": "",
        "cellingPrice": 10800,
        "buyingPrice": 5800,
        "memberPrice": 10000,
        "goodsNum": 5,
        "goodsProps": "1040,1042",
        "goodsPropsName": "口味,甜味",
        "goodsPropsValue": "口味:特辣, 甜味:不甜",
        "mchId": 20000000,
        "isvId": 40000000,
        "createTime": "2020-04-07 23:03:54",
        "updateTime": "2020-04-07 23:03:54"
      }
    ],
    "areaInfo": "河北省沧州市",
    "createTime": "2020-04-07 23:03:54",
    "clientIp": "127.0.0.1"
  }
}
文档更新时间: 2021-10-25 18:20   作者:刘正阳