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

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

alibaba.alihealth.drug.kyt.remnantbill.upload (零头出入库单据上传)

零头出入库单据上传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 cb14553ed7654ff586b87b637ba23123 企业ref_ent_id
bill_type Number 必须 106 零头入库:106;零头出库:210
bill_code String 必须 BC123456 单据编号
bill_time Date 必须 2024-05-10 16:57:15 单据时间:yyyy-MM-dd HH:mm:ss
from_ref_user_id String 必须 cb14553ed7654ff586b87b637ba23123 发货企业【注意:该入参是ref_ent_id,并不是ent_id】
to_ref_user_id String 必须 cb14553ed7654ff586b87b637ba23123 收货企业【注意:该入参是ref_ent_id,并不是ent_id】
ass_ref_ent_id String 必须 cb14553ed7654ff586b87b637ba23123 委托企业【注意:该入参是ref_ent_id,并不是ent_id】
dis_ref_ent_id String 必须 cb14553ed7654ff586b87b637ba23123 配送企业【注意:该入参是ref_ent_id,并不是ent_id】
drug_ent_base_info_id String 必须 2c9194c71f493b1c011f638494c216d7 药品ID
produce_date String 必须 2020-10-01 生产日期:yyyy-MM-dd
expire_date String 必须 20211001 有效期:yyyyMMdd
produce_batch_no String 必须 B123456 生产批次
input_amount String 必须 10 药品数量

响应参数

名称 类型 示例值 描述
response_status Boolean true 是否成功
model String 单据保存成功 model
msg_info String 单据添加成功 msgInfo
msg_code String BILL_ADD_SUCESS msgCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytRemnantbillUploadRequest req = new AlibabaAlihealthDrugKytRemnantbillUploadRequest();
req.setRefEntId("cb14553ed7654ff586b87b637ba23123");
req.setBillType(106L);
req.setBillCode("BC123456");
req.setBillTime(StringUtils.parseDateTime("2024-05-10 16:57:15"));
req.setFromRefUserId("cb14553ed7654ff586b87b637ba23123");
req.setToRefUserId("cb14553ed7654ff586b87b637ba23123");
req.setAssRefEntId("cb14553ed7654ff586b87b637ba23123");
req.setDisRefEntId("cb14553ed7654ff586b87b637ba23123");
req.setDrugEntBaseInfoId("2c9194c71f493b1c011f638494c216d7");
req.setProduceDate("2020-10-01");
req.setExpireDate("20211001");
req.setProduceBatchNo("B123456");
req.setInputAmount("10");
AlibabaAlihealthDrugKytRemnantbillUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_kyt_remnantbill_upload_response>
    <response_status>true</response_status>
    <model>单据保存成功</model>
    <msg_info>单据添加成功</msg_info>
    <msg_code>BILL_ADD_SUCESS</msg_code>
</alibaba_alihealth_drug_kyt_remnantbill_upload_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

返回
顶部