繁体   English   中英

在 Amazon SP-API 上发送文档提要时出错

[英]Error while sending document feed on Amazon SP-API

我正在尝试创建一个提要并在此提要中发送一个 XML 文件。
当我发送 XML 文件时,提要处理文件并且 API 将返回给我:

{
    "processingEndTime": "2022-06-28T08:12:12+00:00",
    "processingStatus": "DONE",
    "marketplaceIds": [
        "A13V1IB3VIYZZH"
    ],
    "feedId": myFeedId,
    "feedType": "POST_PRODUCT_DATA",
    "createdTime": "2022-06-28T08:10:39+00:00",
    "processingStartTime": "2022-06-28T08:10:46+00:00",
    "resultFeedDocumentId": myResultFeedDocumentId
} 

通过此响应,我假设 XML 文件已通过 Amazon SP-API 成功发送。

但是当我得到提要处理报告时( https://developer-docs.amazon.com/sp-api/docs/feeds-api-v2021-06-30-use-case-guide#step-6-get -information-for-retrieving-the-feed-processing-report )它返回给我这个错误:

SKU 43, Missing Attributes publication_date. SKU 43 doesn't match any ASINs. Make sure that all standard product ids (such as UPC, ISBN, EAN, or JAN codes) are correct. To create a new ASIN, include the following attributes: publication_date. Feed ID: 0. For more troubleshooting help, see http://sellercentral.amazon.fr/gp/errorcode/200692370

我在文档上进行了搜索,但找不到有关该字段的任何信息: publication_date

注意:我检查了我的 XML 文件,并且已经发送了<LaunchDate><ReleaseDate>

这是我发送的 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>xxxxxxxx</MerchantIdentifier>
    </Header>
    <MessageType>Product</MessageType>
    <PurgeAndReplace>false</PurgeAndReplace>
    <Message>
        <MessageID>1</MessageID>
        <OperationType>PartialUpdate</OperationType>
        <Product>
            <SKU>43</SKU>
            <StandardProductID>
                <Type>ISBN</Type>
                <Value>xxxxxxxx</Value>
            </StandardProductID>
            <LaunchDate>2022-06-28T10:34:15</LaunchDate>
            <ReleaseDate>2013-06-17T00:00:00</ReleaseDate>
            <Condition>
                <ConditionType>New</ConditionType>
            </Condition>
            <ItemPackageQuantity>1</ItemPackageQuantity>
            <NumberOfItems>1</NumberOfItems>
            <DescriptionData>
                <Title>xxxxxxxx</Title>
                <Brand>xxxxxxxx</Brand>
                <MSRP currency="EUR">25</MSRP>
                <ItemType>Book</ItemType>
            </DescriptionData>
            <ProductData>
                <Books>
                    <ProductType>
                        <BooksMisc>
                            <Binding>School</Binding>
                            <Language>French</Language>
                            <NumberOfPages>302</NumberOfPages>
                            <Format>standard_edition</Format>
                        </BooksMisc>
                    </ProductType>
                </Books>
            </ProductData>
        </Product>
    </Message>
</AmazonEnvelope>

我找到了我的问题的答案,如果有一天有人会遇到和我一样的问题。

我收到此错误是因为我的 XML缺少必需的信息(例如 publication_date),即使 XSD 没有给我错误。

您可以在您的亚马逊卖家账户 > 目录 > 填写您的草稿中查看缺失的信息

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM