请求参数:
{"shopid":"test_shop_id","shop_order_id":"9894719-5-230109154405479779-11-","shop_no":"123","waybill_id":"9894719-5-230109154405479779-11-_waybillid","delivery_id":"TEST","cancel_reason_id":3,"cancel_reason":"订单信息有误,重新下单","delivery_sign":"e8057cb7089a988ef407a492690e7068ae1a9437"};res={"errcode":930563,"errmsg":"order not exists rid: 63bbc95a-2ea4d1f8-53511315"}
接口返回:
"{\"errcode\":930563,\"errmsg\":\"order not exists rid: 63bbc95a-2ea4d1f8-53511315\"}"
麻烦看看为什么返回找不到订单,该订单是有回调状态到服务器的,目前状态是102
确认一下订单号shop_order_id字段是否正确。我们这边确实没这个订单号的存储,日志里面看到了订单号:9894719-5-230109154405479779-11- 的记录哈,看是不是弄错了。
添加配送单接口文档:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/immediate-delivery/deliver-by-business/addLocalOrder.html
微信这边返回的信息为:{"resultcode":0,"resultmsg":"ok","fee":10,"waybill_id":"9894719-5-230109154405479779-11-_waybillid","order_status":101,"dispatch_duration":300}
拉取配送单信息接口文档:https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/immediate-delivery/deliver-by-business/getLocalOrder.html
请求api:https://api.weixin.qq.com/cgi-bin/express/local/business/order/get?access_token=64_B8b8DoDKBJY9BWdSQIq98iEKEJAnUrojcQ4Amr5_i1hlCGTXyhCkqcZWWuSIgNpSWbEIThJIDnHULvwOucABkRTiYGARsN1Lgr4dpaZ4xa42PbFQTdvSgyq0Egs1ML1eMQgfQUMJ0LNtg3NPURKeAJDGDW
请求参数:{"shopid":"test_shop_id","shop_order_id":"9894719-5-230109154405479779-11-","shop_no":"123","delivery_sign":"e8057cb7089a988ef407a492690e7068ae1a9437"}
微信返回参数:={"resultcode":0,"resultmsg":"ok","order_status":102,"agent_info":[],"waybill_id":"test_waybill_id","rider_name":"我是小哥","rider_phone":"13712345678","rider_lng":116.31674,"rider_lat":39.97699,"reach_time":600,"order_token":"b8yZ-9RsoHJA0iwCrKopgR3p56mM75x3Hy4owh4BB6lYmeVt72JrSHjSC4UB9RBqMtbNSZ1buEjg7wpi24u8PlWxMyoSx05MIzwyFjKH3Kk","delivery_id":"TEST","delivery_name":"=测试"}