有赞新零售社区

发帖
API使用问题»查询券详情接口与会员查询接口的yzOpenId不一致

[API调用-会员/营销] 查询券详情接口与会员查询接口的yzOpenId不一致

4a94c6a73f1a 10-11 440 浏览 6 评论 | 只看楼主 [打印]
接口地址: https://doc.youzanyun.com/detail/API/0/3334API名称:获取买家优惠券详情
请求:{"aPIParams":{"coupon_id":18789010589,"coupon_type":0},"gateway":"https://open.youzanyun.com","headers":{"X-Cat-Trace":"{\"_catRootMessageId\":\"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e\",\"_catParentMessageId\":\"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e\"}"},"httpMethod":"POST","name":"youzan.ump.voucher.query.detail","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanUmpVoucherQueryDetailParams","version":"1.0.0"}
返回:{"code":200,"data":{"activity_id":30665711,"denomination":10000,"is_sync_card":0,"kdt_id":105481348,"preferential_mode":1,"send_at":1726320592000,"send_source":"scrm_level","status":3,"user_identity":{"has_bound_mobile":false,"mobile":"17685112945","yz_open_id":19539895146},"valid_end_time":1728835199000,"valid_start_time":1726243200000,"voucher_identity":{"coupon_id":18789010589,"coupon_type":0}},"message":"successful","success":true,"trace_id":"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e"}


此时查询出来的"yz_open_id":19539895146,就很诡异,跟平常长得不太一样。于是我用"mobile":"17685112945" 这个手机号去查询用户信息,
接口地址:https://doc.youzanyun.com/detail/API/0/2193
API名称:用户查询接口
sendUsersInfoQuery通过手机号查询该用户;请求:{"aPIParams":{"mobile":"17685112945"},"gateway":"https://open.youzanyun.com","headers":{"X-Cat-Trace":"{\"_catRootMessageId\":\"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab\",\"_catParentMessageId\":\"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab\"}"},"httpMethod":"POST","name":"youzan.users.info.query","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_1.model.YouzanUsersInfoQueryParams","version":"1.0.1"}


sendUsersInfoQuery通过手机号查询该用户;返回:{"code":200,"data":{"latest_info":{"avatar":"http://wx.qlogo.cn/mmhead/vPjficwtgTJBvNqsQtoN2FnjnvaGsvT344TibdrSic7aiagCzIcKj8dx4xmQ0ibyKtvg7IwGppfZrwYc/0","nick_name":"$sch48Lxc1+A3n+AjU7w+kg==$1$"},"user_list":[{"mobile_info":{"countryCode":"+86","mobile":"$ABuSRWEb+45j1kzGcROBSw==$1$"},"primitive_info":{"avatar":"http://wx.qlogo.cn/mmhead/vPjficwtgTJBvNqsQtoN2FnjnvaGsvT344TibdrSic7aiagCzIcKj8dx4xmQ0ibyKtvg7IwGppfZrwYc/0","city":"","country":"","created_time":1720918803000,"gender":0,"nick_name":"$sch48Lxc1+A3n+AjU7w+kg==$1$","platform_type":0,"province":"","updated_time":1720918803000,"yz_open_id":"83183trM1261970458589278208"}}]},"message":"successful","success":true,"trace_id":"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab"}
而此时他的yzopenid = 83183trM1261970458589278208 ,所以你们给个解释吧
用手机打开
收藏 ··· 回复
    尊敬的有赞用户 您好,我们已收到您的问题,并已安排相关技术支持正在处理中,请耐心等待。您可以关注之前预留的邮箱yjt@in注意问题解决进度提醒邮件。

      核实中,有结果论坛回复

        目前进度:接口会增加一个版本,yz_open_id出参字段将返正确的值
        预计后天前增加新版本接口

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

        本版积分规则

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

        • 评分

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

        复制成功