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

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

alibaba.alihealth.drug.kyt.storebilldetail (零售端平台单据列表详情)

零售端平台单据列表详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 8b0d323bca554a8d88d903a8a71a2730 企业ID
bill_code String 可选 inout_1127_08 单据编码
bill_type String 必须 103 单据类型
process_flag String 必须 3 处理标示resultType
upload_file_name String 可选 DEF_RETAIL_OUT_20181127141128765848.xml 上传方件名称
bill_id String 必须 900032800194 订单ID

响应参数

名称 类型 示例值 描述
result ResultModel 0 监控宝推送网站监控信息,返回结果
  • model
  • StoreBillDto
  • 0
  • 返回结果
  • └ bill_id
  • Number
  • 1234576
  • 单据ID
  • └ bill_time
  • String
  • 2018-08-11
  • 单据日期
  • └ bill_type
  • Number
  • 202
  • 单据类型
  • └ from_user_name
  • String
  • 中信21世纪
  • 发货企业名称
  • └ to_user_name
  • String
  • 中信21世纪
  • 收货企业名称
  • └ from_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 发货企业ID
  • └ to_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 收货企业ID
  • └ process_flag
  • String
  • 3
  • 处理标记
  • └ remarks
  • String
  • 相关信息
  • 相关信息
  • └ customer_i_d_type
  • String
  • 领药出库
  • 证件类型,退货入库、零售出库、疫苗接种、领药出库
  • └ customer_i_d
  • String
  • 130701298837128812
  • 对应的证件号
  • └ is_personal
  • String
  • 0
  • 是否对个人入出库 0 否 1 是
  • store_spec_info
  • StoreSpecInfo
  • 特殊出库类型
  • 特殊出库类型
  • └ return_type
  • Number
  • 退货原因类型
  • 退货原因类型
  • └ return_reason
  • String
  • 退货原因
  • 退货原因
  • └ destroy_reason_code
  • Number
  • 销毁原因类型
  • 销毁原因类型
  • └ destroy_reason_des
  • String
  • 销毁原因
  • 销毁原因
  • └ destroy_actor
  • String
  • 出库执行人
  • 出库执行人
  • └ destroy_actor_cert
  • String
  • 出库执行人证件
  • 出库执行人证件
  • └ destroy_checker
  • String
  • 出库监督人
  • 出库监督人
  • └ destroy_checker_cert
  • String
  • 出库监督人证件
  • 出库监督人证件
  • store_physic_infos
  • StorePhysicInfo []
  • 药品明细
  • 药品明细
  • └ physic_name
  • String
  • 药品名称
  • 药品名称
  • └ prod_name
  • String
  • 商品名称
  • 商品名称
  • └ prepn_type
  • String
  • 剂型
  • 剂型
  • └ prepn_spec
  • String
  • 制剂规格
  • 制剂规格
  • └ pkg_spec
  • String
  • 包装规格
  • 包装规格
  • └ produce_ent_name
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 生产企业
  • └ product_batch_no
  • String
  • p121213
  • 批号
  • └ produce_date
  • String
  • 2018-01-02
  • 生产日期
  • └ valid_end_date
  • String
  • 2018-01-02
  • 有效期
  • └ least_pkg_amount
  • Number
  • 10
  • 最小包装数量
  • └ least_measure_amount
  • Number
  • 2
  • 最小制剂数量
  • └ approval_no
  • String
  • F8859-1
  • 国号准字
  • └ physic_type
  • Number
  • 3
  • 药品类型
  • └ drug_id
  • String
  • 111111111111
  • 药品ID
  • └ pkg_unit
  • String
  • 0
  • 包装单位
  • └ prepn_unit
  • String
  • 0
  • 制剂单位
  • store_code_info_list
  • StoreCodeInfo []
  • 0
  • 码信息
  • └ package_level
  • Number
  • 1
  • 包装级别
  • └ code
  • String
  • 12312321
  • └ code_is_matched
  • String
  • W
  • 是否配套
  • └ order_is_matched
  • String
  • W
  • 是否配套
  • └ bill_code
  • String
  • GBK8859-1
  • 单据编码
  • └ msg_code
  • String
  • SUCCESS
  • 执行标识
  • └ msg_info
  • String
  • 调用成功
  • 执行结果
  • └ response_success
  • Boolean
  • ture
  • 返回是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytStorebilldetailRequest req = new AlibabaAlihealthDrugKytStorebilldetailRequest();
req.setRefEntId("8b0d323bca554a8d88d903a8a71a2730");
req.setBillCode("inout_1127_08");
req.setBillType("103");
req.setProcessFlag("3");
req.setUploadFileName("DEF_RETAIL_OUT_20181127141128765848.xml");
req.setBillId("900032800194");
AlibabaAlihealthDrugKytStorebilldetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_kyt_storebilldetail_response>
    <result>
        <model>
            <bill_id>1234576</bill_id>
            <bill_time>2018-08-11</bill_time>
            <bill_type>202</bill_type>
            <from_user_name>中信21世纪</from_user_name>
            <to_user_name>中信21世纪</to_user_name>
            <from_user_id>8b0d323bca554a8d88d903a8a71a2730</from_user_id>
            <to_user_id>8b0d323bca554a8d88d903a8a71a2730</to_user_id>
            <process_flag>3</process_flag>
            <remarks>相关信息</remarks>
            <customer_i_d_type>领药出库</customer_i_d_type>
            <customer_i_d>130701298837128812</customer_i_d>
            <is_personal>0</is_personal>
            <store_spec_info>
                <return_type>退货原因类型</return_type>
                <return_reason>退货原因</return_reason>
                <destroy_reason_code>销毁原因类型</destroy_reason_code>
                <destroy_reason_des>销毁原因</destroy_reason_des>
                <destroy_actor>出库执行人</destroy_actor>
                <destroy_actor_cert>出库执行人证件</destroy_actor_cert>
                <destroy_checker>出库监督人</destroy_checker>
                <destroy_checker_cert>出库监督人证件</destroy_checker_cert>
            </store_spec_info>
            <store_physic_infos>
                <store_physic_info>
                    <physic_name>药品名称</physic_name>
                    <prod_name>商品名称</prod_name>
                    <prepn_type>剂型</prepn_type>
                    <prepn_spec>制剂规格</prepn_spec>
                    <pkg_spec>包装规格</pkg_spec>
                    <produce_ent_name>8b0d323bca554a8d88d903a8a71a2730</produce_ent_name>
                    <product_batch_no>p121213</product_batch_no>
                    <produce_date>2018-01-02</produce_date>
                    <valid_end_date>2018-01-02</valid_end_date>
                    <least_pkg_amount>10</least_pkg_amount>
                    <least_measure_amount>2</least_measure_amount>
                    <approval_no>F8859-1</approval_no>
                    <physic_type>3</physic_type>
                    <drug_id>111111111111</drug_id>
                    <pkg_unit>0</pkg_unit>
                    <prepn_unit>0</prepn_unit>
                    <store_code_info_list>
                        <store_code_info>
                            <package_level>1</package_level>
                            <code>12312321</code>
                            <code_is_matched>W</code_is_matched>
                        </store_code_info>
                    </store_code_info_list>
                </store_physic_info>
            </store_physic_infos>
            <order_is_matched>W</order_is_matched>
            <bill_code>GBK8859-1</bill_code>
        </model>
        <msg_code>SUCCESS</msg_code>
        <msg_info>调用成功</msg_info>
        <response_success>ture</response_success>
    </result>
</alibaba_alihealth_drug_kyt_storebilldetail_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

返回
顶部