API for seller to query the category tree. Support only displaying the categories which seller have permissions to publish products.
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
category_id | Number | 必须 | 509 | parent category ID. To obtain the root categories, setting the category_id = 0 | |
filter_no_permission | Boolean | 必须 | true | filter the categories which seller does not have permission |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
children_category_list | CategoryInfo [] | children category list under category_id | |
|
|||
is_success | Boolean | true | whether success or not |
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliexpressSolutionSellerCategoryTreeQueryRequest req = new AliexpressSolutionSellerCategoryTreeQueryRequest(); req.setCategoryId(509L); req.setFilterNoPermission( true ); AliexpressSolutionSellerCategoryTreeQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 | < aliexpress_solution_seller_category_tree_query_response > < children_category_list > < category_info > < children_category_id >5090301</ children_category_id > < is_leaf_category >true</ is_leaf_category > < level >2</ level > < multi_language_names >{ "de": "Mobiltelefon", "ru": "Мобильные телефоны", "pt": "Telefonia", "in": "Ponsel", "en": "Mobile Phones", "it": "Telefoni cellulari", "fr": "Smartphones", "es": "Smartphones", "tr": "Cep Telefonu", "nl": "Mobiele telefoons" }</ multi_language_names > </ category_info > </ children_category_list > < is_success >true</ is_success > </ aliexpress_solution_seller_category_tree_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 > |
错误码 | 错误描述 | 解决方案 |
---|