amazon-mws - 通过提交 Feed 的亚马逊添加产品流程

标签 amazon-mws

我在亚马逊卖家中心有专业账户。我没有获得测试账户,我试图获得测试账户(通过联系 Amazon.com 的技术账户管理)但没有成功。所以我获得了 40 美元的信用并开始尝试开发。我尝试通过提交提要来添加产品。 请求是下一个

<?xml version="1.0"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>A2HGOM5XPL5UHF</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <PurgeAndReplace>false</PurgeAndReplace>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
        <Product>
            <SKU>11MYSKU11</SKU>
            <StandardProductID>
                <Type>ASIN</Type>
                <Value>B005S25V5Z</Value>
            </StandardProductID>
            <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
            <DescriptionData>
                <Title>Example product 2</Title>
                <Brand>Example product Brand</Brand>
                <Description>A really cool product with 2 batteries and widgets</Description>
                <BulletPoint>Example Bullet Point 1</BulletPoint>
                <BulletPoint>Example Bullet Point 2</BulletPoint>
                <PackageWeight unitOfMeasure="OZ">44</PackageWeight>
                <MSRP currency="USD">111.11</MSRP>
                <Manufacturer>ACME</Manufacturer>
                <MfrPartNumber>123456789</MfrPartNumber>
                <SearchTerms>123456789</SearchTerms>
                <SearchTerms>ACME</SearchTerms>
                <PlatinumKeywords>155385011</PlatinumKeywords>
                <ItemType>Item_Type_Enum</ItemType>
                <IsGiftWrapAvailable>false</IsGiftWrapAvailable>
                <IsGiftMessageAvailable>false</IsGiftMessageAvailable>
            </DescriptionData>
            <ProductData>
            <Health>
                <ProductType>
                    <HealthMisc>
                        <Ingredients>Example Ingredients</Ingredients>
                        <Directions>Example Directions</Directions>
                    </HealthMisc>
                </ProductType>
            </Health>
        </Product>
    </Message>
</AmazonEnvelope>

然后我尝试 GetSubmissionList() 它首先返回请求状态为 SUBMIT 然后是 DONE。但是我找不到它添加的位置。我的店里没有产品,尽管我已按要求插入了我的凭据。实际上,GetFeedSubmissionResult() 不返回任何内容。我的错在什么地方,又增加到什么地方了?

最佳答案

我发现了问题。我尝试插入真实产品的虚构数据,但它有效。所以正确的xml请求是 mercahnt identifier为mercant id。

<?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>xxxxxxxxxx</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <PurgeAndReplace>false</PurgeAndReplace>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>Update</OperationType>
        <Product>
            <SKU>RO7WA11930KB1CASA</SKU>
            <StandardProductID>
                <Type>UPC</Type>
                <Value>4015643103921</Value>
            </StandardProductID>
            <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
            <DescriptionData>
                <Title>Example Product Title</Title>
                <Brand>Example Product Brand</Brand>
                <Description>This is an example product description.</Description>
                <BulletPoint>Example Bullet Point 1</BulletPoint>
                <BulletPoint>Example Bullet Point 2</BulletPoint>
                <MSRP currency="USD">25.19</MSRP>
                <Manufacturer>Example Product Manufacturer</Manufacturer>
                <ItemType>example-item-type</ItemType>
            </DescriptionData>
            <ProductData>
                <Health>
                    <ProductType>
                        <HealthMisc>
                            <Ingredients>Example Ingredients</Ingredients>
                            <Directions>Example Directions</Directions>
                        </HealthMisc>
                    </ProductType>
                </Health>
            </ProductData>
        </Product>
    </Message>
</AmazonEnvelope>

结果 - 新产品添加到 Inventary

关于amazon-mws - 通过提交 Feed 的亚马逊添加产品流程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18248174/

相关文章:

amazon-mws - MWS : Is there a limit on the number of messages in an update request?

javascript - 亚马逊 MWS 上传数据中 "<Header>"缺少标签 "<AmazonEnvelope>"

python - 亚马逊 API MWS 签名不匹配

php - 亚马逊 MWS (PHP) - 请求如何工作

php - 收到亚马逊商城 API 请求的内部错误

report - 如何在亚马逊 MWS 订单报告中包含已取消的订单

amazon-mws - 亚马逊MWS : getting error 99019 for XML productFeeds (SubmitFeed of type _POST_PRODUCT_DATA_)

php - 亚马逊MWS PHP5.3错误: Timestamp Must Follow ISO8601

php - 获得对亚马逊 FBA 数据库的访问权限