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

aliexpress.postproduct.redefining.editsimpleproductfiled (编辑商品的单个字段)

编辑商品的单个字段(目前使用api.editSimpleProductFiled这个接口 暂不支持商品分组、商品属性、SKU、服务模板的修改。请注意!)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 可选 1234 指定编辑产品的id
fied_name String 可选 deliveryTime 编辑的字段名称,为以下字段内容里的其中一项, 可以编辑的字段包括: subject: 商品的标题; detail: 商品的详细描述信息; deliveryTime: 备货期; groupId: 产品组; freightTemplateId: 运费模版; packageLength: 商品包装长度; packageWidth: 商品包装宽度; packageHeight:商品包装高度; grossWeight: 商品毛重; wsValidNum商品的有效天数;mobileDetail:无线详描(注意:该字段的提交修改,数据生效时间:商品(到期或手动)下架再上架生效。”); reduceStrategy: 库存扣减策略(总共有2种:下单减库存(place_order_withhold)和支付减库存(payment_success_deduct)。);imageURLs:商品主图 多个图片时,用冒号分隔 ;promiseTemplateId:服务模板id
fiedvalue String 可选 { "mobileDetail": [ { "type": "text", "content": " POSTAGE<>: We provide free express shipping via UPS / DHL / FEDEX / EMS / TNT / ARAMEX / for most of country when your orders around US$200 (please contact us if you have qustions). Delivery time around 4-7 days (business days).NOTE<>: We have only one store called 'TWOTWINSTYLE' on aliexpress. The products selling in other stores with same designs or photos are not from us. 'TWOTWINSTYLE' have their own separate production lines, all merchandise sold are exclusive and high quality." } ], "version": "1.0", "versionNum": 1} 根据fiedName变化:fiedName=detail时,本字段是一段html字符串;fiedName=mobileDetail时,本字段的值是一段json字符串;fiedName=groupId时,本字段是一个产品分组唯一标识(数字类型),服务模版传参数是[1005003352630153,1005003352630154],fiedName= custom_image分国家主图变更传参{"BR":"https://ae04.alicdn.com/kf/HTB1uD3ZXUz1gK0jSZLeq6z9kVXat.jpg","RU":"http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg"}。

响应参数

名称 类型 示例值 描述
result AeopModifyProductResponse result
  • error_details
  • ErrorDetail []
  • 错误详情
  • └ error_code
  • String
  • 0
  • 错误代码
  • └ product_ids
  • Number []
  • 0
  • productIds
  • └ modify_count
  • Number
  • 1
  • 成功修改的产品数
  • └ product_id
  • Number
  • 1590267344
  • 产品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);
AliexpressPostproductRedefiningEditsimpleproductfiledRequest req = new AliexpressPostproductRedefiningEditsimpleproductfiledRequest();
req.setProductId(1234L);
req.setFiedName("deliveryTime");
req.setFiedvalue("{  \"mobileDetail\": [  {        \"type\": \"text\",        \"content\": \" POSTAGE<>:  We provide free express shipping via UPS / DHL / FEDEX / EMS / TNT / ARAMEX / for most of country when your orders around US$200 (please contact us if you have qustions). Delivery time around 4-7 days (business days).NOTE<>: We have only one store called 'TWOTWINSTYLE' on aliexpress. The products selling in other stores with same designs or photos are not from us. 'TWOTWINSTYLE' have their own separate production lines, all merchandise sold are exclusive and high quality.\"      } ],  \"version\": \"1.0\",  \"versionNum\": 1}");
AliexpressPostproductRedefiningEditsimpleproductfiledResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_postproduct_redefining_editsimpleproductfiled_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>1590267344</product_id>
        <success>true</success>
        <error_code>16009999</error_code>
        <error_message>系统异常!</error_message>
    </result>
</aliexpress_postproduct_redefining_editsimpleproductfiled_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

返回
顶部