alibaba.ucc.starbucks.bind.sync (星巴克和非淘宝账号绑定关系同步)

星巴克app建立账户绑定或者解绑之后同步给集团

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bind_dto BindDto 可选 请求入参
  • └ site
  • String
  • 必须
  • starbucks
  • 当前站点
  • └ operate_time_stamp
  • Number
  • 必须
  • 13278383838
  • 关系变更时间戳
  • └ bind_type
  • Number
  • 可选
  • 0
  • 0 绑定1 解绑 2换绑
  • └ user_id
  • String
  • 必须
  • 12372772
  • 星巴克id
  • └ bind_user_id
  • String
  • 必须
  • sdfwesfradfsdfsdfasdfsd
  • 绑定或者解绑的支付宝账号openid
  • └ bind_user_type
  • Number
  • 可选
  • 0
  • 0: 账号ID; 1:账号openid ; 2: 账号bind user token
  • └ bind_site
  • String
  • 必须
  • alipay
  • 绑定站点
ext String 可选 ffff 预留扩展字段

响应参数

名称 类型 示例值 描述
result Result result
  • └ message
  • String
  • message
  • └ code
  • Number
  • code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaUccStarbucksBindSyncRequest req = new AlibabaUccStarbucksBindSyncRequest();
AlibabaUccStarbucksBindSyncRequest.BindDto obj1 = new AlibabaUccStarbucksBindSyncRequest.BindDto();
obj1.setSite("starbucks");
obj1.setOperateTimeStamp(13278383838L);
obj1.setBindType(0L);
obj1.setUserId("12372772");
obj1.setBindUserId("sdfwesfradfsdfsdfasdfsd");
obj1.setBindUserType(0L);
obj1.setBindSite("alipay");
req.setBindDto(obj1);
req.setExt("ffff");
AlibabaUccStarbucksBindSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ucc_starbucks_bind_sync_response>
    <result>
        <message></message>
        <code></code>
    </result>
</alibaba_ucc_starbucks_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

返回
顶部