tmall.item.vip.schema.add (大商家商品发布接口)

大商家商品发布接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
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参数

响应参数

名称 类型 示例值 描述
add_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);
TmallItemVipSchemaAddRequest req = new TmallItemVipSchemaAddRequest();
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>");
TmallItemVipSchemaAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_item_vip_schema_add_response>
    <add_item_result>12345</add_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_add_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>

错误码解释

错误码 错误描述 解决方案
isv.item-service-error:POST_TEMPLATE_VALUEATION_ERROR 运费模板出错 ${postErrorMsg} 运费模板出错 ${postErrorMsg}
isv.item-service-error:IC_CHECKSTEP_USERDEFINED_SKU_ERROR 自定义销售属性不能含有特殊字符 自定义销售属性不能含有特殊字符

API工具

如何获得此API

FAQ

返回
顶部