收藏
回答

【即时配送】即时配送下单,调用接口报错,错误码 "errcode":40001,麻烦看下怎么回事?

调用接口:https://api.weixin.qq.com/cgi-bin/express/local/business/order/add?access_token=

入参:access_token=50_UVoeStkh-OzF_pl5vdQGqT1Sw76Dxw0EUH0XVz2giKuAGRA4DGOnVMO8Ix8f2CpEswvdnb1csKr8Inv82cqVtxPXkPq3A6yluzuITIL9vAK1FyDG_9bld5vD4U3HqvuF3RzLrRcOHcHZwml7OQFfAAAIKZ,params:{"sender":{"phone":"","coordinate_type":1,"address":"湖南省XXXXX","name”:”XXXXXX店","lng":114.370089,"lat":30.528616,"city":"武汉市","address_detail”:”(XXXXXX店)"},"delivery_id":"DADA","shop_no":"8003","shop":{"img_url":"http://img.wscstrace.com/images/goods/21843/middle/O1CN01Fr1YfE2BQ6ibVKGNR_!!2680068332.jpg","wxa_path":"/pages/order/detail/detail?orderId=100700000018878&orderStoreId=10071000001894967","goods_name”:”XXXXXX/盒”,”goods_count":1.0},"shopid":"dada56e934cXXXXXX72","receiver":{"phone":"153XXXX3871","coordinate_type":1,"address”:”XXXXXX店","name":"刘","lng":114.37006993485731,"lat":30.527991091823857,"city":"武汉市","address_detail":"武商超市"},"order_info":{"expected_finish_time":1634213395,"order_time":1634210995,"rider_pick_method":1,"delivery_service_code":"","order_type":0},"openid":"owLFX48vzpQ-5A7Eq5ae1IlOe4h4","cargo":{"cargo_first_class":"日用百货","goods_value":22.8,"cargo_second_class":"超市","goods_weight":0.52},"shop_order_id":"10070XXXX18878","access_token":"50_UVoeStkh-OzF_pl5vdQGqT1Sw76Dxw0EUH0XVz2giKuAGRA4DGOnVMO8Ix8f2CpEswvdnb1csKr8Inv82cqVtxPXkPq3A6yluzuITIL9vAK1FyDG_9bld5vD4U3HqvuF3RzLrRcOHcHZwml7OQFfAAAIKZ","delivery_sign":"10e123126962b0bdc4042a6ee7930e85966c0286"}

出参:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 616814eb-03fb8d80-4be56f3b"}


签名和accessToken都仔细检查了,找不到什么原因?

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

1 个回答

  • 在线客服
    在线客服
    2021-10-15

    找到原因了。谢谢。服务器没有开通外网访问权限

    2021-10-15
    有用
    回复
登录 后发表内容