question

chwal-128681 avatar image
0 Likes"
chwal-128681 asked ·

Merchandising API getRelatedCategoryItems does not work with itemId in sandbox mode

It seems that `getRelatedCategoryItems` always gives me a "Please specify a valid itemId." error whenever I'm trying to use it in sandbox mode. Here's the full URL I've tried- > https://svcs.sandbox.ebay.com/MerchandisingService?CONSUMER-ID=MYCLIENTID&OPERATION-NAME=getRelatedCategoryItems&SERVICE-NAME=MerchandisingService&SERVICE-VERSION=1.1.0&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD⁢emId=110521803896 The itemId is `110521803896`, which does exist in sandbox as you can see [here]( https://www.sandbox.ebay.com/itm/Wrapped-Golf-Shoe-/110521803896). If I try to use this in production mode (with a different item ID that exists in production), I get a successful response. Strangely, if I lookup the same item ID but use `getSimilarItems`, it gives me a successful response. > https://svcs.sandbox.ebay.com/MerchandisingService?CONSUMER-ID=MYCLIENTID&OPERATION-NAME=getSimilarItems&SERVICE-NAME=MerchandisingService&SERVICE-VERSION=1.1.0&RESPONSE-DATA-FORMAT=JSON&REST-PAYLOAD⁢emId=110521803896 Also, all of these merchandising API calls seem to be return an empty response even when the `ack` is "Success". What's up with that?
sandboxmerchandising apigetsimilaritemsgetrelatedcategoryitems
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
helios825 avatar image
0 Likes"
helios825 answered ·
Don't bother with the Sandbox when using the Merchandising API (as well as the Finging API). Use Production instead. It's allowed. (Sandbox has many known and unknown problems.) When ack=Success but there's an empty response, it could just be that there are no items returned that meet the query criteria. Or possibly the API call is busted.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.