2016-03-22 34 views
1

私はAmazonでmws Feeds API経由で当社製品の最小/最大価格を設定しようとしていますが、エラーが発生しています。誰かが私の間違いを指摘できますか?ここでは、フィードのサンプル内容です:このフィードのAmazon 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

どのエンドポイントにリクエストを送信していますか? EUエンドポイントではなくamazon.comを使用している場合、EURは無効な通貨タイプになります(私が読んでいるものから)[フィード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型です。したがって、フィードが正常に処理されるためには、これらの値が指定されている必要があります。たとえば、上記のフィードは次のようになります。

<?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に新しいです。

関連する問題