2016-04-27 52 views
0

我嘗試使用GetSellerTransactions操作來接收事務,但是我遇到了一個問題。操作響應不包括TransactionArray.Transaction.Item.ListingDetails.ViewItemURL,但它必須根據this文檔頁面。Ebay GetSellerTransactions操作不返回XML元素

有人遇到這個問題?醫生說,這是返回「Coditionally」,但什麼時候,爲什麼不返回信息...

的操作響應:

... 
      <Item> 
       <AutoPay>false</AutoPay> 
       <BuyItNowPrice currencyID="GBP">20.0</BuyItNowPrice> 
       <Currency>GBP</Currency> 
       <ItemID>110177183442</ItemID> 
       <ListingDetails> 
        <StartTime>2016-04-26T10:06:24.000Z</StartTime> 
        <EndTime>2016-04-26T10:08:22.000Z</EndTime> 
       </ListingDetails> 
       <ListingType>Chinese</ListingType> 
       <PaymentMethods>PayPal</PaymentMethods> 
       <PaymentMethods>PersonalCheck</PaymentMethods> 
       <PrimaryCategory> 
        <CategoryID>61258</CategoryID> 
       </PrimaryCategory> 
       <PrivateListing>false</PrivateListing> 
       <Quantity>1</Quantity> 
       <SecondaryCategory> 
        <CategoryID>0</CategoryID> 
       </SecondaryCategory> 
       <SellingStatus> 
        <BidCount>1</BidCount> 
        <CurrentPrice currencyID="GBP">20.0</CurrentPrice> 
        <QuantitySold>1</QuantitySold> 
        <ListingStatus>Ended</ListingStatus> 
       </SellingStatus> 
       <Site>UK</Site> 
       <StartPrice currencyID="GBP">12.0</StartPrice> 
       <Title>1472749 Listing 137</Title> 
       <GetItFast>false</GetItFast> 
       <IntegratedMerchantCreditCardEnabled>false</IntegratedMerchantCreditCardEnabled> 
       <ConditionID>3000</ConditionID> 
       <ConditionDisplayName>Used</ConditionDisplayName> 
     </Item> 
... 

回答

0

望着響應我可以看到,該項目已經返回的是110177183442. Searching on the sandbox此項顯示它已結束。問題可能在於API未返回已結束項目的URL或沙箱有問題。您可能需要檢查尚未結束的項目的結果,以查看是否已爲其返回URL。

+0

已設定。這就是問題 – eatmypants

+0

如果沒有看到您的請求,我會對DetailLevel做出假設,因爲這通常是大多數問題的原因。另外,你沒有提及你使用的沙箱因臭名昭着而無法按預期工作。 –