Amazon Marketplace Web Service (MWS) will no longer be available after March 31, 2024. All MWS developers must migrate to Selling Partner API (SP-API) to avoid service disruptions. Refer to the Migration Hub for more information.
根据 SellerSKU,返回商品所在的商品分类。
GetProductCategoriesForSKU 操作会返回商品的商品分类名称以及编码,包括商城根目录下的父分类。
名称 | 描述 | 必填项 |
---|---|---|
MarketplaceId |
商城编码。指定返回商品分类结构的商城。 类型:xs:string |
是 |
SellerSKU |
用于标识指定商城中的商品。SellerSKU 由您的 SellerId 限定,您提交的每个亚马逊商城网络服务(亚马逊 MWS)操作都需要包含您的 SellerId。 类型:xs:string |
是 |
名称 | 描述 |
---|---|
Self | 包含您所提交的商品的 ProductCategoryId,还包含商城根目录下该商品各个父分类的 ProductCategoryId。 |
ProductCategoryId | 商品分类编码(或分类节点)。 |
ProductCategoryName | 商品分类(或分类节点)的名称。 |
https://mws.amazonservices.com/Products/2011-10-01 ?AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ &Action=GetProductCategoriesForSKU &MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE &SellerId=A1IMEXAMPLEWRC &SignatureVersion=2 &Timestamp=2012-12-04T22%3A48%3A25Z &Version=2011-10-01 &Signature=nLBMEXAMPLE6ASMKD1YTcNk7E8vW6Qzha8cEXAMPLEY%3D &SignatureMethod=HmacSHA256 &MarketplaceId=ATVPDKIKX0DER &SellerSKU=SKU2468
<?xml version="1.0"?> <GetProductCategoriesForSKUResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01"> <GetProductCategoriesForSKUResult> <Self> <ProductCategoryId>271578011</ProductCategoryId> <ProductCategoryName>Project Management</ProductCategoryName> <Parent> <ProductCategoryId>2675</ProductCategoryId> <ProductCategoryName>Management & Leadership</ProductCategoryName> <Parent> <ProductCategoryId>3</ProductCategoryId> <ProductCategoryName>Business & Investing</ProductCategoryName> <Parent> <ProductCategoryId>1000</ProductCategoryId> <ProductCategoryName>Subjects</ProductCategoryName> <Parent> <ProductCategoryId>283155</ProductCategoryId> <ProductCategoryName>Subjects</ProductCategoryName> </Parent> </Parent> </Parent> </Parent> </Self> <Self> <ProductCategoryId>684248011</ProductCategoryId> <ProductCategoryName>Management</ProductCategoryName> <Parent> <ProductCategoryId>468220</ProductCategoryId> <ProductCategoryName>Business & Finance</ProductCategoryName> <Parent> <ProductCategoryId>465600</ProductCategoryId> <ProductCategoryName>New, Used & Rental Textbooks</ProductCategoryName> <Parent> <ProductCategoryId>2349030011</ProductCategoryId> <ProductCategoryName>Specialty Boutique</ProductCategoryName> <Parent> <ProductCategoryId>283155</ProductCategoryId> <ProductCategoryName>Specialty Boutique</ProductCategoryName> </Parent> </Parent> </Parent> </Parent> </Self> </GetProductCategoriesForSKUResult> <ResponseMetadata> <RequestId>e058aabd-b4c3-48ba-9bfa-EXAMPLE9a267</RequestId> </ResponseMetadata> </GetProductCategoriesForSKUResponse>