2017-08-04 162 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”的错误。 我没有与模板相比较我的价值观,但仍然收到这个错误。 –