2014-10-28 65 views
1

instructions for OutOfStockControlPreference後,我將它設置爲true,甚至使用ShowOutOfStockControlPreference進行驗證。帶數量0的eBay API OutOfStockControlPreference

接下來,我的電話是:

<?xml version="1.0" encoding="UTF-8"?> 
<ReviseInventoryStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
    <RequesterCredentials> 
     <eBayAuthToken>-- removed --</eBayAuthToken> 
    </RequesterCredentials> 
    <InventoryStatus> 
     <ItemID>**********</ItemID> 
     <Quantity>0</Quantity> 
    </InventoryStatus> 
</ReviseInventoryStatusRequest> 

易趣返回一個515錯誤:

Array(
    [ReviseInventoryStatusResponse] => Array(
      [Timestamp] => 2014-10-28T16:05:19.176Z 
      [Ack] => Failure 
      [Errors] => Array(
       [ShortMessage] => Quantity is not valid. 
       [LongMessage] => The quantity must be a valid number greater than 0. 
       [ErrorCode] => 515 
       [SeverityCode] => Error 
       [ErrorParameters] => Array(
         [0] => Array(
           [Value] => ********** 
          ) 
         [1] => Array(
           [Value] => Array(
            ) 
          ) 
        ) 
       [ErrorClassification] => RequestError 
      ) 
     [Version] => 891 
     [Build] => E891_UNI_API5_17051033_R1 
    ) 
) 

回答

1

這是unsupported in the eBay sandbox,但它活在eBay工作。

+0

感謝您的支持。我真的很好奇爲什麼很難複製沙箱中的所有功能。似乎只有兩個運行相同應用程序的環境,不應該太難。唉,它是。 – 2016-04-18 10:56:39