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

alibaba.alihealth.drug.code.kyt.wes.delbillinfo (单据删除)

根据单据号删除单据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 必须 61921634e4b02 当前操作企业唯一标识
bill_code String 必须 SYS_IN_20220907 单据号
delete_reason String 必须 误操作 删除原因
mobile_phone String 必须 15219844921 删除人手机号
owner_ref_user_id String 可选 cdd4bd04034 当单据是代理企业上传的,需要填写货主的refEntId
license_token String 必须 12345789 服务校验的token

响应参数

名称 类型 示例值 描述
result ResultModel 最外层结果
  • └ models
  • String
  • 单据删除成功
  • 内层对象
  • └ msg_code
  • String
  • BILL_DELETE_SUCESS
  • 状态码
  • └ msg_info
  • String
  • 单据删除成功
  • 状态值
  • └ response_success
  • Boolean
  • true
  • 响应结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugCodeKytWesDelbillinfoRequest req = new AlibabaAlihealthDrugCodeKytWesDelbillinfoRequest();
req.setRefEntId("61921634e4b02");
req.setBillCode("SYS_IN_20220907");
req.setDeleteReason("误操作");
req.setMobilePhone("15219844921");
req.setOwnerRefUserId("cdd4bd04034");
req.setLicenseToken("12345789");
AlibabaAlihealthDrugCodeKytWesDelbillinfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_code_kyt_wes_delbillinfo_response>
    <result>
        <models>单据删除成功</models>
        <msg_code>BILL_DELETE_SUCESS</msg_code>
        <msg_info>单据删除成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_code_kyt_wes_delbillinfo_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

返回
顶部