文档中心 > API类目 > 阿里健康-本地医疗-通用预约服务

alibaba.alihealth.medical.cargo.itemsku.supply.withdraw (撤销供货)

货品从商品撤销供货,指定门店

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 WithdrawSupplyOfItemSkuTopRequest 必须 请求对象
  • └ isv_cargo_id
  • String
  • 必须
  • 123123
  • 服务商货品ID
  • └ isv_store_ids
  • String []
  • 必须
  • 服务商门店ID
  • └ item_sku_id
  • String
  • 必须
  • 2021080112312
  • 商品SKU ID

响应参数

名称 类型 示例值 描述
result_status String FAIL 结果状态。SUCCESS:成功;FAIL:失败;UNKNOWN 未知。批量操作,如果有一个SUCCESS就返回SUCCESS,如果没有成功但有ACCEPT就返回ACCEPT,如果没有SUCCESS和ACCEPT但有UNKNOWN就返回UNKNOWN,都是FAIL则返回FAIL。
result_code String PARAM_ILLEGAL 结果码,请尽量使用result status来判断结果,result code仅在打印日志或需要关心具体错误原因时才使用
result_msg String 参数异常 结果描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalCargoItemskuSupplyWithdrawRequest req = new AlibabaAlihealthMedicalCargoItemskuSupplyWithdrawRequest();
AlibabaAlihealthMedicalCargoItemskuSupplyWithdrawRequest.WithdrawSupplyOfItemSkuTopRequest obj1 = new AlibabaAlihealthMedicalCargoItemskuSupplyWithdrawRequest.WithdrawSupplyOfItemSkuTopRequest();
obj1.setIsvCargoId("123123");
obj1.setIsvStoreIds("");
obj1.setItemSkuId("2021080112312");
req.setParam0(obj1);
AlibabaAlihealthMedicalCargoItemskuSupplyWithdrawResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_cargo_itemsku_supply_withdraw_response>
    <result_status>FAIL</result_status>
    <result_code>PARAM_ILLEGAL</result_code>
    <result_msg>参数异常</result_msg>
</alibaba_alihealth_medical_cargo_itemsku_supply_withdraw_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

返回
顶部