获取用户更新产品的规则
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
product_id | Number | 必须 | 123 | 产品编号 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
update_product_schema | String | <itemRule><field id="prop_14837340" name="体积(含包装)" type="input"/></itemRule> | 参数产品ID对产品的更新规则 |
1 2 3 4 5 | 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()); |
1 2 3 | < tmall_product_update_schema_get_response > < update_product_schema ><itemRule><field id="prop_14837340" name="体积(含包装)" type="input"/></itemRule></ update_product_schema > </ tmall_product_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.invalid-parameter:prductId | 产品不存在 | 无需更新,调整为发布 |
isv.invalid-parameter:cid | 产品对应类目删除或者屏蔽 | 无需更新,更换产品 |