tmall.item.update.schema.get.custom (天猫商品信息查询schema接口)

Schema方式编辑天猫商品时,编辑商品规则获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id Number 必须 2100529818899 需要编辑的商品ID
category_id Number 可选 1512 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求,不需要填写。
product_id Number 可选 12314 商品发布的目标product_id。如果没有切换产品的需求,参数可以不填写。

响应参数

名称 类型 示例值 描述
update_item_result String <rules><field id="prop_1632501" type="input" required="true"><name>货号</name><value type="text"/></field></rules> 返回发布商品的规则文档

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallItemUpdateSchemaGetCustomRequest req = new TmallItemUpdateSchemaGetCustomRequest();
req.setItemId(2100529818899L);
req.setCategoryId(1512L);
req.setProductId(12314L);
TmallItemUpdateSchemaGetCustomResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_item_update_schema_get_custom_response>
    <update_item_result>&lt;rules&gt;&lt;field id=&quot;prop_1632501&quot; type=&quot;input&quot; required=&quot;true&quot;&gt;&lt;name&gt;货号&lt;/name&gt;&lt;value type=&quot;text&quot;/&gt;&lt;/field&gt;&lt;/rules&gt;</update_item_result>
</tmall_item_update_schema_get_custom_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

返回
顶部