根据outerCode查询商品
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
outer_code | String | 必须 | 商品编码 | 商品编码 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
sc_item | ScItem | 1 | 后台商品 |
|
1 2 3 4 5 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); ScitemOutercodeGetRequest req = new ScitemOutercodeGetRequest(); req.setOuterCode( "商品编码" ); ScitemOutercodeGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | < scitem_outercode_get_response > < sc_item > < weight >1000</ weight > < bar_code >NMB12341</ bar_code > < remark >备注</ remark > < width >1000</ width > < brand_id >111</ brand_id > < properties >height:20;length:5</ properties > < brand_name >品牌名称</ brand_name > < wms_code >仓储商编码</ wms_code > < is_friable >true</ is_friable > < is_warranty >true</ is_warranty > < price >1000</ price > < height >1000</ height > < is_dangerous >true</ is_dangerous > < item_name >秋装款式1</ item_name > < item_id >12345678</ item_id > < is_costly >true</ is_costly > < outer_code >GLY111222</ outer_code > < volume >1000</ volume > < length >1000</ length > < matter_status >LIQUID</ matter_status > < is_area_sale >1</ is_area_sale > < item_type >1</ item_type > < options >16</ options > </ sc_item > </ scitem_outercode_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.scitem-error:20019 | 根据商家id和商家编码查询商品信息时,查询失败 | 请检查参数 |