文档中心 > API类目 > 全球速卖通-商品管理

aliexpress.postproduct.redefining.offlineaeproduct (商品下架)

商品下架接口。需要下架的商品的通过productIds参数指定,多个商品之间用英文分号隔开。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_ids String 可选 109827;109828 需要下架的产品id。多个产品ID用英文分号隔开。

响应参数

名称 类型 示例值 描述
result AeopModifyProductResponse 0 12345
  • error_details
  • ErrorDetail []
  • 0
  • errorDetails
  • └ error_code
  • String
  • 0
  • 错误代码
  • └ product_ids
  • Number []
  • 0
  • productIds
  • └ modify_count
  • Number
  • 4
  • 成功下架的商品数。
  • └ product_id
  • Number
  • 0
  • 成功下架的商品id
  • └ success
  • Boolean
  • true或false
  • 接口调用结果。成功为true, 失败为false。
  • └ error_code
  • Number
  • 16009999
  • 错误子代码
  • └ error_message
  • String
  • 系统异常!
  • 系统异常信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressPostproductRedefiningOfflineaeproductRequest req = new AliexpressPostproductRedefiningOfflineaeproductRequest();
req.setProductIds("109827;109828");
AliexpressPostproductRedefiningOfflineaeproductResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_postproduct_redefining_offlineaeproduct_response>
    <result>
        <error_details>
            <error_detail>
                <error_code>0</error_code>
                <product_ids>
                    <number>0</number>
                </product_ids>
            </error_detail>
        </error_details>
        <modify_count>4</modify_count>
        <product_id>0</product_id>
        <success>true或false</success>
        <error_code>16009999</error_code>
        <error_message>系统异常!</error_message>
    </result>
</aliexpress_postproduct_redefining_offlineaeproduct_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>

错误码解释

错误码 错误描述 解决方案
090027 090027 活动商品不能下架!

API工具

如何获得此API

FAQ

返回
顶部