如何将多个产品发送到亚马逊商城?

问题描述 投票:0回答:1

我正在开发一个库存控制系统,客户希望将他们的列表导出到他们的亚马逊商城账户。到目前为止,我已经遇到了 SubmitFeed 端点。但是,我看到的所有示例都只显示了提交单个产品的示例。

正如亚马逊的文档所述,您一次只能拥有这么多活动提要,我原以为您可以在一个提要中发送多个产品,这样您就不会用尽提要限制,因为我想超级卖家会想要一次列出数十种甚至数百种产品。

我目前正在发送包含一个

<Message>
元素的 XML 文档,即

<?xml version="1.0" encoding="UTF-8"?>
<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>

<MessageID>
元素表明我可以在提要中指定多个“消息”,但我不确定语法,因为我希望
<Message>
位于
<Messages>
元素内,我在其中可以指定多个消息。

我如何指定额外的消息,从而指定额外的产品?还是我走错路了?

amazon-mws
1个回答
8
投票

您需要一次发送多个

Message
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>

一个 Feed 中的所有消息都必须具有相同的

MessageType
(例如,您不能将产品消息与库存数据混合使用)并且具有此 Feed 独有的
MessageID

© www.soinside.com 2019 - 2024. All rights reserved.