文档中心 > API类目 > 淘宝商品API

tmall.product.update.schema.get (产品更新规则获取接口)

获取用户更新产品的规则

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 必须 123 产品编号

响应参数

名称 类型 示例值 描述
update_product_schema String <itemRule><field id="prop_14837340" name="体积(含包装)" type="input"/></itemRule> 参数产品ID对产品的更新规则

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallProductUpdateSchemaGetRequest req = new TmallProductUpdateSchemaGetRequest();
req.setProductId(123L);
TmallProductUpdateSchemaGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_product_update_schema_get_response>
    <update_product_schema>&lt;itemRule&gt;&lt;field id=&quot;prop_14837340&quot; name=&quot;体积(含包装)&quot; type=&quot;input&quot;/&gt;&lt;/itemRule&gt;</update_product_schema>
</tmall_product_update_schema_get_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.invalid-parameter:prductId 产品不存在 无需更新,调整为发布
isv.invalid-parameter:cid 产品对应类目删除或者屏蔽 无需更新,更换产品

API工具

如何获得此API

FAQ

返回
顶部