有赞新零售社区

发帖
API使用问题»取号错误

[API调用-商品/交易] 取号错误

巨沃科技 11-06 353 浏览 3 评论 | 只看楼主 [打印]
2024-11-06 15:13:22.640 [DubboServerHandler-172.16.124.106:20326-thread-200] INFO  c.g.i.l.api.express.youzan.express.YouzanGetWayBill - 调用有赞获取快递请求参数:{"gateway":"https://open.youzanyun.com","headers":{},"version":"1.0.0","oauthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanLogisticsWaybillApplyParams","httpMethod":"POST","name":"youzan.logistics.waybill.apply","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/401/209","orderKdtId":null,"applyId":"ON24110400000012_001","mergeRetrievalOrderNos":null,"yzOrder":null,"logisticsServices":null}],"productCode":"","callDoorPickUp":null,"doorPickUpEndTime":null,"expressId":4,"paymentType":1,"extraInfo":null,"sender":{"address":{"county":"江宁区","address":"江苏省南京市江宁区东山街道神舟路苏宁物流园6号库中通云仓","province":"江苏省","city":"南京市"},"name":"1","mobile":"1"},"doorPickUpTime":null}}
2024-11-06 15:13:23.029 [DubboServerHandler-172.16.124.106:20326-thread-200] INFO  c.g.i.l.api.express.youzan.express.YouzanGetWayBill - 调用有赞获取快递返回信息:{"code":200,"success":true,"message":"请求成功","data":[{"success":true,"code":null,"message":null,"applyId":"ON24110400000012_001","expressNo":"78851543803406","printData":"{\"encryptedData\":\"AES:rU904rj6UH2oqfSUb43+Z199vDU2GZtH5/LVIEq0ppUJuwjq7qZ58JRvDHOQ/f2QhqdsWiYYFqp6z96+fPLupxENx4gZUSA/zYJbbdwevCwYxJZTv3qwrG9IuZ5yj7dlDwwymeDusCq4X5pMpCN+KYN8yUT2uLG2zOeNLzDDxguOfjBDrX8b8dA67g1FpPTjdBUraYawlsd7DScjYtZlNx5EmKdNDwNZMYGGdtE26BRyCiM9KHXcoQgQxuiYuH5ZUgKjbn7WgnnDp/zizEXpQiWKEnmovh/PQv9rOBRqwFFP64ukbeKla7qsTAuGKdCjvBQdjhuXFlVdSuRD91LwnPmrNomu0kRqSjvJ7s/rWmB3vqibwjXT7uiVy/svkefh+RVN9cvVN968dK6L+MGzNQBdxxQfuvINz8sBNpEhbY2t9Q+9o4FS8Nf23kGVTctXx1jZvQqb7WiEzSeUtZhHKEUCCJQF9DTdJW72FxVNqsSOzXIDKqXRxF4riv3Dj+d+fzz04V+XN/kpqgFVxPKeV0rAMEDBYhVFMFE13Op/mszKnaq3+PZBGQ23S58En47wXbWOLUX3SpS5zbJXQDiBf4doYX55urggYThqQMJt4+XF8j21vztHF+S7zAeNUxVwYRDMkgJuwhyeiHJYfwNOnWBIz2mn8G7eVnDb3FZdMj8bcQBBXwFrMOtKrmz+XrvE7ZH4h6yUGdKtZ5I8yhjZ2C9YwkRRMRX9z/eutunQ5KL8YnVRRG7uxqlm8wG3iXj4QW0MKkkDGLWYve8bu/h3+ZJaCjEjPUOMG2KFbgFgHJsnrhEiCcQ8r9PMWbfd/NVU4uBU52yUI7u9z7pfYC0DzZh7GxTGUaS4xhiNuo0izPvM4LcV+vh6mmqJHt8rSCBoV30Vdb969/wgBZAJN+t9hodLt+MzdWrS9mZ3sVWWaukZqxIc5QoF4+XvqORXz8OEHV9ed3KlukLRzxi/Vte6A6zB5FzvIMlglbGSRW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7UIJ7kdGs3tQh8QgklV65tcC+ho6EUtgPlisjJ4+cdHzPP3QABFlTL8GHHd/jPJLK7YlaF6e1hPpmuqBMdNXhUHRep5oI/6DdBC+QLYqpHhEt8dA3zEXZImSw4MXaHF9Hzy2Z8TmyCRiAalvOV0Ubu75qMc+vDgSh6Ru6dOGg3TqvYydk2QKe2WhheDBCHhaPNC3YgD8=\",\"signature\":\"MD:BdFhxN4HRxQiBcn1ilkeVA==\",\"templateURL\":\"http://cloudprint.cainiao.com/template/standard/301\",\"ver\":\"waybill_print_secret_version_1\"}","extraInfo":null,"parentExpressNo":null}],"traceId":"yz7-0ae85be5-1730877202863-899871"}

传的韵达ID ,为什么获取的是中通的快递单号

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

    apply_id是幂等的作用,您在2024-11-06 11:01:50.031 调用取号接口入参apply_id为ON24110400000012_001(express_id":3,"payment_type":0)并取号成功

    那么2024-11-06 15:13:23.010 调用取号接口入参apply_id为ON24110400000012_001(express_id":4,"payment_type":1),那么结果会返回第一次调用该接口成功的数据,所以需要改变幂等值然后调用

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

      本版积分规则

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

      • 评分

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

      复制成功