获取订单详情

最后更新:2023/05/16

企业可通过此接口获取本应用商城小程序的订单详情

请求方式: POST(HTTPS)

请求地址: https://open.wshoto.com/openapi/mall/order/detail?access_token=x

Query参数:

参数 类型 必填 说明
access_token str 调用接口凭证

Body参数:

{
  "order_sn": "1723051502104450002"
}
参数 类型 必填 说明
order_sn str 商城订单号

返回值:

{
  "code": 0,
  "msg": "请求成功",
  "data": {
    "order_sn": "1723051502104450002",
    "type": 0,
    "user_id": null,
    "customer_name": "ROSE",
    "customer_id": "ovXup5iunUO_QCjOa_sXbMquP0AY",
    "open_id": "oaNAw4wP5V-C51d8s3eES7YrdD3Q",
    "phone_num": "13472135933",
    "status": 5,
    "pay_status": 0,
    "total_price": 1999,
    "commission_price": 0,
    "coupon_price": 0,
    "change_price": 0,
    "integral": 0,
    "integralDeduct_price": 0,
    "freight_price": 0,
    "pay_price": 1999,
    "pay_num": null,
    "coupon_id": null,
    "detail_list": [
      {
        "order_detail_id": 1657810577105402177,
        "sku_id": "1657810571879257858",
        "spu_id": "1657810571833120513",
        "spec_desc": null,
        "spu_no": "1684087813209",
        "sku_no": "1684087813209",
        "goods_name": "商品1684087813209",
        "goods_num": 1,
        "thumbnail": "https://pubres.wshoto.com/base-material-server/wpDkH9EAAA_9HBsxyV4JU05EVU6PGf3g/1642781666420256514-1680504645340.png",
        "total_price": 1999,
        "commission_price": 0,
        "commission_rate": 0,
        "goods_price": 1999,
        "coupon_price": null,
        "integral": null,
        "integral_deduct_price": null,
        "pay_price": 1999
      }
    ],
    "express_type": 1,
    "express_no": null,
    "express_name": null,
    "create_time": 1684087816,
    "update_time": 1684087817,
    "remark": null,
    "finish_time": null,
    "pay_time": null,
    "send_time": null,
    "cancel_remark": null,
    "order_status_tag": 2,
    "close_time": null,
    "refund_status": null,
    "refund_failure_reasons": null,
    "seller_comments": null,
    "activity_id": null,
    "order_address_info": {
      "name": "ROSE",
      "mobile": "13812138000",
      "address": "东城街道",
      "area_code": "110101",
      "province": "北京市",
      "city": "北京市",
      "district": "东城区"
    },
    "order_check_info": null
  },
  "sub_code": "00000"
}

参数说明:

参数 类型 说明
code int 返回码
msg str 对返回码的文本描述内容
data object[] 返回数据
 order_sn str 订单号
 type int 订单类型:0:普通订单,1:团购订单,2:秒杀订单,3:购物车订单
 user_id str 订单归属员工的三方应用员工id
 customer_name str 客户昵称
 customer_id str 客户unionID(企业主体)
 open_id str 客户openid
 phone_num str 客户手机号
 status int 订单状态 0:待付款,1:待确认,包含待成团、待接单,2:待发货,3:待收货,4:已完成,5:已关闭
 pay_status int 支付状态 0:未支付,1:已支付
 total_price long 订单总金额
 commission_price int 订单中分销推广员的佣金总金额(在本应用PC后台开启分销管理后可设置分销佣金比例),单位为分
 coupon_price long 优惠金额
 change_price long 订单改价金额
 integral long 积分抵现中抵扣的客户积分总数
 integral_deduct_price long 积分抵现的实际抵扣总金额
 freight_price long 订单运费金额
 pay_price long 订单实付金额
 pay_num str 微信支付商户订单号
 coupon_id long 订单中已使用的优惠券的id
 detail_list OrderDetailInfo[] 订单商品明细
  order_detail_id long 订单商品明细id
  sku_id long skuid
  spu_id long spuid
  spec_desc str sku 规格描述
  spu_no str spu编码
  sku_no str 规格编码
  goods_name str 商品名称
  goods_num int 商品数量
  thumbnail str 商品缩略图
  total_price long 商品总价
  commission_price long 分销推广员的商品佣金金额(在本应用PC后台开启分销管理后可设置分销佣金比例),单位为分
  commission_rate int 分销推广员的商品佣金比例(在本应用PC后台开启分销管理后可设置分销佣金比例),该比例为百分比值,例如15表示15% ,商品佣金比例x商品实付金额=推广员推广商品后可获得的佣金金额
  goods_price long 商品单价
  coupon_price long 商品优惠金额
  integral int 积分抵现中抵扣的客户积分总数
  integral_deduct_price int 积分抵现的实际抵扣总金额
  pay_price long 商品实付金额
 express_type int 发货方式 0:无需发货,1:快递发货 2门店核销
 express_no str 快递编码
 express_name str 物流公司名称
 create_time long 订单创建时间
 update_time long 订单修改时间
 remark str 买家备注
 finish_time long 订单完成时间
 pay_time long 订单支付时间
 send_time long 订单发货时间
 cancel_remark str 取消订单原因
 order_status_tag int 订单状态转变因素 1:超时关闭,2:买家取消,3:退款完成关闭,4:交易完成, 5:成团待确认失效, 6:成团退款中, 7:成团退款失败,8:成团退款成功, 9:卖家取消关闭, 10:售后关闭
 close_time long 订单关闭时间
 refund_status int 售后状态 1:售后中 2:售后结束,若没有发生售后则返回为空
 refund_failure_reasons str 退款失败原因(微信支付返回)
 seller_comments str 卖家备注
 activity_id long 秒杀活动id,仅当此订单商品属于秒杀活动时会返回
 order_address_info OrderAddressInfo 快递发货订单-收货地址信息
  name str 收货人姓名
  mobile str 收货人手机
  address str 收货详细地址
  area_code str 地区编码
  province str 收货地址-省 名称
  city str 收货地址-市 名称
  district str 收货地址-区 名称
 order_check_info OrderCheckInfo 到店消费订单-核销信息
  mobile str 预留电话
  appoint_store_Name str 预约门店名称
  consume_store_name str 核销门店名称
  appoint_time_start long 预约开始时间
  appoint_time_end long 预约结束时间
  business_time long 门店的营业时间段,仅预约时间为空时有值
    start_time str 开始时间 mm:ss
    end_time str 结束时间 mm:ss
  checkTime long 核销时间
  checkStaffUserId str 核销人的三方应用员工ID

results matching ""

    No results matching ""