根据手机号或者支付宝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"} | 错误 | ||||
|
|||||||
module | UserTagInfoResponseDTO | 返回信息 | |||||
|
|||||||
result | Boolean | true | 返回结果 |
1 2 3 4 5 6 7 8 9 | 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()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < 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 > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|