2016-04-27 55 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做出假设,因为这通常是大多数问题的原因。另外,你没有提及你使用的沙箱因臭名昭着而无法按预期工作。 –