文档中心 > API类目 > 直通车API

taobao.universalbp.account.is.universal.user (判断用户是否迁移新bp)

获取客户是否应使用新接口。对于迁移了新bp的客户,使用新接口,没有迁移的,使用老bp接口。不可错乱使用。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_service_context TopServiceContext 必须 topServiceContext
  • └ biz_code
  • String
  • 必须
  • xxxxx
  • api业务线编码

响应参数

名称 类型 示例值 描述
result TopResult 结果体
  • info
  • TopInfo
  • 请求系统信息
  • └ ok
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • 参数错误
  • 错误信息
  • └ error_code
  • String
  • xxxxx
  • 错误编码
  • top_account_status_v_o
  • TopAccountStatusVo
  • 结果集
  • └ is_universal_bp_user
  • Boolean
  • true, false
  • 是否是新bp用户

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpAccountIsUniversalUserRequest req = new UniversalbpAccountIsUniversalUserRequest();
UniversalbpAccountIsUniversalUserRequest.TopServiceContext obj1 = new UniversalbpAccountIsUniversalUserRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
req.setTopServiceContext(obj1);
UniversalbpAccountIsUniversalUserResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<universalbp_account_is_universal_user_response>
    <result>
        <info>
            <ok>true</ok>
            <message>参数错误</message>
            <error_code>xxxxx</error_code>
        </info>
        <top_account_status_v_o>
            <is_universal_bp_user>true, false</is_universal_bp_user>
        </top_account_status_v_o>
    </result>
</universalbp_account_is_universal_user_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

返回
顶部