Skip to main content
Published: April 05 2007, 12:49:00 PMUpdated: November 28 2020, 3:35:30 PM

Why am I getting the following error when I try to make a CompleteSale call?


  <ShortMessage>Invalid ItemID or TransactionID</ShortMessage>

  <LongMessage>Invalid ItemID or TransactionID</LongMessage>






When you make a call to CompleteSale, you need to specify the ItemID and the TransactionID.  For items with the Chinese ListingType (single quantity auction items), the TransactionID is always 0.  For other types, it is a non-zero value, even for single quantity items.  You can make a call to GetSellerTransactions / GetItemTransactions and find out the TransactionID.

Detailed Description

Besides, the error 20822, you could also get ErrorCode 55, if you try to use the call to LeaveFeedback and the ItemID / TransactionID are invalid.

Here is a sample CompleteSale request to leave feedback and mark the item as paid and shipped:

<?xml version="1.0" encoding="utf-8"?>

<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">





    <CommentText>Great transaction, great buyer!</CommentText>











Version Info

The code example above was based on the versions specified below:

API Schema Version 505

Additional Resources

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