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> | 返回发布商品的规则文档 |
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallItemUpdateSchemaGetRequest req = new TmallItemUpdateSchemaGetRequest(); req.setItemId(2100529818899L); req.setCategoryId(1512L); req.setProductId(12314L); TmallItemUpdateSchemaGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < tmall_item_update_schema_get_response > < update_item_result ><rules><field id="prop_1632501" type="input" required="true"><name>货号</name><value type="text"/></field></rules></ update_item_result > </ tmall_item_update_schema_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isp.service-unavailable | 系统繁忙,请稍后重试 | 系统繁忙,请稍后重试 |
isp.tmallitem-service-error:empty | 该行业不支持发布商品 | 请服务商做本地缓存,不要在此类目下发布商品 |
invalid-parameter:product_id | 参数product_id格式不正确 | 请检查product_id字段 |
isv.invalid-parameter:cid | 参数cid格式不正确 | 请检查cid字段,修改后再提交 |
isp.tmallitem-service-error:empty;isp.tmallitem-service-error:empty | 该行业不支持发布商品 | 请服务商做本地缓存,不要在此类目下发布商品 |
isp.remote-service-error: | 系统繁忙,请稍后重试 | 系统繁忙,请稍后重试 |
isp.tmallitem-service-error:empty;isv.invalid-parameter:cid | 该行业不支持发布商品;参数cid格式不正确 | 请服务商做本地缓存,不要在此类目下发布商品; 请检查cid字段,修改后再提交 |
isv.invalid-parameter:cid;isp.tmallitem-service-error:empty | 参数cid格式不正确;该行业不支持发布商品 | 请检查cid字段,修改后再提交;请服务商做本地缓存,不要在此类目下发布商品 |
isv.invalid-parameter:category-not-found | 商品发布类目不存在 | 商品发布类目不存在,请检查cid参数是否正确 |
isv.invalid-parameter:category-frozen | 商品发布类目已冻结,不允许发布 | 商品发布类目已冻结,不允许发布 |
SYS_REQUEST_TOO_FAST | 请求太快,请降低调用频率 | 单个商家一分钟只能调用2000次,请降低调用频率 |