Skip to main content
Published: April 22 2015, 3:16:00 PMUpdated: November 28 2020, 7:58:35 PM

I am not getting back the ExternalTransaction container in either GetItemTransactions or GetSellerTransactions for transactions that have been successfully paid using PayPal.  Why is this missing?

Detailed Description

Here are a couple of things to check:

1.  Have you made the call with the DetailLevel set to ReturnAll?
ExternalTransaction container is returned only if you ask for it by setting the DetailLevel to ReturnAll.

2.  Is this transaction part of an order?
If the transaction is part of an order, the call will not return the ExternalTransaction container at the transaction level, even if you set the DetailLevel to ReturnAll.  You need to get this information from GetOrders.  

 Here is the recommended flow to get your transaction information:

1.  Make a call to GetSellerTransactions with the DetailLevel to ReturnAll and IncludeContainingOrder set to true, every 15 mins with a 2 minute overlap of the last time you made the request to the current time. 

Sample request:

<?xml version="1.0" encoding="utf-8"?>
<
GetSellerTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <
DetailLevel>ReturnAll</DetailLevel>
    <
IncludeContainingOrder>true</IncludeContainingOrder>
    <
ModTimeFrom>2009-09-22T02:58:00.000Z</ModTimeFrom>
    <
ModTimeTo>2009-09-22T03:15:00.000Z</ModTimeTo>
    <
RequesterCredentials>
        <
eBayAuthToken>*****</eBayAuthToken>
    </
RequesterCredentials>
</
GetSellerTransactionsRequest>

If a transaction has a ContainingOrder container as below:

<ContainingOrder>
    <
OrderID>54932076013</OrderID
    .....
</
ContainingOrder>

then don't process the transaction from here, but make a call to GetOrders instead.   Otherwise, process the transaction.

2.  Make a call to GetOrders with DetailLevel set to ReturnAll for the unique OrderIDs obtained from the GetSellerTransactions for transactions that are part of an order.

Sample request:

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <DetailLevel>ReturnAll</DetailLevel>
    <OrderIDArray>
        <OrderID>54932076013</OrderID>
        <!-- more OrderIDs --> 
    </OrderIDArray>
    <RequesterCredentials>
        <eBayAuthToken>*****</eBayAuthToken>
    </RequesterCredentials>
</GetOrdersRequest>

Notes:
1.  If the seller does not allow combined payments, then none of the transactions will be combined into an Order and will not have the OrderID field.
2.  If the seller requires immediate payment, then those transactions will not be part of an order and will not contain the OrderID field.





 


 

How well did this answer your question?
Answers others found helpful