收藏
回答

【微信物流服务】达达配送商下单成功之后,寄出地址并不是用sender参数?而是用达达后台门店地址?

预下单接口文档

https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/immediate-delivery/deliver-by-business/preAddOrder.html

预下单调用参数如下:

请求链接httpUrl=https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add?access_token=65_zCtzRdFfyMD1mxbnrytzpchHVilRvPEXNkYWrqA9-8ws1G41NU7LdDwsYiLjLyG36NynoP35rrhTco7fISKu8c3BnBgz_3bUJ5pyAzpHPgfca8h8EzIQbEi03PueEbjU4G5HjwG3QtVA0A1xYLBiALDQDT;

参数postData=

{"shopid":"dada4d4dcf85f6db450","shop_order_id":"9877828-5-230130103026149456-331-","delivery_id":"DADA","openid":"oywPK5A-j_QkaXVY0T9NvBvU_wv4","sender":{"name":"tycho","city":"广州市","address":"天河区","address_detail":"天河区理想蓝堡国际花园(东方三路西)","phone":"12312312312","lng":113.357813111,"lat":23.127364407},"receiver":{"name":"katejc","city":"广东省广州市","address":"海珠区","address_detail":"坭水一巷26号海珠区凤凰创意园(南田路南)","phone":"18816794958","lng":113.256744,"lat":23.094082},"cargo":{"goods_value":1.0,"goods_height":0.0,"goods_length":0.0,"goods_width":0.0,"goods_weight":2.0,"cargo_first_class":"美食夜宵","cargo_second_class":"香锅/烤鱼","goods_detail":{"goods":[{"good_count":1,"good_name":"房子","good_price":0.0}]}},"order_info":{"tips":0,"declared_value":0.0},"shop":{"wxa_path":"pages/order/orderDetail","img_url":"https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png","goods_name":"房子","goods_count":1},"delivery_sign":"f7f8bc734ae1befd7f0a4f337b57ba008daeaad5"}

预下单返回结果:

{"resultcode":0,"resultmsg":"","fee":6.7,"deliverfee":6.7,"tips":0,"insurancefee":0,"distance":967,"delivery_token":"Dada0f270b967a724472a7f10a247ef180ad","dispatch_duration":120}

---------------------------------------------------————————————

正式下单接口文档

https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/immediate-delivery/deliver-by-business/addLocalOrder.html

正式调用参数如下

请求链接httpUrl=https://api.weixin.qq.com/cgi-bin/express/local/business/order/add?access_token=65_zCtzRdFfyMD1mxbnrytzpchHVilRvPEXNkYWrqA9-8ws1G41NU7LdDwsYiLjLyG36NynoP35rrhTco7fISKu8c3BnBgz_3bUJ5pyAzpHPgfca8h8EzIQbEi03PueEbjU4G5HjwG3QtVA0A1xYLBiALDQDT;

参数postData=

{"shopid":"dada4d4dcf85f6db450","shop_order_id":"9877828-5-230130103026149456-331-","delivery_id":"DADA","openid":"oywPK5A-j_QkaXVY0T9NvBvU_wv4","sender":{"name":"tycho","city":"广州市","address":"天河区","address_detail":"天河区理想蓝堡国际花园(东方三路西)","phone":"12312312312","lng":113.357813111,"lat":23.127364407,"coordinate_type":0},"receiver":{"name":"katejc","city":"广东省广州市","address":"海珠区","address_detail":"坭水一巷26号海珠区凤凰创意园(南田路南)","phone":"18816794958","lng":113.256744,"lat":23.094082,"coordinate_type":0},"cargo":{"goods_value":1.0,"goods_height":0.0,"goods_length":0.0,"goods_width":0.0,"goods_weight":2.0,"cargo_first_class":"美食夜宵","cargo_second_class":"香锅/烤鱼","goods_pickup_info":"","goods_delivery_info":"","goods_detail":{"goods":[{"good_count":1,"good_name":"房子","good_price":0.0,"good_unit":""}]}},"order_info":{"delivery_service_code":"","order_type":0,"expected_delivery_time":0,"expected_finish_time":0,"expected_pick_time":0,"poi_seq":"","note":"","tips":0,"is_direct_delivery":0,"is_insured":0,"declared_value":0.0,"rider_pick_method":0,"is_finish_code_needed":0,"is_pickup_code_needed":0},"shop":{"wxa_path":"pages/order/orderDetail","img_url":"https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png","goods_name":"房子","goods_count":1},"delivery_sign":"f7f8bc734ae1befd7f0a4f337b57ba008daeaad5"};

正式下单发回结果:

{"resultcode":0,"resultmsg":"","fee":6.7,"deliverfee":6.7,"couponfee":0,"tips":0,"distance":967,"waybill_id":"","order_status":101,"finish_code":0,"pickup_code":0,"dispatch_duration":120,"sender_lng":113.252372,"sender_lat":23.101689}


下单成功之后,前往达达后台查看订单信息; 发现 订单寄出地址,与参数 sender的地址不一样;发现地址是使用了达达后台门店的地址


根据 微信接口文档说明,以及之前 类似相关问题的回复,我们下单传参数,没有 传shop_no参数,但是 好像sender参数 并没有什么作用;

下单成功之后,寄出地址,并不是 sender参数的地址;

并且,其他参数相同的情况,sender地址 不一样, 运费却都一样,所以,我们怀疑,sender参数 是个摆设;


请求微信技术小哥帮忙排查一下!!!!


之前提过类似相关的问题,链接如下:

https://developers.weixin.qq.com/community/develop/doc/0002aab1d08f30502d2fa3a2151000?jumpto=reply&parent_commentid=00084019348328d8562f06e5d5b8&commentid=000c4625fbc660d9532f51e715b8

回答关注问题邀请回答
收藏

1 个回答

  • Constlu
    Constlu
    2023-02-01

    shop_no的地址和sender字段的地址,微信侧都会传给运力公司。但是,具体是用sender字段的地址还是门店的地址取决于运力,可能不同的运力对于2个字段的逻辑不一样。

    就你的问题而言,达达确实是用的门店地址,但是其他运力和达达的逻辑可能会不同的。所以,我们的建议是shop_no的地址和sender字段的地址两者保持一致。

    2023-02-01
    有用
    回复 2
    • 🍦
      🍦
      2023-02-01
      微信的接口文档的描述,也真是误导
      2023-02-01
      回复
    • Constlu
      Constlu
      2023-02-01回复🍦
      我们这边完善一下文档。
      2023-02-01
      回复
登录 后发表内容