Php 如何通过MWS xml提要将产品添加到amazon sellers帐户

Php 如何通过MWS xml提要将产品添加到amazon sellers帐户,php,amazon-mws,Php,Amazon Mws,我正在尝试通过xml提要添加产品,但仍然无法添加。我通过amazon scratch pad试用了它,它的显示状态已完成,但当我在那个里检查卖家帐户时,它并没有显示出来。您还可以查看下面我试图提交的xml代码 <?xml version="1.0" ?> <AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amznenvelope

我正在尝试通过xml提要添加产品,但仍然无法添加。我通过amazon scratch pad试用了它,它的显示状态已完成,但当我在那个里检查卖家帐户时,它并没有显示出来。您还可以查看下面我试图提交的xml代码

<?xml version="1.0" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amznenvelope.xsd">
    <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>M_SELLER_354577</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <PurgeAndReplace>true</PurgeAndReplace>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
        <Product>
            <SKU>1Z-500ABR-FLAT</SKU>
            <ProductTaxCode>A_GEN_TAX</ProductTaxCode>
            <LaunchDate>2005-07-26T00:00:01</LaunchDate>
            <DescriptionData>
                <Title>Lyric 500 tc Queen Flat Sheet, Ivory</Title>
                <Brand>Peacock Alley</Brand>
                <Description>Lyric sheeting by Peacock Alley is the epitome of simple and classic elegance. The flat sheets
    and pillowcases feature a double row of hemstitching. The fitted sheets fit mattresses up to 21 inches deep.
    The sheets are shown at left with tone on tone monogramming, please call for monogramming details and prices.
    Please note, gift wrapping and overnight shipping are not available for this style.</Description>
                <BulletPoint>made in Italy</BulletPoint>
                <BulletPoint>500 thread count</BulletPoint>
                <BulletPoint>plain weave (percale)</BulletPoint>
                <BulletPoint>100% Egyptian cotton</BulletPoint>
                <Manufacturer>Peacock Alley</Manufacturer>
                <SearchTerms>bedding</SearchTerms>
                <SearchTerms>Sheets</SearchTerms>
                <ItemType>flat-sheets</ItemType>
                <IsGiftWrapAvailable>false</IsGiftWrapAvailable>
                <IsGiftMessageAvailable>false</IsGiftMessageAvailable>
                <RecommendedBrowseNode>60583031</RecommendedBrowseNode>
                <RecommendedBrowseNode>60576021</RecommendedBrowseNode>
            </DescriptionData>
            <ProductData>
            <Home>
            <Parentage>variation-parent</Parentage>
            <VariationData>
            <VariationTheme>Size-Color</VariationTheme>
            </VariationData>
            <Material>cotton</Material>
            <ThreadCount>500</ThreadCount>
            </Home>
            </ProductData>
        </Product>
    </Message>
</AmazonEnvelope>

您的XML无法根据我的XSD进行验证。为了使其生效,我必须更改两件事:

将XML标头中的amznevelope.xsd更改为amzn-envelope.xsd 改变结构


请注意,提交单个提要不足以在Amazon上成功创建新产品

不要使用perge并将选项替换为true值,如果您设置true,那么它将从amazon卖家帐户中删除所有产品

<PurgeAndReplace>true</PurgeAndReplace>
<PurgeAndReplace>true</PurgeAndReplace>