我一直在看那些让我挠头的文档,想知道如何提交一个XML提要,它可以做一些简单的事情,比如更改库存项的价格
我一直在看他们给出的示例XML提要,如本文第15页所示
link
,因为这是我发现的唯一一个例子,我不知道如何在我的卖家库存中插入或编辑产品。如何做到这一点?
给出的示例
POST /?Marketplace=ATVExampleDER
& Action=SubmitFeed
&Merchant=A1XExample5E6
&FeedType=_POST_PRODUCT_DATA_
&AWSAccessKeyId=0PB842ExampleN4ZTR2
&Version=2009-01-01
&Signature=SvSExamplefZpSignaturex2cs%3D
&SignatureVersion=2
&SignatureMethod=HmacSHA256
&Timestamp=2009-01-26T23%3A51%3A31.315Z HTTP/1.1
Content-Type: text/xml; charset=iso-8859-1
Content-MD5: ExampleMd5HashOfHttpBodyAsPerRfc2616Example
User-Agent: MWSTestsuite/2009-03-05 (Language=Java/1.6.0_11/50.0/
Sun Microsystems Inc.; Platform=Linux/i386/2.4.21-50a6smp;
MWSClientVersion=2009-03-09)
Host: mws.amazonservices.com
Transfer-Encoding: chunked
Feed内容
<?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>M_EXAMPLE_123456</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</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">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>