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

alibaba.alihealth.drug.kyt.storebilllist (零售端平台单据查询)

零售端平台单据查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 可选 8b0d323bca554a8d88d903a8a71a2730 企业ID
start_date String 可选 2012-05-02 开始日期
end_date String 可选 2018-12-12 结束日期
bill_status String 可选 3 单据状态(A全部 1上传成功 3处理成功 4处理失败 )
page Number 可选 1 页码
page_size Number 可选 20 页数

响应参数

名称 类型 示例值 描述
result ResultModel 返回结果 监控宝推送网站监控信息,返回结果
  • model
  • PageInfoDto
  • 返回结果
  • 返回结果
  • result_list
  • StoreTerraceBillDto []
  • 返回结果
  • 返回结果
  • └ bill_id
  • String
  • 70035400276
  • 单据ID
  • └ bill_code
  • String
  • 111-222-33
  • 单据编码
  • └ ent_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 企业ID
  • └ crt_date
  • String
  • 2018-12-12
  • 创建时间
  • └ upload_flag
  • String
  • 3
  • 上传标识
  • └ upload_file_name
  • String
  • DEF_RETAIL_OUT_20181127141128765848.xml
  • 文件名称
  • └ process_flag
  • String
  • 5
  • 处理标识
  • └ process_date
  • String
  • 2018-12-12
  • 处理日期
  • └ data_type
  • String
  • 202
  • 单据类型
  • └ drug_type
  • String
  • 3
  • 药品类型
  • └ note_info
  • String
  • 1111
  • 详情信息
  • └ corp_id
  • String
  • 110
  • 操作人编码
  • └ corp_name
  • String
  • 张三
  • 操作人姓名
  • └ store_in_out_date
  • String
  • 2018-12-12
  • 单据日期
  • └ upload_file_path
  • String
  • TESTA/810000/818100/818181/818181/20181130
  • 上传文件路径
  • └ from_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 发货单位
  • └ from_ref_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 发货单位
  • └ to_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 收货单位
  • └ to_ref_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 收货单位
  • └ order_ismatched
  • String
  • W
  • 是否匹配
  • └ ref_user_id
  • String
  • 8b0d323bca554a8d88d903a8a71a2730
  • 企业ID
  • └ result_type
  • String
  • 3
  • 处理状态
  • └ total_num
  • Number
  • 11
  • 总条数
  • └ page_size
  • Number
  • 20
  • 页数
  • └ page
  • Number
  • 1
  • 页码
  • └ msg_code
  • String
  • SUCCESS
  • 返回码
  • └ msg_info
  • String
  • 调用成功
  • 返回信息
  • └ response_success
  • Boolean
  • true
  • 返回是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytStorebilllistRequest req = new AlibabaAlihealthDrugKytStorebilllistRequest();
req.setRefEntId("8b0d323bca554a8d88d903a8a71a2730");
req.setStartDate("2012-05-02");
req.setEndDate("2018-12-12");
req.setBillStatus("3");
req.setPage(1L);
req.setPageSize(20L);
AlibabaAlihealthDrugKytStorebilllistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_kyt_storebilllist_response>
    <result>
        <model>
            <result_list>
                <store_terrace_bill_dto>
                    <bill_id>70035400276</bill_id>
                    <bill_code>111-222-33</bill_code>
                    <ent_id>8b0d323bca554a8d88d903a8a71a2730</ent_id>
                    <crt_date>2018-12-12</crt_date>
                    <upload_flag>3</upload_flag>
                    <upload_file_name>DEF_RETAIL_OUT_20181127141128765848.xml</upload_file_name>
                    <process_flag>5</process_flag>
                    <process_date>2018-12-12</process_date>
                    <data_type>202</data_type>
                    <drug_type>3</drug_type>
                    <note_info>1111</note_info>
                    <corp_id>110</corp_id>
                    <corp_name>张三</corp_name>
                    <store_in_out_date>2018-12-12</store_in_out_date>
                    <upload_file_path>TESTA/810000/818100/818181/818181/20181130</upload_file_path>
                    <from_user_id>8b0d323bca554a8d88d903a8a71a2730</from_user_id>
                    <from_ref_user_id>8b0d323bca554a8d88d903a8a71a2730</from_ref_user_id>
                    <to_user_id>8b0d323bca554a8d88d903a8a71a2730</to_user_id>
                    <to_ref_user_id>8b0d323bca554a8d88d903a8a71a2730</to_ref_user_id>
                    <order_ismatched>W</order_ismatched>
                    <ref_user_id>8b0d323bca554a8d88d903a8a71a2730</ref_user_id>
                    <result_type>3</result_type>
                </store_terrace_bill_dto>
            </result_list>
            <total_num>11</total_num>
            <page_size>20</page_size>
            <page>1</page>
        </model>
        <msg_code>SUCCESS</msg_code>
        <msg_info>调用成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_kyt_storebilllist_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

返回
顶部