Windows application to retrieve eBay transactions using the .NET SDK.
This tool is a windows application written in C#, that helps you retrieve transactions via the API. It makes a call to GetSellerTransactions to get the transactions that were last modified in the user specified time range. Further, it makes calls to GetOrders if the transactions are a part of an order and updates the transaction information accordingly.
Utility of this tool:
This tool demonstrates how to get updated information about your transactions and make the necessary API calls
Mark the Paid & Shipped status for a transaction via the CompleteSale API call, so that the status show up in MyeBay page on the site
You can use this as a reference sample for writing your own transaction management application and add a database component to persist the transactions. You can also add the functionality to leave feedback and keep track of feedback received / pending, via your database.
This application uses the .NET SDK, which has the ability to compress API requests and responses. The SDK uses the J# redistributable for compression. Compression can significantly reduce the time for executing an API call. Compression is turned off by default for this application so that 64 bit machines can run this application. At the time of writing this article, there is no package available for 64 bit machines.
If you are running on a 32 bit machines, then it is strongly recommended that you turn compression on.
To turn compression on you need to do the following:
Open the App.Config file in the application installation folder.
Change value of the key for EnableCompression to true
Double click on the executable in the installed folder\bin\Debug\eBayTransactions.exe to start the application.
Step1: Set your credentials
Select the Sandbox or the Production environment for which you want to get the transactions
Enter your keys for the environment that you selected.
Enter the token for the environment you selected
Enable logging if you wish to view the raw SOAP Request and Responses. You will find the log file in \bin\Debug\Log.txt.
This is very useful for debugging.
Click Test Setup to verify that you have entered the correct credentials for the selected environment
Optionally, you can save the credentials so that it will be pre-populated for you when you run the application the next time
Step2: Get Transactions
Set the last modified time date range:
All transactions that were last modified in this time ranage, will be retrieved.
You can either select this time to indicate that it is in GMT or Local Time. If it is local time, then depending on your time zone, appropriate number of hours will be added to convert it to equivalent GMT. e.g. if you in PST, then 7 hours will be added to the selected time value.
The application makes calls to GetSellerTransactions with the selected time range.
If there are transactions that are part of an order, then it makes call to GetOrders with the OrderIDs and updates the transaction information.
Optionally, you can save the transaction information as a CSV file.
Step 3: Update Transactions to mark them as Paid & Shipped
Select the transactions that you want to mark as Paid & Shipped on the MyeBay page.
This page shows you all the transactions for which the checkout is complete and have not been marked as paid or shipped.
You can select the transactions for which to make a call to CompleteSale and mark the transactions as Paid & Shipped by clicking the Update Transaction Status button.
Error - Keys are invalid:
Ensure that you have selected the correct environment and have input the keys correctly.
Sandbox keys will not work in production and vice versa.
I do not see my transaction when the application gets transactions from eBay:
The last modified date for the transaction is not in the range that you specified. Try changing the date range.
Could not load file or assembly 'vjslib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.