tmall.item.vip.schema.update (大商家商品编辑接口)

大商家编辑商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id Number 必须 1234567 商品id
schema_xml_fields String 必须 <?xml version="1.0" encoding="UTF-8"?> <itemRule> <field id="title" name="商品标题" type="input"> <value>画笔</value> </field> <field id="vip_category_path" name="类目路径" type="input"> <value>儿童婴儿>玩具>文具>816-画笔</value> </field> <field id="vip_category_id" name="类目ID" type="input"> <value >162104</value> </field> <field id="vip_brand_name" name="品牌名称" type="input"> <value>冰度</value> </field> </itemRule> 商品编辑的schema参数

响应参数

名称 类型 示例值 描述
update_item_result String 12345 编辑商品的id
gmt_create Date 2014-01-01 00:00:00 编辑商品操作成功时间
sku_map_json String {"31127316928":"12345"} sku与outerId映射信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallItemVipSchemaUpdateRequest req = new TmallItemVipSchemaUpdateRequest();
req.setItemId(1234567L);
req.setSchemaXmlFields("<?xml version=\"1.0\" encoding=\"UTF-8\"?> <itemRule>   <field id=\"title\" name=\"商品标题\" type=\"input\">     <value>画笔</value>   </field>   <field id=\"vip_category_path\" name=\"类目路径\" type=\"input\">     <value>儿童婴儿>玩具>文具>816-画笔</value>   </field>   <field id=\"vip_category_id\" name=\"类目ID\" type=\"input\">     <value >162104</value>   </field>   <field id=\"vip_brand_name\" name=\"品牌名称\" type=\"input\">     <value>冰度</value>   </field> </itemRule>");
TmallItemVipSchemaUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_item_vip_schema_update_response>
    <update_item_result>12345</update_item_result>
    <gmt_create>2014-01-01 00:00:00</gmt_create>
    <sku_map_json>{&quot;31127316928&quot;:&quot;12345&quot;}</sku_map_json>
</tmall_item_vip_schema_update_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

返回
顶部