洗衣工厂根据商品Code查询商品的标题、价格、图片等基础商品信息。
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
item_code_list | String [] | 必须 | xxx,yyy |
|
商品编码列表 |
station_id | Number | 必须 | 100262 | 驿站ID |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 业务响应结果 | 接口返回model |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); CainiaoCntecWashingItemQueryRequest req = new CainiaoCntecWashingItemQueryRequest(); req.setItemCodeList( "xxx,yyy" ); req.setStationId(100262L); CainiaoCntecWashingItemQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < cainiao_cntec_washing_item_query_response > < result > < success >true</ success > < err_code >A00000</ err_code > < model_list > < model > < item_original_price >1990</ item_original_price > < item_title >测试商品</ item_title > < item_code >XXX</ item_code > < item_price >100</ item_price > </ model > </ model_list > < error_msg >成功</ error_msg > </ result > </ cainiao_cntec_washing_item_query_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 > |
错误码 | 错误描述 | 解决方案 |
---|