2016-03-22 112 views
1

我試圖通過mws Feeds API在亞馬遜上設置我們產品的最低/最高價格,但我不斷收到錯誤。請有人指出我的錯誤嗎?這裏有一個飼料樣本內容:該飼料亞馬遜MWS無法更新最低/最高價格

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

這個處理結果是:

<?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 &quot;Add Products via Upload&quot; page in the &quot;Check My File&quot; 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 &quot;63.99&quot; 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 &quot;12.99&quot; 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

謝謝!

+0

您提交請求的端點是什麼?如果您使用的是amazon.com而不是歐盟端點,那麼EUR將是一種無效的貨幣類型(從我正在閱讀的內容中)[Feeds API](https://images-na.ssl-images-amazon.com/images /G/01/mwsportal/doc/en_US/bde/MWSFeedsApiReference._V135478122_.pdf)可能會爲您提供一些有用的信息。 –

+0

謝謝您的回覆。端點不是問題。我意識到MinimumSellerAllowedPrice/MaximumSellerAllowedPrice的類型是StringOverrideCurrencyAmount。因此,將值改爲12,99和63,99可以解決問題。 – user3307762

+0

很高興聽到您解決了您的問題。 –

回答

3

MaximumSellerAllowedPrice & MinimumSellerAllowedPrice元素的類型爲StringOverrideCurrencyAmount。因此,爲了成功處理Feed,這些值必須按照規定進行處理。例如,上面的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> 

請注意數值是如何從12.99變爲12.99以及從63.99變爲63,99的。

我是新來的stackoverflow,所以我不知道我應該/可以回答我自己的問題。