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

alibaba.alihealth.drug.code.kyt.yy.applycode (医院药品子码申请接口)

根据父码及所属企业ID生成子码信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 5e036a9ee4b0976f60c7c123 企业ID(ref_ent_id)
code String 必须 89597060000000049772 父码
amount Number 必须 10 申请数量

响应参数

名称 类型 示例值 描述
result Result 接口返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • model
  • Model
  • 父子码关系对象
  • └ children_code_list
  • String []
  • 89829001000000156110
  • 子码
  • └ parent_code
  • String
  • 89597060000000049772
  • 父码
  • └ msg_info
  • String
  • 调用成功
  • 消息提示内容
  • └ msg_code
  • String
  • SUCCESS
  • 消息码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugCodeKytYyApplycodeRequest req = new AlibabaAlihealthDrugCodeKytYyApplycodeRequest();
req.setRefEntId("5e036a9ee4b0976f60c7c123");
req.setCode("89597060000000049772");
req.setAmount(10L);
AlibabaAlihealthDrugCodeKytYyApplycodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_code_kyt_yy_applycode_response>
    <result>
        <success>true</success>
        <model>
            <children_code_list>
                <string>89829001000000156110</string>
            </children_code_list>
            <parent_code>89597060000000049772</parent_code>
        </model>
        <msg_info>调用成功</msg_info>
        <msg_code>SUCCESS</msg_code>
    </result>
</alibaba_alihealth_drug_code_kyt_yy_applycode_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

返回
顶部