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

aliexpress.postproduct.redefining.onlineaeproduct (商品上架)

上架一个或者多个商品,待上架的产品ID通过参数productIds指定,产品ID之间使用英文分号(;)隔开, 最多一次只能上架50个商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_ids String 可选 109827;109828 需要上架的产品id列表。可输入多个,之前用半角分号分割。

响应参数

名称 类型 示例值 描述
result AeopModifyProductResponse 0 result
  • error_details
  • ErrorDetail []
  • [ {errorCode: 11015111, productIds:[50001056157, 50001056153]}, {errorCode: 11015112, productIds:[50001056152, 50001056156]}]
  • 商品上架错误详情
  • └ error_code
  • String
  • 15
  • 错误码
  • └ product_ids
  • Number []
  • [50001056157, 50001056153]
  • 产品ID列表
  • └ modify_count
  • Number
  • 5
  • 操作成功返回成功产品个数。
  • └ product_id
  • Number
  • 0
  • 操作成功返回的产品id
  • └ success
  • Boolean
  • true
  • 接口调用结果。成功为true, 失败为false。
  • └ error_code
  • Number
  • 11015111
  • 错误子代码
  • └ error_message
  • String
  • 系统异常!
  • 系统异常信息

请求示例

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

响应示例

  • XML示例
  • JSON示例
<aliexpress_postproduct_redefining_onlineaeproduct_response>
    <result>
        <error_details>
            <error_detail>
                <error_code>15</error_code>
                <product_ids>
                    <number>[50001056157</number>
                    <number>50001056153]</number>
                </product_ids>
            </error_detail>
        </error_details>
        <modify_count>5</modify_count>
        <product_id>0</product_id>
        <success>true</success>
        <error_code>11015111</error_code>
        <error_message>系统异常!</error_message>
    </result>
</aliexpress_postproduct_redefining_onlineaeproduct_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>

错误码解释

错误码 错误描述 解决方案
090014 商品不存在 商品不存在
090015 产品处于非"下架"状态中 产品处于非"下架"状态中
090012 卖家被处罚,禁止上架商品 卖家被处罚,禁止上架商品
090019 运费模版不存在或者不能被关联到当前产品. 运费模版不存在或者不能被关联到当前产品.
090021 产品处于非审核通过状态中. 产品处于非审核通过状态中.
090025 产品已经删除 产品已经删除
090026 上架失败 上架失败
150008 商品发布数量受限 商品发布数量受限

API工具

如何获得此API

FAQ

返回
顶部