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

alibaba.alihealth.drug.scc.bill.detail (协同单据明细查询)

查询一个协同单据的明细信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 123 refEntId
bill_code String 必须 单据号 单据号
license_token String 必须 1234567 获取licenseToken,通过alibaba.alihealth.drug.scc.getlicense
upload_ref_user_id String 必须 单据上传人refUserId 单据上传人refUserId

响应参数

名称 类型 示例值 描述
result ResultModel 返回结果
  • └ response_success
  • Boolean
  • SUCCESS
  • 成功失败
  • model
  • SccBillShowResponseDTO
  • 返回对象
  • └ bill_code
  • String
  • 单据号
  • 单据号
  • └ from_user_name
  • String
  • 发货货主单位
  • 发货货主单位
  • └ to_user_name
  • String
  • 收货货主单位
  • 收货货主单位
  • └ mod_date
  • String
  • modDate
  • 单据更新时间
  • └ bill_type
  • String
  • 单据类型
  • 单据类型
  • └ from_assed_user_name
  • String
  • 发货方委托的企业名称
  • 发货方委托的企业名称
  • └ to_assed_user_name
  • String
  • 受收货方委托的企业名称
  • 受收货方委托的企业名称
  • └ up_material_total
  • String
  • 上游资料总数
  • 上游资料总数
  • └ up_material_send
  • String
  • 上游已发送资料
  • 上游已发送资料
  • └ up_material_un_send
  • String
  • 上游未发送资料
  • 上游未发送资料
  • └ down_material_sign
  • String
  • 下游资料签收数
  • 下游资料签收数
  • └ down_material_un_sign
  • String
  • 下游资料未签收数
  • 下游资料未签收数
  • └ down_material_reject
  • String
  • 下游资料拒收数
  • 下游资料拒收数
  • scc_bill_detail_show_response_dto_list
  • SccBillDetailShowResponseDTO []
  • 明细单信息
  • └ bill_detail_code
  • String
  • 单据明细编号
  • 单据明细编号
  • └ exception_code_count
  • String
  • 异常码数量
  • 异常码数量
  • └ produce_batch_no
  • String
  • 产品批号
  • 产品批号
  • └ drug_info
  • String
  • 药品名称
  • 药品名称
  • └ sale_count
  • String
  • 销售数量
  • 销售数量
  • └ transport_bill_code_list
  • String []
  • 关联的配送单
  • scc_bill_detail_code_show_response_dto_list
  • CodeInfoShowDTO []
  • 码明细
  • └ code
  • String
  • 815555
  • 追溯码
  • └ bill_detail_code
  • String
  • 1234
  • 单据明细编号
  • └ exception_flag
  • String
  • 1
  • 1:存在异常
  • └ exception_message
  • String
  • 正常
  • 具体异常原因:11:存在未激;活的码;2:存在未通过码制校验的码;3:存在重复的码;4:存在注销的码;5:存在注销的码;6:存在注销的码;7:存在注销的码
  • └ drug_info
  • String
  • 1
  • 药品信息
  • └ mah_name
  • String
  • 测试企业
  • 药品的mah
  • └ pkg_spec
  • String
  • 包装规格
  • └ produce_name
  • String
  • 生产厂商
  • 生产厂商
  • batch_no_inner_dto_list
  • BatchNoDTO []
  • 码的批次信息
  • └ exprie_date
  • String
  • 20250731
  • 有效期至
  • └ min_code_count
  • Number
  • 1
  • 最小码数量
  • └ pkg_level
  • Number
  • 1
  • 包装级别
  • └ produce_batch_no
  • String
  • 产品批号
  • 产品批号
  • └ produce_date
  • Date
  • 2025-07-01 00:00:00
  • 生产日期
  • └ pkg_ratio
  • String
  • 包装比例
  • 包装比例
  • └ msg_info
  • String
  • 成功失败信息
  • 成功失败信息
  • └ msg_code
  • String
  • 成功失败信息
  • 成功失败信息
  • └ sub_msg_code
  • String
  • SUCCESS
  • 返回子码
  • └ operation
  • String
  • 无后续操作
  • 后续操作

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugSccBillDetailRequest req = new AlibabaAlihealthDrugSccBillDetailRequest();
req.setRefEntId("123");
req.setBillCode("单据号");
req.setLicenseToken("1234567");
req.setUploadRefUserId("单据上传人refUserId");
AlibabaAlihealthDrugSccBillDetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scc_bill_detail_response>
    <result>
        <response_success>SUCCESS</response_success>
        <model>
            <bill_code>单据号</bill_code>
            <from_user_name>发货货主单位</from_user_name>
            <to_user_name>收货货主单位</to_user_name>
            <mod_date>modDate</mod_date>
            <bill_type>单据类型</bill_type>
            <from_assed_user_name>发货方委托的企业名称</from_assed_user_name>
            <to_assed_user_name>受收货方委托的企业名称</to_assed_user_name>
            <up_material_total>上游资料总数</up_material_total>
            <up_material_send>上游已发送资料</up_material_send>
            <up_material_un_send>上游未发送资料</up_material_un_send>
            <down_material_sign>下游资料签收数</down_material_sign>
            <down_material_un_sign>下游资料未签收数</down_material_un_sign>
            <down_material_reject>下游资料拒收数</down_material_reject>
            <scc_bill_detail_show_response_dto_list>
                <scc_bill_detail_show_response_d_t_o>
                    <bill_detail_code>单据明细编号</bill_detail_code>
                    <exception_code_count>异常码数量</exception_code_count>
                    <produce_batch_no>产品批号</produce_batch_no>
                    <drug_info>药品名称</drug_info>
                    <sale_count>销售数量</sale_count>
                </scc_bill_detail_show_response_d_t_o>
            </scc_bill_detail_show_response_dto_list>
            <scc_bill_detail_code_show_response_dto_list>
                <code_info_show_d_t_o>
                    <code>815555</code>
                    <bill_detail_code>1234</bill_detail_code>
                    <exception_flag>1</exception_flag>
                    <exception_message>正常</exception_message>
                    <drug_info>1</drug_info>
                    <mah_name>测试企业</mah_name>
                    <pkg_spec>盒</pkg_spec>
                    <produce_name>生产厂商</produce_name>
                    <batch_no_inner_dto_list>
                        <batch_no_d_t_o>
                            <exprie_date>20250731</exprie_date>
                            <min_code_count>1</min_code_count>
                            <pkg_level>1</pkg_level>
                            <produce_batch_no>产品批号</produce_batch_no>
                            <produce_date>2025-07-01 00:00:00</produce_date>
                            <pkg_ratio>包装比例</pkg_ratio>
                        </batch_no_d_t_o>
                    </batch_no_inner_dto_list>
                </code_info_show_d_t_o>
            </scc_bill_detail_code_show_response_dto_list>
        </model>
        <msg_info>成功失败信息</msg_info>
        <msg_code>成功失败信息</msg_code>
        <sub_msg_code>SUCCESS</sub_msg_code>
        <operation>无后续操作</operation>
    </result>
</alibaba_alihealth_drug_scc_bill_detail_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

返回
顶部