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

alibaba.alihealth.drug.kyt.query.specia.vaccin.billcode (根据单据编号查询单据明细)

根据单据编号查询单据明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bill_code String 必须 12345 单据号
ref_ent_id String 必须 234567 企业id

响应参数

名称 类型 示例值 描述
result ResultModel 最外层数据结构 监控宝推送网站监控信息,返回结果
  • model
  • BillInOutDetailDto
  • 数据模型
  • 模型
  • └ bill_code
  • String
  • 123
  • 单据号码
  • └ bill_type
  • String
  • 103
  • 单据类型
  • └ upload_file_name
  • String
  • aa.xml
  • 上传文件名称
  • └ bill_type_name
  • String
  • ReturnWareHouseIn
  • 单据类型名称
  • └ from_ent_name
  • String
  • 发货企业名称
  • 发货企业名称
  • └ from_user_id
  • String
  • 1234
  • 发货企业id
  • └ to_ent_name
  • String
  • 收货企业名称
  • 收货企业名称
  • └ to_user_id
  • String
  • 1234
  • 收货企业id
  • └ bill_time
  • String
  • 2019-02-12
  • 单据时间
  • └ process_date
  • String
  • 2019-02-12
  • 处理时间
  • └ mod_date
  • String
  • 2019-02-12
  • 修改时间
  • bill_chk_in_out_detail_list_d_t_o_list
  • Billchkinoutdetaillistdtolist []
  • 药品信息
  • 药品信息
  • └ min_preparations_count
  • String
  • 6000
  • 最小制剂数量
  • └ min_pkg_count
  • String
  • 20
  • 最小包装数量
  • └ expired_date
  • String
  • 2020-11-30
  • 有效期至
  • └ produce_date
  • String
  • 2020-11-30
  • 生产日期
  • └ product_batch_no
  • String
  • 8181201
  • 批次号
  • └ produce_ent_name
  • String
  • 生产企业名称
  • 生产企业名称
  • └ physic_type_name
  • String
  • 普通药品
  • 药品类型名称
  • └ physic_type
  • String
  • 1
  • 药品类型
  • └ physic_name
  • String
  • 药品名称
  • 药品名称
  • └ preparations_unit
  • String
  • 制剂单位
  • └ product_code
  • String
  • 1234567
  • 子类编码前7位
  • └ prod_code
  • String
  • 1234567890
  • 子类编码
  • └ drug_ent_base_info_id
  • String
  • 123456
  • 药品id
  • └ approve_no
  • String
  • 国药准字
  • 国药准字
  • └ msg_code
  • String
  • 200
  • 消息编码
  • └ msg_info
  • String
  • 成功
  • 消息内容
  • └ response_success
  • Boolean
  • true
  • 消息成功失败标记

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytQuerySpeciaVaccinBillcodeRequest req = new AlibabaAlihealthDrugKytQuerySpeciaVaccinBillcodeRequest();
req.setBillCode("12345");
req.setRefEntId("234567");
AlibabaAlihealthDrugKytQuerySpeciaVaccinBillcodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_kyt_query_specia_vaccin_billcode_response>
    <result>
        <model>
            <bill_code>123</bill_code>
            <bill_type>103</bill_type>
            <upload_file_name>aa.xml</upload_file_name>
            <bill_type_name>ReturnWareHouseIn</bill_type_name>
            <from_ent_name>发货企业名称</from_ent_name>
            <from_user_id>1234</from_user_id>
            <to_ent_name>收货企业名称</to_ent_name>
            <to_user_id>1234</to_user_id>
            <bill_time>2019-02-12</bill_time>
            <process_date>2019-02-12</process_date>
            <mod_date>2019-02-12</mod_date>
            <bill_chk_in_out_detail_list_d_t_o_list>
                <billchkinoutdetaillistdtolist>
                    <min_preparations_count>6000</min_preparations_count>
                    <min_pkg_count>20</min_pkg_count>
                    <expired_date>2020-11-30</expired_date>
                    <produce_date>2020-11-30</produce_date>
                    <product_batch_no>8181201</product_batch_no>
                    <produce_ent_name>生产企业名称</produce_ent_name>
                    <physic_type_name>普通药品</physic_type_name>
                    <physic_type>1</physic_type>
                    <physic_name>药品名称</physic_name>
                    <preparations_unit>粒</preparations_unit>
                    <product_code>1234567</product_code>
                    <prod_code>1234567890</prod_code>
                    <drug_ent_base_info_id>123456</drug_ent_base_info_id>
                    <approve_no>国药准字</approve_no>
                </billchkinoutdetaillistdtolist>
            </bill_chk_in_out_detail_list_d_t_o_list>
        </model>
        <msg_code>200</msg_code>
        <msg_info>成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_kyt_query_specia_vaccin_billcode_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

返回
顶部