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

alibaba.alihealth.drug.msc.billout.detailwithcodes (查询出库单据详情以及码)

根据单据号码查询出库单据详情和码信息。(只允许查询单据的总码量(包含所有子码)不超过一万的入库单据)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bill_code String 必须 132012180001 单据号码
ref_ent_id String 必须 320000000000127971 企业refEntId

响应参数

名称 类型 示例值 描述
result ResultModel 跟节点信息 监控宝推送网站监控信息,返回结果
  • model
  • BillInOutDetailDto
  • 对象模型信息
  • 对象模型信息
  • └ mod_date
  • String
  • 2018-06-02
  • 修改时间
  • └ process_date
  • String
  • 2018-06-02
  • 处理时间
  • └ bill_time
  • String
  • 2018-06-01
  • 单据日期
  • └ to_user_id
  • String
  • 1ee0bda9a22c4c688fe7a97dd15b9175
  • 收货企业id
  • └ to_ent_name
  • String
  • 收货企业名称
  • 收货企业名称
  • └ from_user_id
  • String
  • 1ee0bda9a22c4c688fe7a97dd15b9175
  • 发货企业id
  • └ from_ent_name
  • String
  • 发货企业名称
  • 发货企业名称
  • └ bill_type_name
  • String
  • PurchaseWareHouseIn
  • 单据类型名称
  • └ bill_type
  • String
  • 102
  • 单据类型
  • └ bill_code
  • String
  • 0114802018060114563600
  • 单据号码
  • bill_chk_in_out_detail_list_d_t_o_list
  • Billchkinoutdetaillistdtolist []
  • 单据详情
  • 单据详情
  • └ expired_date
  • String
  • 2018-10-06
  • 有效期至
  • └ produce_ent_name
  • String
  • 生产企业名称
  • 生产企业名称
  • └ prod_code
  • String
  • 9112031001
  • 子类编码
  • └ product_code
  • String
  • 9112031
  • 子类编码前7位
  • └ produce_date
  • String
  • 2018-10-06
  • 生产日期
  • └ product_batch_no
  • String
  • 201704023
  • 批次号
  • └ drug_ent_base_info_id
  • String
  • 2c9194c71db4db3f011db9360dfb0d32
  • 药品id
  • └ physic_name
  • String
  • 药品名称
  • 药品名称
  • └ preparations_unit
  • String
  • 制剂单位
  • └ temp_pkg_spec
  • String
  • 份/盒
  • 包装规格
  • └ min_preparations_count
  • String
  • 100
  • 最小制剂数量
  • └ min_pkg_count
  • String
  • 10
  • 最小包装数量
  • └ physic_type_name
  • String
  • 药品类型名称
  • 药品类型名称
  • └ physic_type
  • String
  • 1
  • 药品类型编码
  • code_and_parent_list
  • Codeandparentlist []
  • 码列表
  • 码列表
  • └ code
  • String
  • 810000000000
  • 追溯码
  • └ code_level
  • String
  • 1
  • 码级别
  • └ parent_code
  • String
  • 810000000000
  • 父码
  • └ approve_no
  • String
  • 国药准字
  • 国药准字
  • └ msg_code
  • String
  • 1000
  • 消息码
  • └ msg_info
  • String
  • 成功
  • 消息
  • └ response_success
  • Boolean
  • true
  • 成功失败

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_msc_billout_detailwithcodes_response>
    <result>
        <model>
            <mod_date>2018-06-02</mod_date>
            <process_date>2018-06-02</process_date>
            <bill_time>2018-06-01</bill_time>
            <to_user_id>1ee0bda9a22c4c688fe7a97dd15b9175</to_user_id>
            <to_ent_name>收货企业名称</to_ent_name>
            <from_user_id>1ee0bda9a22c4c688fe7a97dd15b9175</from_user_id>
            <from_ent_name>发货企业名称</from_ent_name>
            <bill_type_name>PurchaseWareHouseIn</bill_type_name>
            <bill_type>102</bill_type>
            <bill_code>0114802018060114563600</bill_code>
            <bill_chk_in_out_detail_list_d_t_o_list>
                <billchkinoutdetaillistdtolist>
                    <expired_date>2018-10-06</expired_date>
                    <produce_ent_name>生产企业名称</produce_ent_name>
                    <prod_code>9112031001</prod_code>
                    <product_code>9112031</product_code>
                    <produce_date>2018-10-06</produce_date>
                    <product_batch_no>201704023</product_batch_no>
                    <drug_ent_base_info_id>2c9194c71db4db3f011db9360dfb0d32</drug_ent_base_info_id>
                    <physic_name>药品名称</physic_name>
                    <preparations_unit>粒</preparations_unit>
                    <temp_pkg_spec>份/盒</temp_pkg_spec>
                    <min_preparations_count>100</min_preparations_count>
                    <min_pkg_count>10</min_pkg_count>
                    <physic_type_name>药品类型名称</physic_type_name>
                    <physic_type>1</physic_type>
                    <code_and_parent_list>
                        <codeandparentlist>
                            <code>810000000000</code>
                            <code_level>1</code_level>
                            <parent_code>810000000000</parent_code>
                        </codeandparentlist>
                    </code_and_parent_list>
                    <approve_no>国药准字</approve_no>
                </billchkinoutdetaillistdtolist>
            </bill_chk_in_out_detail_list_d_t_o_list>
        </model>
        <msg_code>1000</msg_code>
        <msg_info>成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_msc_billout_detailwithcodes_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

返回
顶部