taobao.retail.user.tag.mobile.add (根据手机号或者支付宝id进行用户打标)

根据手机号或者支付宝id进行用户打标-外部来源用户标记同步接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_code String 可选 ** 业务来源方
isv_user_id String 可选 *123**45* 识别外部用户唯一用户ID
open_id String 可选 *123**45* openid
alipay_user_id String 可选 *1234**5678* 支付宝ID
ext_param String 可选 {} 扩展信息

响应参数

名称 类型 示例值 描述
error_infos ErrorInfo [] {"outerErrorCode": "INVALID_PARAMETER", "errorMessage": "输入参数错误:aliPayUserId", "errorCode": "isv.invalid-parameter:", "subErrorCode": "", "class": "com.alibaba.arp.common.error.ErrorInfo"} 错误
  • └ outer_error_code
  • String
  • SERVICE_ERROR:NOT_FIND_TAOBAO_ACCOUNT:NOT_FIND_TAOBAO_ACCOUNT
  • 错误
  • └ error_message
  • String
  • 未查询到淘宝账号:_*****_*****
  • 错误
  • └ error_code
  • String
  • isp.system-service-error::NOT_FIND_TAOBAO_ACCOUNT:NOT_FIND_TAOBAO_ACCOUNT
  • 错误
  • └ sub_error_code
  • String
  • NOT_FIND_TAOBAO_ACCOUNT
  • 错误
module UserTagInfoResponseDTO 返回信息
  • └ tag_success
  • Boolean
  • true
  • 打标结果
  • └ social_nick
  • String
  • t*********3
  • 返回脱敏后昵称
  • └ use_type
  • String
  • tbId
  • 依据类型
result Boolean true 返回结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RetailUserTagMobileAddRequest req = new RetailUserTagMobileAddRequest();
req.setBizCode("**");
req.setIsvUserId("*123**45*");
req.setOpenId("*123**45*");
req.setAlipayUserId("*1234**5678*");
req.setExtParam("{}");
RetailUserTagMobileAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<retail_user_tag_mobile_add_response>
    <error_infos>
        <error_info>
            <outer_error_code>SERVICE_ERROR:NOT_FIND_TAOBAO_ACCOUNT:NOT_FIND_TAOBAO_ACCOUNT</outer_error_code>
            <error_message>未查询到淘宝账号:_*****_*****</error_message>
            <error_code>isp.system-service-error::NOT_FIND_TAOBAO_ACCOUNT:NOT_FIND_TAOBAO_ACCOUNT</error_code>
            <sub_error_code>NOT_FIND_TAOBAO_ACCOUNT</sub_error_code>
        </error_info>
    </error_infos>
    <module>
        <tag_success>true</tag_success>
        <social_nick>t*********3</social_nick>
        <use_type>tbId</use_type>
    </module>
    <result>true</result>
</retail_user_tag_mobile_add_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部