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

alibaba.alihealth.drug.code.advance.bill.flow.direction (单据流向查询)

单据流向查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
code String 必须 87005160000000000881 追溯码

响应参数

名称 类型 示例值 描述
result TopResultModel 和三方交互最外层model对象 和三方交互最外层model对象
  • model
  • AdvanceCodeSearchDto
  • 顶层结构
  • 顶层结构
  • piats_code_flow_response_d_t_o
  • PiatsCodeFlowResponseDto
  • 顶层结构
  • 顶层结构
  • header
  • Header
  • 头部结构
  • 头部结构
  • └ err_msg
  • String
  • 成功
  • 消息
  • └ success_flag
  • String
  • true
  • 标记
  • └ err_code
  • String
  • 1000
  • 错误编码
  • response_body
  • ResponseBody
  • 内容体
  • 内容体
  • flow_list
  • FlowEntity []
  • 流向对象
  • 流向对象
  • └ from_ent_name
  • String
  • 中信21世纪北京
  • 发货企业名称
  • └ ent_prov_name
  • String
  • 北京
  • 企业所属省
  • └ out_bill_code
  • String
  • SYS_IN_99999999991000200192
  • 出库单单据号
  • └ in_bill_code
  • String
  • 日常测试001
  • 入库单单据号
  • └ out_type
  • String
  • 调拨出库
  • 出库单类型
  • └ in_type
  • String
  • 生产入库
  • 入库单类型
  • └ out_bill_id
  • String
  • 900032700232
  • 出库单id
  • └ in_bill_id
  • String
  • 900032700232
  • 入库单id
  • └ out_date
  • String
  • 018-12-01T12:00:00+08:00
  • 出库时间
  • └ in_date
  • String
  • 2018-12-01T00:00:00+08:00
  • 入库时间
  • └ in_type_code
  • Number
  • 101
  • 入库单类型编码
  • └ out_type_code
  • String
  • 203
  • 出库单类型编码
  • └ to_ent_id
  • String
  • cb14553ed7654ff586b87b637ba23e2c
  • 收货企业id
  • └ to_ent_name
  • String
  • 中信21世纪制药厂北京分公司
  • 收货企业名称
  • └ ent_type
  • Number
  • 1
  • 企业类型
  • └ ent_id
  • String
  • c30746d5198c4b58810a14733adb0726
  • 企业id
  • └ ent_name
  • String
  • 香港测试104new3
  • 企业名称
  • └ from_ent_id
  • String
  • c30746d5198c4b58810a14733adb0726
  • 发货企业id
  • product_info_list
  • ProductInfoList
  • 商品信息、生产信息
  • 商品信息、生产信息
  • └ physic_detail_type
  • Number
  • 10
  • 药品详细类型
  • └ ean
  • String
  • 691212121212111
  • 69码
  • └ authorized_no
  • String
  • 国药准字Z20055312
  • 国药准字
  • └ ent_id
  • String
  • 00000000000020671796
  • 企业id
  • └ physic_type
  • String
  • 普通药品
  • 药品类型
  • └ pkg_num
  • Number
  • 10
  • 包装数量
  • └ prepn_unit
  • String
  • 制剂单位
  • └ product_code
  • String
  • 1005047006
  • 商品码
  • └ physic_code
  • String
  • 1005047
  • 药品编号
  • └ exprie_date
  • String
  • 20190605
  • 有效期至
  • └ product_date
  • String
  • 2018-12-01T00:00:00+08:00
  • 生产日期
  • └ product_batch_no
  • String
  • 日常测试_001
  • 批次号
  • └ drug_num
  • Number
  • 1
  • 药品数量
  • └ ent_name
  • String
  • 香港测试104
  • 企业名称
  • └ pkg_spec_unit
  • String
  • 包装规格单位
  • └ pkg_spec
  • String
  • 瓶10丸
  • 包装规格
  • └ prepn_spec
  • String
  • 0.25g(25万单位)
  • 制剂规格
  • └ prepn_type
  • String
  • 片剂
  • 制剂类型
  • └ product_name
  • String
  • 阿奇霉素分散片
  • 药品名称
  • └ drug_physic_name
  • String
  • 阿奇霉素分散片
  • 药品通用名
  • └ produce_info_id
  • String
  • ff808081676480b60167677a01100001
  • 生产信息id
  • └ drug_id
  • String
  • 85981ca4a760431b8da789cf8c7f75a1
  • 药品id
  • └ first_query_time
  • String
  • 2018-11-11
  • 首次查询时间
  • └ last_biz_date
  • String
  • 2018-12-01T12:00:00+08:00
  • 最后操作时间
  • └ status
  • String
  • C
  • 药品状态
  • └ query_count
  • String
  • 1
  • 查询次数
  • └ msg_code
  • String
  • 1000
  • 操作码
  • └ msg_info
  • String
  • demo
  • 操作说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionRequest req = new AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionRequest();
req.setCode("87005160000000000881");
AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_code_advance_bill_flow_direction_response>
    <result>
        <model>
            <piats_code_flow_response_d_t_o>
                <header>
                    <err_msg>成功</err_msg>
                    <success_flag>true</success_flag>
                    <err_code>1000</err_code>
                </header>
                <response_body>
                    <flow_list>
                        <flow_entity>
                            <from_ent_name>中信21世纪北京</from_ent_name>
                            <ent_prov_name>北京</ent_prov_name>
                            <out_bill_code>SYS_IN_99999999991000200192</out_bill_code>
                            <in_bill_code>日常测试001</in_bill_code>
                            <out_type>调拨出库</out_type>
                            <in_type>生产入库</in_type>
                            <out_bill_id>900032700232</out_bill_id>
                            <in_bill_id>900032700232</in_bill_id>
                            <out_date>018-12-01T12:00:00+08:00</out_date>
                            <in_date>2018-12-01T00:00:00+08:00</in_date>
                            <in_type_code>101</in_type_code>
                            <out_type_code>203</out_type_code>
                            <to_ent_id>cb14553ed7654ff586b87b637ba23e2c</to_ent_id>
                            <to_ent_name>中信21世纪制药厂北京分公司</to_ent_name>
                            <ent_type>1</ent_type>
                            <ent_id>c30746d5198c4b58810a14733adb0726</ent_id>
                            <ent_name>香港测试104new3</ent_name>
                            <from_ent_id>c30746d5198c4b58810a14733adb0726</from_ent_id>
                        </flow_entity>
                    </flow_list>
                    <product_info_list>
                        <physic_detail_type>10</physic_detail_type>
                        <ean>691212121212111</ean>
                        <authorized_no>国药准字Z20055312</authorized_no>
                        <ent_id>00000000000020671796</ent_id>
                        <physic_type>普通药品</physic_type>
                        <pkg_num>10</pkg_num>
                        <prepn_unit>丸</prepn_unit>
                        <product_code>1005047006</product_code>
                        <physic_code>1005047</physic_code>
                        <exprie_date>20190605</exprie_date>
                        <product_date>2018-12-01T00:00:00+08:00</product_date>
                        <product_batch_no>日常测试_001</product_batch_no>
                        <drug_num>1</drug_num>
                        <ent_name>香港测试104</ent_name>
                        <pkg_spec_unit>瓶</pkg_spec_unit>
                        <pkg_spec>瓶10丸</pkg_spec>
                        <prepn_spec>0.25g(25万单位)</prepn_spec>
                        <prepn_type>片剂</prepn_type>
                        <product_name>阿奇霉素分散片</product_name>
                        <drug_physic_name>阿奇霉素分散片</drug_physic_name>
                        <produce_info_id>ff808081676480b60167677a01100001</produce_info_id>
                        <drug_id>85981ca4a760431b8da789cf8c7f75a1</drug_id>
                    </product_info_list>
                    <first_query_time>2018-11-11</first_query_time>
                    <last_biz_date>2018-12-01T12:00:00+08:00</last_biz_date>
                    <status>C</status>
                    <query_count>1</query_count>
                </response_body>
            </piats_code_flow_response_d_t_o>
        </model>
        <msg_code>1000</msg_code>
        <msg_info>demo</msg_info>
    </result>
</alibaba_alihealth_drug_code_advance_bill_flow_direction_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

返回
顶部