Amazon Services China
亚马逊商城网络服务(亚马逊 MWS)文档

Deprecation Notice:

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.

亚马逊 MWS 文档

GetProductCategoriesForASIN

根据 ASIN,返回商品所在的商品分类。

描述

GetProductCategoriesForASIN 操作与 GetProductCategoriesForSKU 操作大体相同,但前者使用 MarketplaceIdASIN 唯一标识商品。

请求参数

名称 描述 必填项
MarketplaceId

商城编码。指明应返回其商品分类结构的商城。

类型:xs:string

ASIN

标识指定商城中的商品。

类型:xs:string

响应元素

GetProductCategoriesForASIN 操作返回的响应元素与 GetProductCategoriesForSKU 的“响应元素”部分中描述的响应元素相同。

示例

查询请求示例

https://mws.amazonservices.com/Products/2011-10-01
?AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ
&Action=GetProductCategoriesForASIN
&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE
&SellerId=A1IMEXAMPLEWRC
&SignatureVersion=2
&Timestamp=2012-12-04T22%3A51%3A51Z
&Version=2011-10-01
&Signature=%2BIEXAMPLE%2FvjuBYraHxZawj6F63rOVHx4PNEXAMPLEs%3D
&SignatureMethod=HmacSHA256
&MarketplaceId=ATVPDKIKX0DER
&ASIN=B002KT3XQM

响应示例

<?xml version="1.0"?>
<GetProductCategoriesForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<GetProductCategoriesForASINResult>
  <Self>
    <ProductCategoryId>2420095011</ProductCategoryId>
    <ProductCategoryName>Compression Shorts</ProductCategoryName>
    <Parent>
      <ProductCategoryId>2419332011</ProductCategoryId>
      <ProductCategoryName>Men</ProductCategoryName>
      <Parent>
        <ProductCategoryId>2371051011</ProductCategoryId>
        <ProductCategoryName>Clothing</ProductCategoryName>
        <Parent>
          <ProductCategoryId>3403201</ProductCategoryId>
          <ProductCategoryName>Bikes & Accessories</ProductCategoryName>
          <Parent>
            <ProductCategoryId>2232464011</ProductCategoryId>
            <ProductCategoryName>Bikes & Scooters</ProductCategoryName>
            <Parent>
              <ProductCategoryId>3375301</ProductCategoryId>
              <ProductCategoryName>Categories</ProductCategoryName>
              <Parent>
                <ProductCategoryId>3375251</ProductCategoryId>
                <ProductCategoryName>Categories</ProductCategoryName>
              </Parent>
            </Parent>
          </Parent>
        </Parent>
      </Parent>
    </Parent>
  </Self>
</GetProductCategoriesForASINResult>
<ResponseMetadata>
  <RequestId>fbce5b62-67cc-4ab8-86f3-EXAMPLE22e4e</RequestId>
</ResponseMetadata>
</GetProductCategoriesForASINResponse>