【发布时间】:2016-03-22 16:08:51
【问题描述】:
我正在尝试通过 mws Feeds API 在亚马逊上为我们的产品设置最低/最高价格,但我不断收到错误消息。有人可以指出我的错误吗?以下是 Feed 的示例内容:
<?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>IDENTIFIER_VALUE</MerchantIdentifier>
</Header>
<MessageType>Price</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Price>
<SKU>SKU_VALUE</SKU>
<MinimumSellerAllowedPrice currency="EUR">12.99</MinimumSellerAllowedPrice>
<MaximumSellerAllowedPrice currency="EUR">63.99</MaximumSellerAllowedPrice>
</Price>
</Message>
</AmazonEnvelope>
此 Feed 的处理结果为:
<?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.02</DocumentVersion>
<MerchantIdentifier>IDENTIFIER_VALUE</MerchantIdentifier>
</Header>
<MessageType>ProcessingReport</MessageType>
<Message>
<MessageID>1</MessageID>
<ProcessingReport>
<DocumentTransactionID>XXXXXXXXXX</DocumentTransactionID>
<StatusCode>Complete</StatusCode>
<ProcessingSummary MarketplaceName="www.amazon.de">
<MessagesProcessed>1</MessagesProcessed>
<MessagesSuccessful>0</MessagesSuccessful>
<MessagesWithError>2</MessagesWithError>
<MessagesWithWarning>0</MessagesWithWarning>
</ProcessingSummary>
<Result>
<MessageID>0</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>90215</ResultMessageCode>
<ResultDescription>100% of the products in your file did not process successfully. We recommend using Check My File to help you identify and correct common listing errors before updating your inventory. To use Check My File, upload your file on the "Add Products via Upload" page in the "Check My File" section.</ResultDescription>
</Result>
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>90111</ResultMessageCode>
<ResultDescription>The Message/Price/MaximumSellerAllowedPrice field contains an invalid value: 63.99. The value "63.99" is not a valid CURRENCY.</ResultDescription>
<AdditionalInfo>
<SKU>SKU_VALUE</SKU>
</AdditionalInfo>
</Result>
<Result>
<MessageID>1</MessageID>
<ResultCode>Error</ResultCode>
<ResultMessageCode>90111</ResultMessageCode>
<ResultDescription>The Message/Price/MinimumSellerAllowedPrice field contains an invalid value: 12.99. The value "12.99" is not a valid CURRENCY.</ResultDescription>
<AdditionalInfo>
<SKU>SKU_VALUE</SKU>
</AdditionalInfo>
</Result>
</ProcessingReport>
</Message>
</AmazonEnvelope>
xsd 在这里:https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/Price.xsd
谢谢!
【问题讨论】:
-
您将请求提交到哪个端点?如果您使用的是 amazon.com 而不是欧盟端点,则 EUR 将是无效的货币类型(据我所知)Feeds API 可能会为您提供一些有用的信息。
-
感谢您的回复。端点不是问题。我意识到 MinimumSellerAllowedPrice/MaximumSellerAllowedPrice 的类型是 StringOverrideCurrencyAmount。因此,将值更改为 12,99 和 63,99 即可解决问题。
-
很高兴听到您解决了问题。
-
如果已解决,您可能需要将问题标记为已回答,这样它就不会出现在未回答的问题列表中。
标签: xml xsd amazon-mws