亚马逊MWS submitFeed API失败

时间:2017-08-04 13:17:41

标签: amazon-web-services amazon-mws

我正在尝试使用MWS submitFeed在亚马逊上添加产品。当我进行API调用时,它返回以下错误

SKU RGDSP *********,缺少属性product_type。 SKU RGDSP *********与任何ASIN都不匹配。创建新的ASIN需要以下缺少的属性:product_type。 Feed ID:0。有关详细信息,请参阅http://sellercentral.amazon.in/gp/errorcode/200692370

如果我将带有某些值的ProductType添加到脚本中,则会发现从元素'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>

请妥善解决此问题。

感谢。

1 个答案:

答案 0 :(得分:0)

您的XML有效(除了缺少最终</Message></AmazonEnvelope>

要将产品添加到当前不存在的Amazon,您需要提供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>