产品查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
tenant_id | Number | 必须 | 2 | 租户id | |
source_value | String | 必须 | 123 | 来源唯一值 | |
data_source | String | 必须 | alibaba | 外部来源 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaPurProductGetRequest req = new AlibabaPurProductGetRequest(); req.setTenantId(2L); req.setSourceValue( "123" ); req.setDataSource( "alibaba" ); AlibabaPurProductGetResponse 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 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | < alibaba_pur_product_get_response > < result > < content > < category_use_id >90</ category_use_id > < order_type >QUANTITY</ order_type > < img_storage_type >demo</ img_storage_type > < recommendation >推荐描述</ recommendation > < front_category_id >前台类目id</ front_category_id > < product_name >产品名称</ product_name > < source_info >json字符串</ source_info > < source_category_id >外部品类id</ source_category_id > < source_category_name >来源品类名称</ source_category_name > < buyer_work_no >123</ buyer_work_no > < brand_name >品牌名称</ brand_name > < catalog_category_id >1</ catalog_category_id > < category_code >品类code</ category_code > < product_desc >产品描述</ product_desc > < unit >个</ unit > < source_type >sourceType</ source_type > < brand_id >1</ brand_id > < tenant_id >2</ tenant_id > < source_value >123</ source_value > < data_source >alibaba</ data_source > < category_id >1</ category_id > < purchase_channel >CATALOG</ purchase_channel > < product_attr_value_list >demo</ product_attr_value_list > < product_code >123</ product_code > < security_id >dakdasdl</ security_id > </ content > < error >demo</ error > < message >操作成功</ message > < is_success >true</ is_success > < operate_code >operateCode</ operate_code > </ result > </ alibaba_pur_product_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 > |
错误码 | 错误描述 | 解决方案 |
---|