ebay-node-api icon indicating copy to clipboard operation
ebay-node-api copied to clipboard

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

Open doverradio opened this issue 2 years ago • 1 comments

  • [ x ] Issue
  • [ ] Enhancement / Improvement

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 avatar Sep 11 '21 19:09 doverradio

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?

doverradio avatar Sep 12 '21 04:09 doverradio