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

alibaba.alihealth.drug.down.queryupoutbilllog (单据删除/修改记录/追溯码替换、注销、删除记录查询)

上游企业若发生追溯码替换、删除、注销等特殊场景,单据发生了删除、编辑等操作

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 320000000000084823 货主企业唯一标识(一般情况下填写自已企业)
bill_code String 可选 1000531405 单据号
bill_type String 可选 103 单据类型
from_ref_ent_id String 可选 320000000000084823 发货企业
begin_oper_date String 必须 2023-11-01 开始查询时间(日期格式)
end_oper_date String 必须 2023-11-10 截止查询时间(日期格式)
oper_type String 可选 del 操作类型(del:删除 mod:修改)
page_size Number 必须 20 页大小
page Number 必须 1 页码

响应参数

名称 类型 示例值 描述
result ResultModel 监控宝推送网站监控信息,返回结果
  • model
  • PageInfoDto
  • 返回对象
  • result_list
  • BillUpOutLogDTO []
  • 返回列表
  • └ ref_ent_id
  • String
  • 320000000000084823
  • 货主企业
  • └ bill_id
  • Number
  • 12121341
  • 单据ID
  • └ bill_type
  • String
  • 102
  • 单据类型
  • └ bill_type_desc
  • String
  • 采购入库
  • 单据类型描述
  • └ bill_code
  • String
  • 1000531405
  • 单据号
  • └ oper_date
  • String
  • 2023-11-05 10:04:23
  • 操作时间
  • └ oper_type
  • String
  • del
  • 操作类型枚举 mod:修改 del: 删除
  • └ from_ref_ent_id
  • String
  • 320000000000084823
  • 发货企业
  • └ to_ref_ent_id
  • String
  • 320000000000084823
  • 收货企业
  • └ total_num
  • Number
  • 12311l
  • 总数
  • └ 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);
AlibabaAlihealthDrugDownQueryupoutbilllogRequest req = new AlibabaAlihealthDrugDownQueryupoutbilllogRequest();
req.setRefEntId("320000000000084823");
req.setBillCode("1000531405");
req.setBillType("103");
req.setFromRefEntId("320000000000084823");
req.setBeginOperDate("2023-11-01");
req.setEndOperDate("2023-11-10");
req.setOperType("del");
req.setPageSize(20L);
req.setPage(1L);
AlibabaAlihealthDrugDownQueryupoutbilllogResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_down_queryupoutbilllog_response>
    <result>
        <model>
            <result_list>
                <bill_up_out_log_d_t_o>
                    <ref_ent_id>320000000000084823</ref_ent_id>
                    <bill_id>12121341</bill_id>
                    <bill_type>102</bill_type>
                    <bill_type_desc>采购入库</bill_type_desc>
                    <bill_code>1000531405</bill_code>
                    <oper_date>2023-11-05 10:04:23</oper_date>
                    <oper_type>del</oper_type>
                    <from_ref_ent_id>320000000000084823</from_ref_ent_id>
                    <to_ref_ent_id>320000000000084823</to_ref_ent_id>
                </bill_up_out_log_d_t_o>
            </result_list>
            <total_num>12311l</total_num>
        </model>
        <msg_code>SUCCESS</msg_code>
        <msg_info>调用成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_down_queryupoutbilllog_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

返回
顶部