davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

ShoppingService const API_VERSION =983 #82

Closed moggiex closed 7 years ago

moggiex commented 7 years ago

Howdy David,

It appears that 983 is an invalid API version for the shopping API.

Switched to 967 for GetSingleItem() calls on the shopping API and that's stopped returning these two messages as errors being returned:

Which is odd as on the top of their documentation here http://developer.ebay.com/Devzone/Shopping/docs/CallRef/GetSingleItem.html it says version 997 which is even higher, yet still returns the same two messages above.

Fantastic work by the way,

Matt

davidtsadler commented 7 years ago

The warning is one of those bizarre ones that eBay throws at you every now and then. It seems that the API is not in sync with the current documentation and specifying the correct value doesn't necessary mean that it will work. I found that looking at the Version field in the response normally tells you the highest version number that the API will support. Sadly even this value is not consistent. Depending on which operation you call a different version could be returned. I've seen FindProducts return 957 and GetSingleItem return 981. I get the impression that it depends on which of their API servers your request hits as to whether the version you've specified will be accepted.