文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.base.query.account.info.by.campus (ISV根据服务区查询服务商模式及简称)

ISV根据服务区查询服务商模式及简称

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_account_by_campus_request QueryAccountByCampusRequest 可选 请求
  • └ campus_area_code
  • String
  • 可选
  • 10760
  • 服务区编码
  • └ business_type
  • String
  • 可选
  • ELECT_BIKE
  • 业务类型

响应参数

名称 类型 示例值 描述
result Result 结果
  • └ code
  • String
  • 1
  • 代码
  • data
  • QueryAccountByCampusResponse
  • 数据
  • └ business_license
  • String
  • 1233
  • 资质
  • └ model
  • String
  • SELF
  • 模式
  • └ provider_show_name
  • String
  • 天猫校园
  • 简称
  • └ fail
  • String
  • false
  • 失败
  • └ msg
  • String
  • 123
  • 消息
  • └ page_num
  • String
  • 1
  • 页码
  • └ success
  • String
  • true
  • 成功
  • └ total_num
  • String
  • 10
  • 总数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareBaseQueryAccountInfoByCampusRequest req = new TmallXiaoyuanShareBaseQueryAccountInfoByCampusRequest();
TmallXiaoyuanShareBaseQueryAccountInfoByCampusRequest.QueryAccountByCampusRequest obj1 = new TmallXiaoyuanShareBaseQueryAccountInfoByCampusRequest.QueryAccountByCampusRequest();
obj1.setCampusAreaCode("10760");
obj1.setBusinessType("ELECT_BIKE");
req.setQueryAccountByCampusRequest(obj1);
TmallXiaoyuanShareBaseQueryAccountInfoByCampusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_xiaoyuan_share_base_query_account_info_by_campus_response>
    <result>
        <code>1</code>
        <data>
            <business_license>1233</business_license>
            <model>SELF</model>
            <provider_show_name>天猫校园</provider_show_name>
        </data>
        <fail>false</fail>
        <msg>123</msg>
        <page_num>1</page_num>
        <success>true</success>
        <total_num>10</total_num>
    </result>
</tmall_xiaoyuan_share_base_query_account_info_by_campus_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

返回
顶部