2013-04-25 40 views
1

當我嘗試通過亞馬遜MWS API向亞馬遜市場添加產品(通過類型爲「_POST_PRODUCT_DATA_」的SubmitFeed)時,出現以下錯誤:亞馬遜MWS:獲取XML productFeeds的錯誤99019(SubmitFeed,類型爲_POST_PRODUCT_DATA_)

[Marketplace : Amazon.de] A valid value is required in either the "quantity" or "fulfillment_center_id" field.

但沒有「量」或「fulfillment_center_id」場在我Product.xsd,也不是官方文檔。此外,完全相同的Feed在我的亞馬遜MWS沙盒帳戶上無誤地運行。我錯過了什麼?

完整的XML:

<?xml version="1.0" encoding="UTF-8"?> 
<AmazonEnvelope> 
    <Header> 
     <DocumentVersion>1.01</DocumentVersion> 
     <MerchantIdentifier>XXX</MerchantIdentifier> 
    </Header> 
    <MessageType>Product</MessageType> 
    <Message> 
     <MessageID>1</MessageID> 
     <OperationType>Update</OperationType> 
     <Product> 
      <SKU>123456</SKU> 
      <StandardProductID> 
       <Type>EAN</Type> 
       <Value>767715012826</Value> 
      </StandardProductID> 
      <ProductTaxCode>A_GEN_TAX</ProductTaxCode> 
      <Condition> 
       <ConditionType>New</ConditionType> 
       <ConditionNote>Zustand/condition: neu OVP</ConditionNote> 
      </Condition> 
      <DescriptionData> 
       <Title>Bellydance for Fitness and Fun</Title> 
       <Manufacturer>New World 2011</Manufacturer> 
      </DescriptionData> 
      <ProductData> 
       <Music> 
        <ProductType> 
         <MusicPopular> 
          <MediaType>audioCD</MediaType> 
          <NumberOfDiscs>1</NumberOfDiscs> 
          <Genre>New Age</Genre> 
         </MusicPopular> 
        </ProductType> 
       </Music> 
      </ProductData> 
     </Product> 
    </Message> 
</AmazonEnvelope> 

回答

2
  1. 確保你使用正確的 「商人令牌」(NOT商戶ID)在飼料裏的標籤 「MerchantIdentifier」(這不是有據可查) 。

    <MerchantIdentifier>YOUR_MERCHANT_TOKEN</MerchantIdentifier> 
    

    你應該看到Sellercentral > Settings > Account Info頁面上商戶令牌在底部,部分Return Information下方。如果商家令牌不存在(這是一個常見的錯誤),請聯繫賣家支持,並要求正確的商家令牌:Please send me my Merchant Token (NOT merchant id) for use with 3rd party software.

  2. 儘量省略描述產品,尤其是裏面的整個<ProductData>部分附加標籤<Product>元素。每當我指定的<ProductData>部分我有錯誤99019.

+0

可以請你分享附加產品飼料使用XML – 2015-09-10 04:35:11

0

在MWS錯誤信息的字段名稱不匹配的XML結構。我假設他們匹配平面文件(CSV)列,但實際上沒有檢查。

您聲明「我嘗試添加產品」,但我猜測上面的錯誤發生在對庫存Feed進行細分時發生,這就是爲什麼您在Product.xsd中找不到那種類型的任何東西。

相應的XML元素是QuantityFulfillmentCenterID,無論是在Inventory.xsd定義。

+0

當我張貼型_POST_PRODUCT_DATA_的SubmitFeed出現錯誤 - 這是不是庫存料。 – 2013-05-01 15:08:53

+0

而你的''也包含值'Product'而不是'Inventory'?只是詢問,因爲要麼有一個數量或履行中心ID匹配庫存飼料的要求。我的產品Feed沒有,並且它們的處理沒有錯誤。 – Hazzit 2013-05-01 19:41:40

+0

我已經添加了所提交的Feed我的問題 - 在消息類型是「產品」。我知道,錯誤信息將適合於庫存飼料,但似乎當我發佈了一個產品,飼料 – 2013-05-02 07:36:30