文档中心 > API类目 > 阿里健康药API

alibaba.alihealth.nrmop.item.deletebychannel (提供给商家自建的O2O销售渠道删除商品)

提供给商家自建的O2O销售渠道删除商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
seller_custom_item_dto SellerCustomItemDTO 可选 商品删除对象
  • └ out_id
  • String
  • 必须
  • 1111
  • 药店药品编码(ERP编码),货号
  • └ channel_id
  • Number
  • 必须
  • 8
  • 渠道ID,一树小鹿O2O:8,一树小鹿B2C:7
  • └ channel_shop_code
  • String
  • 必须
  • 1111
  • 渠道店铺编码 = 门店在渠道入驻时填写的编码 = 门店入驻OMS时填写的渠道门店编码

响应参数

名称 类型 示例值 描述
result ResponseResult 删除结果对象
  • └ success
  • Boolean
  • true
  • 执行是否成功
  • └ error_code
  • String
  • 500
  • 错误码
  • └ error_msg
  • String
  • 系统错误
  • 错误描述
  • └ result
  • Boolean
  • true
  • 更新结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthNrmopItemDeletebychannelRequest req = new AlibabaAlihealthNrmopItemDeletebychannelRequest();
AlibabaAlihealthNrmopItemDeletebychannelRequest.SellerCustomItemDTO obj1 = new AlibabaAlihealthNrmopItemDeletebychannelRequest.SellerCustomItemDTO();
obj1.setOutId("1111");
obj1.setChannelId(8L);
obj1.setChannelShopCode("1111");
req.setSellerCustomItemDto(obj1);
AlibabaAlihealthNrmopItemDeletebychannelResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_nrmop_item_deletebychannel_response>
    <result>
        <success>true</success>
        <error_code>500</error_code>
        <error_msg>系统错误</error_msg>
        <result>true</result>
    </result>
</alibaba_alihealth_nrmop_item_deletebychannel_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

返回
顶部