question

he_40098 avatar image
0 Likes"
he_40098 asked

Why would it return this error?

when i use interface get_item_aspects_for_category ,it return {"errors":[{"errorId":62005,"domain":"API_TAXONOMY","category":"REQUEST","message":"The specified category ID does not belong to specified category tree."}]}

help
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
sanjiv_developersupport avatar image
0 Likes"
sanjiv_developersupport answered

Hi @he_40098,


To get the all of the latest and supported category hierarchy for a eBay marketplace, please follow the steps mentioned below:-


1. You can use GetDefaultCategoryTreeId API call to retrieve a reference to the default category tree associated with the specified eBay marketplace ID.


Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getDefaultCategoryTreeId-

2. Make a GetCategoryTree call to retrieve the complete category tree that is identified by the category_tree_id parameter.


Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getCategoryTree-


3. Find the category with leafCategoryTreeNode as true. This type of category is called leaf category and you can use this type of CategoryIDs in your further requests.


To learn more about the category tree structure, please take an overview of the Taxonomy API by going through the link given below:


Ref: https://developer.ebay.com/api-docs/commerce/taxonomy/static/overview.html


Best Regards,

eBay Developer Support

· 1
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks for the reply ,But I did follow the steps above.

i used the step 1 for get_default_category_tree_id?marketplace_id=EBAY_US and got category_tree_id =0

Then I used step 2 to get the complete category tree.

finally i used step 3 ,in categoryId=1249 childCategoryTreeNodes, get_item_aspects_for_category?category_id=38583 can return normally but category_id=187 return the title err

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.