07-28-2023 10:09 AM
Hi all,
I'm wanting to create a response model to deserialize the json object, but I'm having trouble finding a full response object in eBay's documentation. I can obviously make one from executing a search and using what it returns, but I'm not entirely sure if that's a complete response object or not (in particular each entry under 'itemSummaries').
1) Is this fully-documented anywhere?
2) If not, Is the response complete or are there additional fields that need to be discovered?
Solved! Go to Best Answer
07-28-2023 12:55 PM
First of all, I've not used that particular call. If you are looking at the response payload on this page, it looks like it covers everything.
https://developer.ebay.com/api-docs/buy/browse/resources/item_summary/methods/search
My experience with similar calls is that the response example is complete and will also show where iterative data could appear. Also, some data may be missing entirely from a response if the data was not found, so a model must also anticipate missing fields.
Response payloads can get a little tricky when filters that dramatically modify the nature of the response are added to a call. But in those calls, the examples usually show snips of the filter details.
07-28-2023 12:55 PM
First of all, I've not used that particular call. If you are looking at the response payload on this page, it looks like it covers everything.
https://developer.ebay.com/api-docs/buy/browse/resources/item_summary/methods/search
My experience with similar calls is that the response example is complete and will also show where iterative data could appear. Also, some data may be missing entirely from a response if the data was not found, so a model must also anticipate missing fields.
Response payloads can get a little tricky when filters that dramatically modify the nature of the response are added to a call. But in those calls, the examples usually show snips of the filter details.
07-28-2023 02:37 PM
Geez, I have that page open in my tabs too. Not sure how I missed the response section, thanks!