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

aliexpress.postproduct.redefining.editsingleskustock (编辑商品单个SKU库存)

编辑商品单个SKU的库存信息.

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 可选 32297192242 需修改编辑的商品ID
sku_id String 可选 14:200003699;5:100014065 需修改编辑的商品单个SKUID。SKU ID可以通过api.findAeProductById接口中的aeopAeproductSKUs获取单个产品信息中"id"进行获取。
ipm_sku_stock Number 可选 299 SKU的库存值

响应参数

名称 类型 示例值 描述
result AeopModifyProductResponse 12345
  • error_details
  • ErrorDetail []
  • 错误详情
  • └ error_code
  • String
  • 0
  • 错误代码
  • └ product_ids
  • Number []
  • 0
  • productIds
  • └ modify_count
  • Number
  • 1
  • 修改的产品数
  • └ product_id
  • Number
  • 123445
  • 修改的产品ID
  • └ success
  • Boolean
  • true
  • 接口调用结果。true/false分别表示成功和失败。
  • └ error_code
  • Number
  • 16009999
  • 错误子代码
  • └ error_message
  • String
  • 系统异常!
  • 系统异常信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressPostproductRedefiningEditsingleskustockRequest req = new AliexpressPostproductRedefiningEditsingleskustockRequest();
req.setProductId(32297192242L);
req.setSkuId("14:200003699;5:100014065");
req.setIpmSkuStock(299L);
AliexpressPostproductRedefiningEditsingleskustockResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_postproduct_redefining_editsingleskustock_response>
    <result>
        <error_details>
            <error_detail>
                <error_code>0</error_code>
                <product_ids>
                    <number>0</number>
                </product_ids>
            </error_detail>
        </error_details>
        <modify_count>1</modify_count>
        <product_id>123445</product_id>
        <success>true</success>
        <error_code>16009999</error_code>
        <error_message>系统异常!</error_message>
    </result>
</aliexpress_postproduct_redefining_editsingleskustock_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

返回
顶部