Added endpoint /catalog/v0/categories
@@ -68,3 +68,32 @@ class Catalog(Client):
if 'Query' in kwargs:
kwargs.update({'Query': urllib.parse.quote_plus(kwargs.pop('Query'))})
return self._request(kwargs.pop('path'), params=kwargs)
+
+ @sp_endpoint('/catalog/v0/categories')
+ def list_categories(self, **kwargs) -> ApiResponse:
+ """
+ list_categories(self, **kwargs) -> ApiResponse
+ Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU
+
+ **Usage Plan:**
+
+ ====================================== ==============
+ Rate (requests per second) Burst
+ ====================================== ==============
+ 1 40
+ ====================================== ==============
+
+
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
+
+ Args:
+ key MarketplaceId: str
+ key ASIN: str
+ key SellerSKU: str
+
+ Returns:
+ ListCatalogCategoriesResponse:
+ """
+ if 'Query' in kwargs:
+ kwargs.update({'Query': urllib.parse.quote_plus(kwargs.pop('Query'))})
+ return self._request(kwargs.pop('path'), params=kwargs)
