获取订单详情

接口调用请求说明

  1. http请求方式:POST
  2. https://api.weixin.qq.com/product/order/get?access_token=xxxxxxxxx

请求参数示例

  1. {
  2. "order_id":32423523451235145
  3. }

回包示例

  1. {
  2. "errcode": 0,
  3. "errmsg":"ok",
  4. "order":
  5. {
  6. "order_id": 12123121332
  7. "out_order_id": "faefawefweafawe",
  8. "status": 20,
  9. "craete_time": "2020-03-25 13:05:25",
  10. "update_time": "2020-03-25 14:05:25",
  11. "order_detail":
  12. {
  13. "product_infos":
  14. [
  15. {
  16. "product_id": 234245,
  17. "sku_id":23424,
  18. "sku_cnt": 10,
  19. "on_aftersale_sku_cnt": 10,
  20. "finish_aftersale_sku_cnt": 0,
  21. "title":"健身环",
  22. "thumb_img": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
  23. "sku_attrs":
  24. [
  25. {
  26. "attr_key": "选择颜色",
  27. "attr_value": "红蓝主机"
  28. }
  29. ],
  30. "slae_price": 2000
  31. },
  32. ...
  33. ]
  34. "pay_info":
  35. {
  36. "pay_method": "微信支付",
  37. "prepay_id": "42526234625",
  38. "transaction_id": "131456479687",
  39. "prepay_time": "2020-03-25 14:04:25",
  40. "pay_time": "2020-03-25 14:05:25"
  41. },
  42. "price_info":
  43. {
  44. "product_price": 20000,
  45. "order_price": 10500,
  46. "freight": 500,
  47. "discounted_price": 10000,
  48. "is_discounted": true
  49. }
  50. "delivery_info":
  51. {
  52. "delivery_method": "快递",
  53. "delivery_time": "2020-03-25 16:05:25",
  54. "delivery_product_info":
  55. {
  56. "waybill_id": "134654612313",
  57. "delivery_id": "STO"
  58. }
  59. "address_info":
  60. {
  61. "user_name":"陈先生",
  62. "postal_code": "2435245",
  63. "province_name": "广东",
  64. "city_name": "广州",
  65. "county_name": "海珠区",
  66. "detail_info": "大塘",
  67. "national_code": "234234",
  68. "tel_number": "24534252"
  69. }
  70. }
  71. },
  72. "after_sale_info":
  73. {
  74. "aftersale_order_list": [
  75. {
  76. "aftersale_order_id": 1234
  77. }
  78. ],
  79. "on_aftersale_order_cnt": 1
  80. },
  81. "openid": "xxxxx",
  82. "ext_info":
  83. {
  84. "customer_notes": "发顺丰",
  85. "merchant_notes": "库存不足,取消"
  86. }
  87. }
  88. }

请求参数说明

参数类型是否必填说明
order_idnumber订单ID,可从获取订单列表中获得

回包参数说明

参数类型说明
errcodenumber错误码
errmsgstring错误信息
order.order_idnumber订单ID
order.out_order_idstring外部订单id
order.statusnumber商品状态
order.create_timestring创建时间
order.update_timestring更新时间
order.order_detail.product_infos[].product_idnumber小商店内部商品ID
order.order_detail.product_infos[].sku_idnumber小商店内部skuID
order.order_detail.product_infos[].thumb_imgstringsku小图
order.order_detail.product_infos[].sku_cntnumbersku数量
order.order_detail.product_infos[].on_aftersale_sku_cntnumber正在售后/退款流程中的sku数量
order.order_detail.product_infos[].finish_aftersale_sku_cntnumber完成售后/退款的sku数量
order.order_detail.product_infos[].sale_pricenumber售卖价格(单位:分)
order.order_detail.product_infos[].sku_attrs[].attr_keystring属性键key(属性自定义用)
order.order_detail.product_infos[].sku_attrs[].attr_valuestring属性值(属性自定义用)
order.order_detail.pay_info.pay_methodstring支付方式(目前只有”微信支付”)
order.order_detail.pay_info.prepay_idstring预支付ID
order.order_detail.pay_info.transaction_idstring支付订单号
order.order_detail.pay_info.prepay_timestring预付款时间
order.order_detail.pay_info.pay_timestring付款时间
order.order_detail.price_info.product_pricenumber商品金额(单位:分)
order.order_detail.price_info.order_pricenumber订单金额(单位:分)
order.order_detail.price_info.freightnumber运费(单位:分)
order.order_detail.price_info.discounted_pricenumber优惠金额(单位:分)
order.order_detail.price_info.is_discountedbool是否有优惠(false:无优惠/true:有优惠)
order.order_detail.delivery_info.delivery_methodstring快递方式(目前只有”快递”)
order.order_detail.delivery_info.delivery_timestring发货时间
order.order_detail.delivery_info.delivery_product_info.waybill_idstring快递单号
order.order_detail.delivery_info.delivery_product_info.delivery_idstring快递公司编号
order.order_detail.delivery_info.address_info.usernamestring收货人姓名
order.order_detail.delivery_info.address_info.postal_codestring邮编
order.order_detail.delivery_info.address_info.province_namestring国标收货地址第一级地址
order.order_detail.delivery_info.address_info.city_namestring国标收货地址第二级地址
order.order_detail.delivery_info.address_info.county_namestring国标收货地址第三级地址
order.order_detail.delivery_info.address_info.detail_infostring详细收货地址信息
order.order_detail.delivery_info.address_info.national_codestring收货地址国家码
order.order_detail.delivery_info.address_info.tel_numberstring收货人手机号码
order.aftersale_detail.aftersale_order_list[].aftersale_order_idnumber售后单ID(售后接口开放后可用于查询)
order.aftersale_detail.on_aftersale_order_cntnumber正在售后流程的售后单数
order.openidstring用户的openid,用于物流助手接口
order.ext_info.customer_notesstring用户备注
order.ext_info.merchant_notesstring商家备注

枚举-status

枚举值描述
10待付款
20待发货
30待收货
100完成
200全部商品售后之后,订单取消
250用户主动取消或待付款超时取消

返回码

返回码错误类型
-1系统异常
-2token太长
9401020参数有误