注意:以下文档只适用于TOP接口,请谨慎使用!

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

alibaba.alihealth.drug.scc.material.follow.bill (单据下的资料信息)

单据下的资料信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
appkey String 必须 123 appkey
ref_ent_id String 必须 123 企业refEntId
material_follow_bill_type String 必须 1 资料挂载的单据类型,也就是资料是挂载到单据下,还是配送单下,还是明细单下
material_follow_bill_code String 必须 单据id 资料挂载的单据类型对应的单据号,有可能是主单编号、配送单编号、明细单id

响应参数

名称 类型 示例值 描述
result ResultModel 返回对象
  • └ success
  • Boolean
  • true
  • 调用成功失败
  • model
  • MaterialResponseDTO []
  • 资料对象
  • └ material_class
  • String
  • 1
  • 资料分类 随货通行单、库内温度报告、发票、配送温度报告,后续持续增加(待补充)
  • └ material_name
  • String
  • 资料名称
  • 资料名称
  • └ material_no
  • String
  • 资料编号
  • 资料编号
  • └ material_type
  • String
  • pdf
  • 资料类型,jpg,pdf 等
  • └ material_content
  • String
  • http://
  • 资料内容,url
  • └ expire
  • String
  • 2025-01-01
  • 资料有效期至
  • └ note
  • String
  • 资料备注
  • 资料备注
  • └ material_follow_bill_class
  • String
  • 1
  • 资料挂载的单据分类 ,入出库单、配送单、单据明细
  • └ material_follow_bill_code
  • String
  • 资料挂载的单据号
  • 资料挂载的单据号
  • └ material_follow_bill_id
  • String
  • 11
  • 资料挂载的单据id
  • └ status
  • String
  • 1
  • 资料是否发送
  • └ stamp_status
  • String
  • 1
  • 资料是否盖章
  • └ stamp_info
  • String
  • {"资料id":{"资料类型id":{"X":1.0,"Y":2.0}}}
  • 资料盖章信息
  • └ msg_info
  • String
  • 成功
  • 成功失败信息
  • └ msg_code
  • String
  • SUCCESS
  • 成功失败编号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugSccMaterialFollowBillRequest req = new AlibabaAlihealthDrugSccMaterialFollowBillRequest();
req.setAppkey("123");
req.setRefEntId("123");
req.setMaterialFollowBillType("1");
req.setMaterialFollowBillCode("单据id");
AlibabaAlihealthDrugSccMaterialFollowBillResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scc_material_follow_bill_response>
    <result>
        <success>true</success>
        <model>
            <material_response_d_t_o>
                <material_class>1</material_class>
                <material_name>资料名称</material_name>
                <material_no>资料编号</material_no>
                <material_type>pdf</material_type>
                <material_content>http://</material_content>
                <expire>2025-01-01</expire>
                <note>资料备注</note>
                <material_follow_bill_class>1</material_follow_bill_class>
                <material_follow_bill_code>资料挂载的单据号</material_follow_bill_code>
                <material_follow_bill_id>11</material_follow_bill_id>
                <status>1</status>
                <stamp_status>1</stamp_status>
                <stamp_info>{&quot;资料id&quot;:{&quot;资料类型id&quot;:{&quot;X&quot;:1.0,&quot;Y&quot;:2.0}}}</stamp_info>
            </material_response_d_t_o>
        </model>
        <msg_info>成功</msg_info>
        <msg_code>SUCCESS</msg_code>
    </result>
</alibaba_alihealth_drug_scc_material_follow_bill_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

返回
顶部