Skip to main content
Published: July 23 2009, 4:55:00 PMUpdated: August 24 2022, 3:02:23 AM

AuctionCheckoutComplete notification payload does not contain the external transaction ID. Is there a way I can get the same?

Your can retrieve this data via the API. The ExternalTransactionID field is returned by most calls that return transaction related data once the item/order has been paid for. There are two order scenarios -

1. Single item order -

Make a call to GetItemTransactions as below and retrieve the ExternalTransactionID the from the response.

 

 <?xml version="1.0" encoding="utf-8"?>
<GetItemTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>token>/eBayAuthToken>  
  </RequesterCredentials>
  <ItemID>ItemID</ItemID>
   <TransactionID>TransID</TransactionID>
  <DetailLevel>ReturnAll</DetailLevel> 
</GetItemTransactionsRequest>

2. Multi-item order -

Retrieve the OrderID from the notification or by making a call to GetItemTransactions as below

 <?xml version="1.0" encoding="utf-8"?>
<GetItemTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>token>/eBayAuthToken>  
  </RequesterCredentials>
  <ItemID>ItemID</ItemID>
   <TransactionID>TransID</TransactionID>
<IncludeContainingOrder>true</IncludeContainingOrder>
  <DetailLevel>ReturnAll</DetailLevel> 
</GetItemTransactionsRequest>

Then make a call to GetOrders or GetOrderTransactions and retrieve the ExternalTransactionID the from the response. Below is a sample GetOrderTransactions request -

 

 <?xml version="1.0" encoding="utf-8"?>
<GetOrderTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <DetailLevel>ReturnAll</DetailLevel>
  <OrderIDArray>
    <OrderID>OrderID</OrderID>
  </OrderIDArray>
 <RequesterCredentials>
    <eBayAuthToken>token>/eBayAuthToken>  
  </RequesterCredentials>
</GetOrderTransactionsRequest>

 

 

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

Got thoughts? Click the feedback button – your insights help us improve!