有赞新零售社区

发帖
API使用问题»获取电子面单失败

[API调用-商品/交易] 获取电子面单失败

巨沃科技 11-06 337 浏览 2 评论 | 只看楼主 [打印]
2024-11-05 15:58:20.351 [DubboServerHandler-172.16.124.106:20326-thread-108] INFO  c.g.i.l.api.express.youzan.express.YouzanGetWayBill - 调用有赞获取快递请求参数:{"gateway":"https://open.youzanyun.com","headers":{},"version":"1.0.0","name":"youzan.logistics.waybill.apply","httpMethod":"POST","oauthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanLogisticsWaybillApplyParams","apiparams":{"brandCode":"","tradeOrderInfoList":[{"useParamRecipient":false,"deliverExtendInfo":null,"recipient":{"address":{"county":"平潭县","address":"$Vbth7jprIC+OngNGmidofg1zfdCz7Vkx1z50l3fCdsL6eD2XcmmRE/HxYPi/wFKTEOhxsmkjafk3M9HaL6ZvaQ==$1$","province":"福建省","city":"福州市"},"mobile":"$HcMj1gZhlveRCJwdBhaLWQ==$1$","name":"$4zDCDJr47AWXHGAEcv+UOg==$1$"},"tradeOrderList":null,"packageInfo":{"height":null,"volume":null,"weight":6,"length":null,"packagingDescription":null,"width":null,"items":[{"name":"250梦幻盖娟姗纯10入-2提","count":1}],"totalPackagesCount":null,"goodsDescription":null,"goodValue":null},"tid":"E20241101194132016200035","templateUrl":"https://cloudprint.cainiao.com/template/standard/301/235","orderKdtId":null,"applyId":"ON24110400000012_001","mergeRetrievalOrderNos":null,"yzOrder":null,"logisticsServices":null}],"productCode":"","callDoorPickUp":null,"doorPickUpEndTime":null,"expressId":3,"paymentType":1,"extraInfo":null,"sender":{"address":{"county":"江宁区","address":"江苏省南京市江宁区东山街道神舟路苏宁物流园6号库中通云仓","province":"江苏省","city":"南京市"},"name":"1","mobile":"1"},"doorPickUpTime":null}}
2024-11-05 15:58:20.694 [DubboServerHandler-172.16.124.106:20326-thread-108] INFO  c.g.i.l.api.express.youzan.express.YouzanGetWayBill - 调用有赞获取快递返回信息:{"code":200,"success":true,"message":"请求成功","data":[{"success":false,"code":120011009,"message":"发货地址不存在","applyId":"ON24110400000012_001","expressNo":null,"printData":null,"extraInfo":null,"parentExpressNo":null}],"traceId":"yz7-0ae85be6-1730793500579-422853"}

用手机打开
收藏 ··· 回复
    1.token是使用店铺id为18500665的店铺的
    你入参是express_id为3,payment_type为1,但是咱们店铺电子面单只开通中通统一结算,没有开通中通自结算,所以payment_type应该设置为0
    具体根据这个接口:https://doc.youzanyun.com/detail/API/0/4234 获取express_id和payment_type

    2.收货人手机号以及收货人地址不能用密文
    入参use_param_recipient为fasle,不使用入参的收货人信息,默认会获取有赞订单的收货人信息
    你入参的为true,需要入参收货人信息。true仅在商家在isv侧修改了收货人信息等特殊场景使用。默认false。

      尊敬的有赞用户 您好,我们已收到您的问题,并已安排相关技术支持正在处理中,请耐心等待。建议您留言邮箱地址,问题进度将通过邮件提醒方式触达,减少论坛等待时间。

        1跳至
        您需要登录后才可以回帖 登录 | 立即注册

        本版积分规则

        复制链接
        新浪微博
        QQ空间
        微信扫码
        • 回复

        • 评分

        客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

        复制成功