3

我在亚马逊卖家中心有专业账户。我没有获得测试账户,我试图获得测试账户(通过与 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() 什么也不返回。我的错在哪里,又加到了什么地方?

4

2 回答 2

0

我发现了问题。我试图插入真实产品的虚构数据数据并且它有效。所以正确的 xml 请求是并且商户标识符是商户 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>

结果 - 新产品添加到库存

于 2013-08-15T09:01:25.713 回答