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

alibaba.alihealth.drug.scc.bill.detail.up (上游单据明细)

上游单据明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 123 refEntId
from_ref_ent_id String 必须 132 发货企业refEntId
bill_code String 必须 101 单据号

响应参数

名称 类型 示例值 描述
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
  • 销售数量
  • 销售数量
  • scc_bill_detail_code_show_response_dto_list
  • SccBillDetailCodeShowResponseDTO []
  • 码明细
  • └ code
  • String
  • 追溯码
  • 追溯码
  • └ bill_detail_code
  • String
  • 单据明细编号
  • 单据明细编号
  • └ code_status
  • String
  • 码状态
  • 码状态
  • └ code_exception_reason
  • String
  • 码异常原因
  • 码异常原因
  • └ drug_info
  • String
  • 药品信息
  • 药品信息
  • └ pkg_spec
  • String
  • 包装规格
  • 包装规格
  • └ produce_ent_name
  • String
  • 生产厂家
  • 生产厂家
  • └ mah_ent_name
  • String
  • mah
  • mah
  • └ produce_date
  • String
  • 生产日期
  • 生产日期
  • └ exprie_date
  • String
  • 有效期至
  • 有效期至
  • └ code_level
  • String
  • 码级别
  • 码级别
  • └ small_code_count
  • String
  • 最小包装数量
  • 最小包装数量
  • └ relation_bill_code_list
  • 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);
AlibabaAlihealthDrugSccBillDetailUpRequest req = new AlibabaAlihealthDrugSccBillDetailUpRequest();
req.setRefEntId("123");
req.setFromRefEntId("132");
req.setBillCode("101");
AlibabaAlihealthDrugSccBillDetailUpResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scc_bill_detail_up_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_code_show_response_dto_list>
                        <scc_bill_detail_code_show_response_d_t_o>
                            <code>追溯码</code>
                            <bill_detail_code>单据明细编号</bill_detail_code>
                            <code_status>码状态</code_status>
                            <code_exception_reason>码异常原因</code_exception_reason>
                            <drug_info>药品信息</drug_info>
                            <pkg_spec>包装规格</pkg_spec>
                            <produce_ent_name>生产厂家</produce_ent_name>
                            <mah_ent_name>mah</mah_ent_name>
                            <produce_date>生产日期</produce_date>
                            <exprie_date>有效期至</exprie_date>
                            <code_level>码级别</code_level>
                            <small_code_count>最小包装数量</small_code_count>
                        </scc_bill_detail_code_show_response_d_t_o>
                    </scc_bill_detail_code_show_response_dto_list>
                </scc_bill_detail_show_response_d_t_o>
            </scc_bill_detail_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_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

返回
顶部