我正在使用亚马逊的 MWS 提交产品库存,但它似乎并没有工作,尽管它说它有。
我使用“SubmitFeed”提交我已粘贴在下面的测试提要 XML;
<?xml version="1.0" encoding="UTF-8 "?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>A1BJ5TNE5I3MUD</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>true</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Insert</OperationType>
<Product>
<SKU>56789</SKU>
<StandardProductID>
<Type>ASIN</Type>
<Value>B0EXAMPLEG</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">99.99</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>
这似乎工作正常,它返回“FeedSubmissionId”等......
<?xml version="1.0"?>
<SubmitFeedResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<SubmitFeedResult>
<FeedSubmissionInfo>
<FeedSubmissionId>3008008200</FeedSubmissionId>
<FeedType>_POST_PRODUCT_DATA_</FeedType>
<SubmittedDate>2012-03-29T11:12:04+00:00</SubmittedDate>
<FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus>
</FeedSubmissionInfo>
</SubmitFeedResult>
<ResponseMetadata>
<RequestId>9ff22ff1-e86b-45a1-b1ce-4b873f45e90a</RequestId>
</ResponseMetadata>
</SubmitFeedResponse>
然后我使用“GetFeedSubmissionList”检查提要提交的状态,它返回“ DONE ”....
<?xml version="1.0"?>
<GetFeedSubmissionListResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<GetFeedSubmissionListResult>
<NextToken />
<HasNext>false</HasNext>
<FeedSubmissionInfo>
<FeedSubmissionId>3008008200</FeedSubmissionId>
<FeedType>_POST_PRODUCT_DATA_</FeedType>
<SubmittedDate>2012-03-29T11:12:04+00:00</SubmittedDate>
<FeedProcessingStatus>_DONE_</FeedProcessingStatus>
<StartedProcessingDate>2012-03-29T11:12:13+00:00</StartedProcessingDate>
<CompletedProcessingDate>2012-03-29T11:12:33+00:00</CompletedProcessingDate>
</FeedSubmissionInfo>
</GetFeedSubmissionListResult>
<ResponseMetadata>
<RequestId>4afd9b3d-33c6-4c15-bbe1-51304dc1cd24</RequestId>
</ResponseMetadata>
</GetFeedSubmissionListResponse>
但是当我登录到卖家中心并查看库存时,测试产品不在那里。我似乎无法在任何地方找到它 - 那么它到底提交到哪里?我绝对没有混淆任何商家 ID - 因为我是通过同一个帐户进行的,授权开发者帐户使用卖家帐户等。
有什么我做的不对吗?我需要调用另一个函数来提交数据吗?
这真的很令人沮丧,因为亚马逊的文档太糟糕了。多亏了 Stackoverflow 和那里的随机博客文章,我实际上已经走到了这一步。