2017-08-04 161 views
0

我想補充的產品使用MWS submitFeed亞馬遜。當我做API調用返回以下錯誤亞馬遜MWS submitFeed API失敗

SKU RGDSP *********,缺少的屬性產品類型。 SKU RGDSP *********不匹配任何ASIN。創建新的ASIN需要以下缺少的屬性:product_type。訂閱ID:0。有關詳細信息,請參閱http://sellercentral.amazon.in/gp/errorcode/200692370

如果我增加一些價值ProductType到腳本它thorws 無效的含量被發現開始元素「ProductType」錯誤。

下面是我的XML代碼

<?xml version="1.0" encoding="iso-8859-1"?> 
    <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> 
    <Header> 
    <DocumentVersion>1.01</DocumentVersion> 
    <MerchantIdentifier>A28XP9******</MerchantIdentifier> 
</Header> 
    <MessageType>Product</MessageType> 
    <PurgeAndReplace>false</PurgeAndReplace> 
<Message> 
<MessageID>1</MessageID> 
<OperationType>Update</OperationType> 
<Product> 
    <SKU>SKU RGDSP*********</SKU> 

    <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode> 
    <DescriptionData> 
    <Title>Full Sleeves Kurta Pyjama Set For Men</Title> 
    <Brand> Brand </Brand> 
    <Description>Look your ethnic best when you adorn this kurta phyjama by RG Designers. Made from Cotton Fabric , it would lend you a glamorous look that is just perfect for any Occassion. self textured design kurta with White churidaar bottom.</Description> 
    <BulletPoint>Made out of 100% Cotton fabric, Regular Fit, Full Sleeve, Chinese Collar Kurta For Men , Regular Fit white colored Pyjama with drawstring closure,</BulletPoint> 
    <MSRP currency="INR">25.19</MSRP> 
    <Manufacturer>Brand</Manufacturer> 
    <ItemType>Ethnicwear</ItemType> 
    </DescriptionData> 

    </Product> 
</Message> 
</AmazonEnvelope> 

請提供一些幫助解決這個問題。

謝謝。

回答

0

你的XML是有效的(除了它有最後</Message></AmazonEnvelope>缺失)

要將產品添加到亞馬遜這不是目前那裏,你將需要提供ProductType結構。以下是包含一個最小有效XML:只有更改後</DescriptionData>

<?xml version="1.0" encoding="iso-8859-1"?> 
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> 
    <Header> 
     <DocumentVersion>1.01</DocumentVersion> 
     <MerchantIdentifier>A28XP9******</MerchantIdentifier> 
    </Header> 
    <MessageType>Product</MessageType> 
    <PurgeAndReplace>false</PurgeAndReplace> 
    <Message> 
     <MessageID>1</MessageID> 
     <OperationType>Update</OperationType> 
     <Product> 
      <SKU>SKU RGDSP*********</SKU> 

      <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode> 
      <DescriptionData> 
       <Title>Full Sleeves Kurta Pyjama Set For Men</Title> 
       <Brand> Brand </Brand> 
       <Description>Look your ethnic best when you adorn this kurta phyjama by RG Designers. Made from Cotton Fabric , it would lend you a glamorous look that is just perfect for any Occassion. self textured design kurta with White churidaar bottom.</Description> 
       <BulletPoint>Made out of 100% Cotton fabric, Regular Fit, Full Sleeve, Chinese Collar Kurta For Men , Regular Fit white colored Pyjama with drawstring closure,</BulletPoint> 
       <MSRP currency="INR">25.19</MSRP> 
       <Manufacturer>Brand</Manufacturer> 
       <ItemType>Ethnicwear</ItemType> 

      </DescriptionData> 
      <ProductData> 
       <Clothing> 
        <ClassificationData> 
         <ClothingType>Sleepwear</ClothingType> 
         <Department>x</Department> 
         <StyleKeywords>x</StyleKeywords> 
        </ClassificationData> 
       </Clothing> 
      </ProductData> 
     </Product> 
    </Message> 
</AmazonEnvelope> 
+0

謝謝@hazzit我能夠通過添加productData來修復該部分。但我仍然得到「某些屬性缺少SKU:[RGDSP10613_PEACH-36]。對於更多詳細信息,請參閱http://sellercentral.amazon.in/gp/errorcode/8058」的錯誤。 我沒有與模板相比較我的價值觀,但仍然收到這個錯誤。 –