注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康API

alibaba.alihealth.tracecodeseller.ent.search (查询商家信息)

查询商家信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
skey_code String 必须 skeyCode appkey
name String 必须 商家名称 商家名称
tb_user_id String 必须 淘宝名称 淘宝名

响应参数

名称 类型 示例值 描述
result TopResultModel result
  • └ models
  • String []
  • {entInfoId:"",province:"黑龙江",city:"哈尔滨",area:"南岗区"}
  • 返回json字符串,包含商家的省、市、县、和id
  • └ msg_code
  • String
  • 1000
  • 成功、失败编码
  • └ msg_info
  • String
  • 操作成功
  • 成功失败信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthTracecodesellerEntSearchRequest req = new AlibabaAlihealthTracecodesellerEntSearchRequest();
req.setSkeyCode("skeyCode");
req.setName("商家名称");
req.setTbUserId("淘宝名称");
AlibabaAlihealthTracecodesellerEntSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_tracecodeseller_ent_search_response>
    <result>
        <models>
            <string>{entInfoId:&quot;&quot;</string>
            <string>province:&quot;黑龙江&quot;</string>
            <string>city:&quot;哈尔滨&quot;</string>
            <string>area:&quot;南岗区&quot;}</string>
        </models>
        <msg_code>1000</msg_code>
        <msg_info>操作成功</msg_info>
    </result>
</alibaba_alihealth_tracecodeseller_ent_search_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

返回
顶部