有赞新零售社区

发帖
API使用问题»trade_TradeBuyerPay(买家付款(即商家待发货)) 推送 解密

[API调用-其它] trade_TradeBuyerPay(买家付款(即商家待发货)) 推送 解密

ae1ff0b153f5 11-06 385 浏览 4 评论 | 只看楼主 [打印]
接收到的参数
{'msg': '%7B%22delivery_order%22%3A%5B%5D%2C%22order_promotion%22%3A%7B%22item%22%3A%5B%5D%2C%22adjust_fee%22%3A%220.00%22%2C%22order%22%3A%5B%5D%7D%2C%22refund_order%22%3A%5B%5D%2C%22full_order_info%22%3A%7B%22address_info%22%3A%7B%22self_fetch_info%22%3A%22%22%2C%22delivery_address%22%3A%22%24GZrx8Q6FyYtOp7da8XRBp7hNiigc%2BZo3JCDxX%2BNlszP4YmQdYDrRhig6ZBa7YcrpsOiPEY6wFIfU3oZ9nwbvrYqIKouwmfQH6C1EP%2FHjLKU%3D%241%24%22%2C%22delivery_postal_code%22%3A%22537600%22%2C%22receiver_name%22%3A%22%24sj6dFyOfEbowllcNKL1dXg%3D%3D%241%24%22%2C%22delivery_province%22%3A%22%E5%B9%BF%E8%A5%BF%E5%A3%AE%E6%97%8F%E8%87%AA%E6%B2%BB%E5%8C%BA%22%2C%22delivery_city%22%3A%22%E7%8E%89%E6%9E%97%E5%B8%82%22%2C%22address_extra%22%3A%22%7B%5C%22areaCode%5C%22%3A%5C%22450923%5C%22%2C%5C%22lon%5C%22%3A110.00068808269374%2C%5C%22lat%5C%22%3A22.26401872587451%7D%22%2C%22delivery_district%22%3A%22%E5%8D%9A%E7%99%BD%E5%8E%BF%22%2C%22receiver_tel%22%3A%22%24J5Jvcy3y%2BCLGxjJ1Qk%2FeNQ%3D%3D%241%24%22%7D%2C%22remark_info%22%3A%7B%22buyer_message%22%3A%22%22%7D%2C%22pay_info%22%3A%7B%22outer_transactions%22%3A%5B%224200002427202411052806038888%22%5D%2C%22post_fee%22%3A%220.00%22%2C%22total_fee%22%3A%2299.00%22%2C%22payment%22%3A%2299.00%22%2C%22transaction%22%3A%5B%222411051756502635790812%22%5D%7D%2C%22buyer_info%22%3A%7B%22outer_user_id%22%3A%22o8b6G69qlLDnj6DVdxHytkdvUoHk%22%2C%22buyer_phone%22%3A%22%24J5Jvcy3y%2BCLGxjJ1Qk%2FeNQ%3D%3D%241%24%22%2C%22yz_open_id%22%3A%22GV5Je4Ms682760492657152000%22%2C%22fans_type%22%3A556742%2C%22buyer_id%22%3A9696753013%2C%22fans_nickname%22%3A%22%24%2BE2c76qGXBu1%2Bv0rVFB2KuwZbeJvjRWKiIqrO1t7cjg%3D%241%24%22%2C%22fans_id%22%3A21285512368%7D%2C%22orders%22%3A%5B%7B%22is_cross_border%22%3A%22%22%2C%22outer_item_id%22%3A%22P241019887141450%22%2C%22discount_price%22%3A%2299.00%22%2C%22item_type%22%3A0%2C%22num%22%3A1%2C%22oid%22%3A%223040915875309289513%22%2C%22goods_snapshot%22%3A%22https%3A%2F%2Fh5.youzan.com%2Fwscgoods%2Fdetail-snapshot%3Falias%3D2xnb550b2wto2wr%26pageType%3Dwsc-goods-snapshot%26kdtId%3D172292034%26orderNo%3DE20241105175648037300001%26goodsId%3D3460939069%26snapKey%3D71377bb3c5d28e2b79c00dbae1553378%2C645a5ffd02df61025e3016c8facf26a3%26itemId%3D3040915875309289513%22%2C%22title%22%3A%22%E6%80%A5%E6%95%91%E7%AE%B1%22%2C%22fenxiao_payment%22%3A%220.00%22%2C%22item_message%22%3A%22%22%2C%22item_no%22%3A%22BM241019056226056%22%2C%22buyer_messages%22%3A%22%22%2C%22cross_border_trade_mode%22%3A%22%22%2C%22is_present%22%3Afalse%2C%22sub_order_no%22%3A%22%22%2C%22price%22%3A%2299.00%22%2C%22fenxiao_price%22%3A%220.00%22%2C%22total_fee%22%3A%2299.00%22%2C%22alias%22%3A%222xnb550b2wto2wr%22%2C%22payment%22%3A%2299.00%22%2C%22item_barcode%22%3A%22P241019887141450%22%2C%22outer_sku_id%22%3A%22P241019887141450%22%2C%22goods_url%22%3A%22https%3A%2F%2Fh5.youzan.com%2Fv2%2Fshowcase%2Fgoods%3Falias%3D2xnb550b2wto2wr%22%2C%22customs_code%22%3A%22%22%2C%22item_id%22%3A3460939069%2C%22sku_properties_name%22%3A%22%5B%5D%22%2C%22sku_id%22%3A0%2C%22pic_path%22%3A%22https%3A%2F%2Fimg01.yzcdn.cn%2Fupload_files%2F2024%2F10%2F19%2FFmaHncnL4DUxLy9SLywXTtqk2pXq.png%22%2C%22sku_no%22%3A%22%22%2C%22points_price%22%3A%220%22%2C%22sku_barcode%22%3A%22P241019887141450%22%7D%5D%2C%22source_info%22%3A%7B%22is_offline_order%22%3Afalse%2C%22book_key%22%3A%22d358653e-1b71-4b9e-a679-0c901a23edd9%22%2C%22source%22%3A%7B%22platform%22%3A%22other%22%2C%22wx_entrance%22%3A%22merchant_xcx%22%7D%7D%2C%22order_info%22%3A%7B%22consign_time%22%3A%22%22%2C%22order_extra%22%3A%7B%22is_from_cart%22%3A%22false%22%2C%22is_points_order%22%3A%220%22%7D%2C%22created%22%3A%222024-11-05+17%3A56%3A48%22%2C%22status_str%22%3A%22%E5%BE%85%E5%8F%91%E8%B4%A7%22%2C%22expired_time%22%3A%222024-11-05+18%3A56%3A48%22%2C%22success_time%22%3A%22%22%2C%22type%22%3A0%2C%22confirm_time%22%3A%22%22%2C%22tid%22%3A%22E20241105175648037300001%22%2C%22pay_time%22%3A%222024-11-05+17%3A56%3A56%22%2C%22update_time%22%3A%222024-11-05+17%3A56%3A57%22%2C%22is_retail_order%22%3Atrue%2C%22team_type%22%3A7%2C%22pay_type%22%3A10%2C%22refund_state%22%3A0%2C%22close_type%22%3A0%2C%22order_tags%22%3A%7B%22is_member%22%3Atrue%2C%22is_secured_transactions%22%3Atrue%2C%22is_payed%22%3Atrue%7D%2C%22express_type%22%3A0%2C%22status%22%3A%22WAIT_SELLER_SEND_GOODS%22%7D%7D%7D', 'kdt_name': '天天快药', 'test': False, 'sign': 'cdbfdc25cfd9f7cf59871c4e4375ef87', 'type': 'trade_TradeBuyerPay', 'sendCount': 1, 'version': 1730800618, 'client_id': '3f3d221bc14c02bd2d', 'mode': 1, 'kdt_id': 172292034, 'id': 'E20241105175648037300001', 'msg_id': 'f4fee506-bf69-4022-9230-9ca36f75f72e', 'root_kdt_id': 146418575, 'status': 'WAIT_SELLER_SEND_GOODS'}  



调用解密接口 youzan.cloud.secret.decrypt.batch/1.0.0 请求
对接解密参数
delivery_address   #详细地址  '$GZrx8Q6FyYtOp7da8XRBp7hNiigc+Zo3JCDxX+NlszP4YmQdYDrRhig6ZBa7YcrpsOiPEY6wFIfU3oZ9nwbvrYqIKouwmfQH6C1EP/HjLKU=$1$',
receiver_name    #收货人姓名  '$sj6dFyOfEbowllcNKL1dXg==$1$',
receiver_tel     #收货人手机号  '$J5Jvcy3y+CLGxjJ1Qk/eNQ==$1$',
buyer_phone     # 买家手机号    '$J5Jvcy3y+CLGxjJ1Qk/eNQ==$1$'


解密接口返回 :
{'trace_id': 'yz7-0a350a40-1730855117855-551509', 'code': 10500, 'success': False, 'message': 'system error'}
请问这个是为啥
用手机打开
收藏 ··· 回复
    尊敬的有赞用户 您好,我们已收到您的问题,并已安排相关技术支持正在处理中,请耐心等待。建议您留言邮箱地址,问题进度将通过邮件提醒方式触达,减少论坛等待时间。

      code返回10500可能原因是
      1. 检查sources中是否包含空字符
      2. 检查解密和拉数据时使用的 token,对应的 client_id(应用)、kdt_id(店铺) 是否一致

      查看日志调用解密的token应该用分店的,不要用总部,因为这个消息推送是分店触发的

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

      本版积分规则

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

      • 评分

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

      复制成功