question

shimmy avatar image
1 Like"
shimmy asked ·

Unable to retrieve single item info

Hi.

 

I'm trying to retrieve info for an item, so I can bid on it, watch it etc.

 

Here is how I'm trying to retrieve the item and its details:

 

 

 

        var request = new GetItemRequestType();

        request.ItemID = ItemID.ToString();

 

        var call = new GetItemCall(_ApiContext);

        var response = (GetItemResponseType)call.ExecuteRequest(request);            

 

 

 

The last line throws the following exception with message:

This item cannot be accessed because the listing has been deleted, is a Half.com listing, or you are not the seller.

 

Any clue how to solve this? Am I using the wrong method?

getitemcallgetitemrequest
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
devanathan.developersupport@ebay.com avatar image
0 Likes"
devanathan.developersupport@ebay.com answered ·

Hi shimmy,

No, you are using the correct method to get the details of the item. But it seems that you are hitting the wrong endpoint URL to execute the call.

For Production items you need to hit this URL: https://api.ebay.com/ws/api.dll

For Sandbox items you need to hit this URL: https://api.sandbox.ebay.com/ws/api.dll

Here is a link that contains a list of endpoint URL to hit based on the environment and API calls
Title: What Server URL should I use when I make API calls
Link: https://ebaydts.com/eBayKBDetails?KBid=429

Have a nice day.

Best Regards,
Devanathan Sampath
eBay Developer Support

 

· 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.