我在亚马逊的卖家中心有专业帐户。我没有得到测试帐户,我试图获得测试帐户(通过与Amazon.com的技术帐户管理部门联系),但没有成功。所以我得到40美元的信用,并开始尝试开发。我尝试通过提交Feed来添加产品。 请求是下一个
<?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()什么都不返回。我的错在哪里以及它增加了什么地方?
答案 0 :(得分:0)
我发现了问题。我试图插入真实产品的虚构数据数据,它的工作原理。所以正确的xml请求是 mercahnt标识符是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
答案 1 :(得分:0)