Ebay GetSellerTransactions操作不返回XML元素

时间:2016-04-27 09:53:53

标签: xml ebay ebay-api

我尝试使用GetSellerTransactions操作来接收事务,但我遇到了一个问题。操作响应不包括TransactionArray.Transaction.Item.ListingDetails.ViewItemURL,但根据this文档页面,它必须包含。

有人面临这个问题吗? Doc说,它是“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>
...

1 个答案:

答案 0 :(得分:0)

查看回复我可以看到该项目已返回110177183442.此项目的Searching on the sandbox表示已结束。问题可能是API不会返回已结束项目的URL或沙箱存在问题。您可能需要检查尚未结束的项目的结果,以查看是否已为其返回URL。