收藏
回答

微信物流生成运单接口,一直说收件人详细地址描述不详,到底如何才算详细?

https//api.weixin.qq.com/cgi-bin/express/business/order/add?access_token=ACCESS_TOKEN
请求参数:{"delivery_id":"YTO","order_id":"xt40654353317347078112","openid":"123","biz_id":"xxxxxx","tagid":1639,"sender":{"name":"九月","province":"广东省","city":"深圳市","area":"南山区","address":"粤海街道高新区社区粤兴三道9号华中科技大学深圳产学研基地大楼","mobile":"13413413412"},"receiver":{"name":"九月","province":"广东","city":"深圳市","area":"南山区","address":"高新区社区粤兴三道9号华中科技大学深圳产学研基地大楼","mobile":"13413413412"},"cargo":{"count":1,"weight":1,"space_x":12,"space_y":1,"space_z":1,"detail_list":[{"name":"张弛5天声音训练营","count":1}]},"service":{"service_type":0,"service_name":"普通快递"},"insured":{"use_insured":0},"shop":{"img_url":"https:\/\/ttmini.yizhiwechat.com\/book.png","goods_name":"张弛5天声音训练营","goods_count":1},"add_source":2,"wx_appid":"wxxxxxxx","custom_remark":"(1639)测试建材","expect_time":0}
响应结果:{
  "errcode": 9300501,
  "errmsg": "delivery logic fail rid: 6656fc67-14dfe65a-13a98053",
  "delivery_resultcode": -1,
  "delivery_resultmsg": "收件人详细地址address中含有的中文字符个数较少,地址表述不清楚,将无法派送,请纠正详细地址信息",
  "waybill_data": {}
}
请问怎样才算详细的地址,另外我这组参数在调试工具里跑响应的结果又是另一种情况
调试工具响应结果:{
errcode: 9300501,
errmsg: "delivery logic fail rid: 6656f92d-66829169-2fc4c9eb",
delivery_resultcode: 20007,
delivery_resultmsg: "Sorry, you don't have enough waybills. Please contact the related site as soon as possible:抱歉, 您没有足够的单号了,请尽快联系网点申购,面单类型:普通",
waybill_data: [],
}
这个什么情况
回答关注问题邀请回答
收藏

1 个回答

  • 视频号小店技术专员-hengrui
    视频号小店技术专员-hengrui
    05-29

    请求参数的,编码方式错了。应该是用utf-8编码格式,目前是unicode

    05-29
    有用
    回复 4
    • L.文.L🎆
      L.文.L🎆
      05-29
      快递侧逻辑错误,详细原因需要看 delivery_resultcode。请先确认一下编码方式,python建议 json.dumps(b, ensure_ascii=False),php建议 json_encode($arr, JSON_UNESCAPED_UNICODE),您好,请问是按照这一块来执行吗, 是对收件人参数进行编码 还是对整个请求的参数编码呢
      05-29
      回复
    • 视频号小店技术专员-hengrui
      视频号小店技术专员-hengrui
      05-30回复L.文.L🎆
      整个请求参数
      05-30
      回复
    • L.文.L🎆
      L.文.L🎆
      发表于移动端
      05-31回复视频号小店技术专员-hengrui
      懂了,感谢
      05-31
      回复
    • roud
      roud
      11-11
      {"errcode":10025005,"errmsg":"电子面单取号失败,请参考delivery_error_msg字段后重试 rid: 672b2375-787a0e9d-4c309ff6","delivery_error_msg":"ERROR:收件地址中包含脱敏字符****,请修正后重新下单,如有问题联系95269999"}你好,这个问题是什么意思?韵达快递的详细地址入参****会报错,顺丰和京东都没有问题,会自动脱敏
      11-11
      回复
登录 后发表内容