pajaydev / ebay-node-api

eBay API Client for node
https://pajaydev.github.io/ebay-node-api
MIT License
132 stars 75 forks source link

Is there a way to control DetailLevel in the getItem call? #151

Open doverradio opened 2 years ago

doverradio commented 2 years ago

Steps to reproduce

I need a reliable way to get the quantity sold for any valid ebay item. I used your library and specifically the getItem call. It worked except I noticed it was missing Item.SellingStatus.QuantitySold in the responses. How can I use ebay-node-api to get this value?

I was thinking maybe the call is not passing in DetailLevel and that's the reason it's not in the response. Could this be the case and if so, is there a way to pass in the DetailLevel parameter as "ReturnAll"

Expected Behavior

Need to get Item.SellingStatus.QuantitySold

Actual Behavior

Missing this key in the response.

doverradio commented 2 years ago

On second look, I can get the estimatedSoldQuantity, which is basically equivalent to Item.SellingStatus.QuantitySold, from the Browse API's getItem.

Still, is there a way to put the ReturnAll DetailLevel parameter?