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

alibaba.alihealth.drug.scc.bill.search.up (上游单据查询)

上游单据查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 123 refEntId
begin_date String 必须 2025-01-01 开始时间
end_date String 必须 2025-05-01 结束时间

响应参数

名称 类型 示例值 描述
result ResultModel 返回
  • └ response_success
  • Boolean
  • true
  • 返回成功失败
  • model
  • PageInfoDto
  • 返回对象
  • result_list
  • SccBillUploadResponseDTO []
  • list列表
  • └ bill_code
  • String
  • 单据号
  • 单据号
  • └ bill_type
  • Number
  • 101
  • 单据类型
  • └ bill_time
  • Date
  • 2025-01-01
  • 单据时间
  • └ material_count
  • Number
  • 1
  • 资料总数
  • └ material_send_count
  • Number
  • 1
  • 已发送资料数量
  • └ material_sign_count
  • Number
  • 1
  • 已签收资料数量
  • └ material_reject_count
  • Number
  • 1
  • 拒收资料数量
  • └ from_ref_ent_id
  • String
  • 123
  • 发货企业fromRefEntId
  • └ to_ref_ent_id
  • String
  • 123
  • 收货企业toRefEntId
  • └ from_assed_ref_ent_id
  • String
  • 123
  • 受发货方委托的物流企业的ref_ent_id
  • └ to_assed_ref_ent_id
  • String
  • 123
  • 受收货方委托的物流企业的ref_ent_id
  • └ total_num
  • Number
  • 100
  • 总数
  • └ msg_info
  • String
  • 处理成功
  • 返回成功失败
  • └ msg_code
  • String
  • SUCCESS
  • 返回成功失败
  • └ sub_msg_code
  • String
  • SUCCESS
  • 返回子码
  • └ operation
  • String
  • 无后续操作
  • 后续操作描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugSccBillSearchUpRequest req = new AlibabaAlihealthDrugSccBillSearchUpRequest();
req.setRefEntId("123");
req.setBeginDate("2025-01-01");
req.setEndDate("2025-05-01");
AlibabaAlihealthDrugSccBillSearchUpResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scc_bill_search_up_response>
    <result>
        <response_success>true</response_success>
        <model>
            <result_list>
                <scc_bill_upload_response_d_t_o>
                    <bill_code>单据号</bill_code>
                    <bill_type>101</bill_type>
                    <bill_time>2025-01-01</bill_time>
                    <material_count>1</material_count>
                    <material_send_count>1</material_send_count>
                    <material_sign_count>1</material_sign_count>
                    <material_reject_count>1</material_reject_count>
                    <from_ref_ent_id>123</from_ref_ent_id>
                    <to_ref_ent_id>123</to_ref_ent_id>
                    <from_assed_ref_ent_id>123</from_assed_ref_ent_id>
                    <to_assed_ref_ent_id>123</to_assed_ref_ent_id>
                </scc_bill_upload_response_d_t_o>
            </result_list>
            <total_num>100</total_num>
        </model>
        <msg_info>处理成功</msg_info>
        <msg_code>SUCCESS</msg_code>
        <sub_msg_code>SUCCESS</sub_msg_code>
        <operation>无后续操作</operation>
    </result>
</alibaba_alihealth_drug_scc_bill_search_up_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

返回
顶部