文档中心 > API类目 > 本地生活API

alibaba.alsc.sales.adaptor.auth.bind (饿了么开店授权绑定接口)

饿了么开店授权绑定接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_top_auth_bind_request TopAuthBindRequest 可选 系统自动生成
  • └ isv_shop_id
  • String
  • 必须
  • 20000001
  • isv门店id
  • └ mobile
  • String
  • 必须
  • 13211019909
  • 手机号

响应参数

名称 类型 示例值 描述
result SingleQueryResult 返回结果
  • └ error_code
  • String
  • 10001
  • 错误码
  • └ error_msg
  • String
  • 该手机号已开过店
  • 错误描述
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ value
  • String
  • 23312345
  • 饿了么keeper账号id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscSalesAdaptorAuthBindRequest req = new AlibabaAlscSalesAdaptorAuthBindRequest();
AlibabaAlscSalesAdaptorAuthBindRequest.TopAuthBindRequest obj1 = new AlibabaAlscSalesAdaptorAuthBindRequest.TopAuthBindRequest();
obj1.setIsvShopId("20000001");
obj1.setMobile("13211019909");
req.setParamTopAuthBindRequest(obj1);
AlibabaAlscSalesAdaptorAuthBindResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_sales_adaptor_auth_bind_response>
    <result>
        <error_code>10001</error_code>
        <error_msg>该手机号已开过店</error_msg>
        <success>true</success>
        <value>23312345</value>
    </result>
</alibaba_alsc_sales_adaptor_auth_bind_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

返回
顶部