淘宝买菜开放平台单个商品查询接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
item_detail_with_schema_request | ItemDetailWithSchemaRequest | 可选 | request | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TopBaseResult | result | |
|
1 2 3 4 5 6 7 8 9 10 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaTbmcItemGetWithSchemaRequest req = new AlibabaTbmcItemGetWithSchemaRequest(); AlibabaTbmcItemGetWithSchemaRequest.ItemDetailWithSchemaRequest obj1 = new AlibabaTbmcItemGetWithSchemaRequest.ItemDetailWithSchemaRequest(); obj1.setOrgNo( "1" ); obj1.setPlatformMerchantCode( "1" ); obj1.setSupplierNo( "1" ); obj1.setSkuCode( "1" ); req.setItemDetailWithSchemaRequest(obj1); AlibabaTbmcItemGetWithSchemaResponse 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 | < alibaba_tbmc_item_get_with_schema_response > < result > < return_code >system_error</ return_code > < return_msg >系统错误</ return_msg > < success >true</ success > < model > < sku_code >123</ sku_code > < sku_name >飘柔</ sku_name > < forest_cat_id >231</ forest_cat_id > < forest_cat_name >水果</ forest_cat_name > < brand >华为</ brand > < item_spec_dtos > < item_spec_d_t_o > < spec_name >规格</ spec_name > < sku_id >123</ sku_id > < spec_sku_code > < string >qwe</ string > </ spec_sku_code > </ item_spec_d_t_o > </ item_spec_dtos > </ model > </ result > </ alibaba_tbmc_item_get_with_schema_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 > |
错误码 | 错误描述 | 解决方案 |
---|