我正在研究库存控制系统,客户希望将他们的商品导出到他们的亚马逊商城帐户.到目前为止,我遇到了SubmitFeed端点.但是,我看到的所有示例仅显示了提交单个产品的示例.
正如亚马逊的文档所述,你一次只能拥有这么多活跃的Feed,我原本以为你能够在一个Feed中发送多个产品,这样你就不会耗尽Feed限制,因为我想卖家会想要的一次列出几十个甚至几百个产品.
我目前正在发送包含一个<Message>元素的XML文档,即
<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>
Run Code Online (Sandbox Code Playgroud)
该<MessageID>元素表明我能够在feed中指定多个"消息",但我不确定语法,因为我希望<Message>它在一个<Messages>元素中,我可以在其中指定多个消息.
如何指定其他消息以及其他产品?还是我走错了轨道?
你需要Message在一个发送多个s AmazonEnvelope:
<?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>MERCHANTID</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
....
</Product>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Update</OperationType>
<Product>
....
</Product>
</Message>
</AmazonEnvelope>
Run Code Online (Sandbox Code Playgroud)
一个Feed中的所有消息都必须相同MessageType(例如,您不能将产品消息与Inventory数据混合在一起)并且具有MessageID该Feed 的唯一消息.
| 归档时间: |
|
| 查看次数: |
996 次 |
| 最近记录: |