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

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

alibaba.alihealth.drug.msc.getentinfo (【准备停止使用】该接口无法返回多条同名的企业信息,请对接同权限包下的“alibaba.alihealth.drug.msc.getentinfonew”接口。根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】)

根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】。 单个appkey每分钟调用300次; 单个appkey每天调用总量8w次。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 320000000000127971 调用者企业唯一标识
ent_name String 必须 测试企业 企业名称

响应参数

名称 类型 示例值 描述
result ResultModel 返回结果
  • └ response_success
  • Boolean
  • true
  • 是否响应成功
  • model
  • PUserEntInfoDTO
  • 返回对象
  • └ ref_ent_id
  • String
  • 320000000000127971
  • 企业唯一标识【ref_ent_id】(单据上传时的货主企业ref_user_id就是填这个字段)
  • └ ent_id
  • String
  • 320000000000127971
  • 企业ID【ent_id】(单据上传时的收发货企业id就是填这个字段)
  • └ network_type
  • String
  • 99
  • 入网标识【0非入网;1开头代表入网企业;200代表入驻码上放心的企业】
  • └ audit_status
  • String
  • 1
  • 1-审核通过,0-审核中,2-审核不通过
  • └ msg_info
  • String
  • SUCCESS
  • 返回信息
  • └ msg_code
  • String
  • 调用成功
  • 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugMscGetentinfoRequest req = new AlibabaAlihealthDrugMscGetentinfoRequest();
req.setRefEntId("320000000000127971");
req.setEntName("测试企业");
AlibabaAlihealthDrugMscGetentinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_msc_getentinfo_response>
    <result>
        <response_success>true</response_success>
        <model>
            <ref_ent_id>320000000000127971</ref_ent_id>
            <ent_id>320000000000127971</ent_id>
            <network_type>99</network_type>
            <audit_status>1</audit_status>
        </model>
        <msg_info>SUCCESS</msg_info>
        <msg_code>调用成功</msg_code>
    </result>
</alibaba_alihealth_drug_msc_getentinfo_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

返回
顶部