How to import eBay orders into Excel in VBA

mintz

Board Regular
Joined
Aug 5, 2015
Messages
129
How do I import eBay orders into an Excel sheet in VBA? (with "Awaiting Shipping" status)

For example:

Cell A1 > get Transaction ID
Cell B1 > get Item ID
Cell C1 > get Buyer Name
Cell D1 > get Buyer Email

etc etc etc
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Easiest solution is to goto reporting in your ebay store and follow instructions to download CSV report for items needing dispatch.

If you want to further manipulate the data (CSV) using Excel come back to us.
 
Upvote 0
Easiest solution is to goto reporting in your ebay store and follow instructions to download CSV report for items needing dispatch.

If you want to further manipulate the data (CSV) using Excel come back to us.

Yes that's exactly what I'm currently doing

1. manually download CSV
2. on the master workbook I wrote a macro (with great assistance from you forum guys) that takes the data from the downloaded csv, copies it to a temp sheet, manipulates the data (phone, address, zip formatting etc)
3. then pastes the data in the corresponding columns on the master workbook

the manual csv download takes time and I want to cut it
that's why I want the macro to load data directly from eBay into the temp sheet, instead of it copying from a downloaded csv
 
Upvote 0
Not sure why you think that it's easy exactly. But here's the page for the eBay API

https://go.developer.ebay.com/api-documentation

I haven't read it, so I'm not sure if it returns XML or JSON data.
yes I've found that page on google as I searched for "ebay api vba"
but I haven't previous experience with API so I thought I would better find someone who is familiar with both ebay's api and vba to help with that
 
Upvote 0
Not sure why you think that it's easy exactly. But here's the page for the eBay API

https://go.developer.ebay.com/api-documentation

I haven't read it, so I'm not sure if it returns XML or JSON data.

YES!! I figured it out!! I just managed to retrieve the data into excel after hours reading the API doc

Just one little technical problem
Untitled.jpg



image.jpg



image.jpg
 
Upvote 0
It should be the same syntax as the other nodes:
Code:
SelectNodes("//TotalShippingCost").Item(0).Text
which should return the node value, which is the AmountType string.

currencyID is an attribute of the node element, and to extract the CurrencyCodeType (the text "USD"), the code should be something like:
Code:
SelectNodes("//TotalShippingCost").Item(0).Attributes.getNamedItem("currencyID").Text
 
Upvote 0
It should be the same syntax as the other nodes:
Code:
SelectNodes("//TotalShippingCost").Item(0).Text
which should return the node value, which is the AmountType string.

currencyID is an attribute of the node element, and to extract the CurrencyCodeType (the text "USD"), the code should be something like:
Code:
SelectNodes("//TotalShippingCost").Item(0).Attributes.getNamedItem("currencyID").Text
hmm when I tried //TotalShippingCost alone it still gave error, I think in the API doc it says that the input needs include the currencyID="USD" (so the API knows what value to return based on the user's requested currencyID) in this case I'd like the value of TotalShippingCost in USD currency (rather than just a "USD" text)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top