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

alibaba.alihealth.drug.scc.material.send (scc资料发送、盖章)

scc资料发送、盖章

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 123 refEntId
material_follow_bill_class String 必须 1 资料挂载的单据分类 ,1:单据主单、2:明细单、3:配送单
material_follow_bill_code String 必须 12212 资料挂载的单据类型对应的单据号,有可能是主单编号、配送单编号、明细单编号
is_send_all String 可选 1 是否全部发送,全部发送则把挂载到单据下的资料全都发送,如果不是全部发送,则要看 sendMaterialIdList 需要发送的资料 .1:全部发送
send_material_id_list String 可选 资料id1,资料id2 发送的资料id 如果不是全部发送,则根据该字段发送资料 。多个资料id之间用英文逗号分割
stamp_info String 可选 {"2":{"1":{"X":1.0,"Y":2.0}}} 盖章的资料 map<资料id,<资料类型,map<横坐标/纵坐标,坐标值>>>

响应参数

名称 类型 示例值 描述
response_success Boolean true 返回成功失败
model String 处理成功 返回成功失败
msg_info String 处理成功 返回成功失败
msg_code String SUCCESSS 返回成功失败
sub_msg_code String SUCCESSS 返回子编码
operation String 无后续操作 后续操作

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugSccMaterialSendRequest req = new AlibabaAlihealthDrugSccMaterialSendRequest();
req.setRefEntId("123");
req.setMaterialFollowBillClass("1");
req.setMaterialFollowBillCode("12212");
req.setIsSendAll("1");
req.setSendMaterialIdList("资料id1,资料id2");
req.setStampInfo("{\"2\":{\"1\":{\"X\":1.0,\"Y\":2.0}}}");
AlibabaAlihealthDrugSccMaterialSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_scc_material_send_response>
    <response_success>true</response_success>
    <model>处理成功</model>
    <msg_info>处理成功</msg_info>
    <msg_code>SUCCESSS</msg_code>
    <sub_msg_code>SUCCESSS</sub_msg_code>
    <operation>无后续操作</operation>
</alibaba_alihealth_drug_scc_material_send_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

返回
顶部