alibaba.ucc.general.alieco.bind.sync (阿里巴巴经济体账户绑定关系同步)

同步不同业务账号之间的绑定关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bind_dto BindDto 必须 绑定关系对象
  • └ site
  • String
  • 必须
  • gaode
  • 当前业务账号站点,gaode、uc,youku
  • └ bind_timestamp
  • Number
  • 必须
  • 1535368793884
  • 绑定关系变更版本时间戳
  • └ bind_type
  • Number
  • 必须
  • 0
  • 0:绑定; 1:解绑;2:解换绑;
  • └ user_id
  • String
  • 必须
  • 123233
  • 请求方本地账号ID
  • └ bind_user_id
  • String
  • 必须
  • 321233
  • 被绑定账号ID
  • └ bind_user_type
  • Number
  • 必须
  • 0
  • 被绑定的账号ID类型 0: 账号ID; 1:账号openid; 2: 账号openid token
  • └ bind_site
  • String
  • 必须
  • taobao
  • 被绑定方的账号归属站点

响应参数

名称 类型 示例值 描述
result Result 迁移结果
  • └ message
  • String
  • SUCCESS
  • SUCCESS
  • └ code
  • Number
  • 1
  • code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaUccGeneralAliecoBindSyncRequest req = new AlibabaUccGeneralAliecoBindSyncRequest();
AlibabaUccGeneralAliecoBindSyncRequest.BindDto obj1 = new AlibabaUccGeneralAliecoBindSyncRequest.BindDto();
obj1.setSite("gaode");
obj1.setBindTimestamp(1535368793884L);
obj1.setBindType(0L);
obj1.setUserId("123233");
obj1.setBindUserId("321233");
obj1.setBindUserType(0L);
obj1.setBindSite("taobao");
req.setBindDto(obj1);
AlibabaUccGeneralAliecoBindSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ucc_general_alieco_bind_sync_response>
    <result>
        <message>SUCCESS</message>
        <code>1</code>
    </result>
</alibaba_ucc_general_alieco_bind_sync_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

返回
顶部