question

rss_shah avatar image
0 Likes"
rss_shah asked ·

Error in getitem call

Hi, can anybody help me??? I have call getitem and it getting error message. **error of '17 - This item cannot be accessed because the listing has been deleted, is a Half.com listing, or you are not the seller.'** but when i call to 'FindItemsByKeywordsRequest' then its work. item is there in 'EBAY-US'. this item i can found through above function. I also try to API test tool then it also same error. i wrote code in c#. string endPoing = " https://api.sandbox.ebay.com/wsapi";; string callName = "GetItem"; string siteID = "0"; string appID = "myappID"; string devID = "mydevID"; string certID = "myCertID"; string authToken = "mytoken"; string version = "437"; requestURL = endPoing + "?callname=" + callName + "&siteid=" + siteID + "≈pid=" + appID + "&version=" + version; ebay.TradingAPI.eBayAPIInterfaceService service = new ebay.TradingAPI.eBayAPIInterfaceService(); service.Url = requestURL; service.RequesterCredentials = new ebay.TradingAPI.CustomSecurityHeaderType(); service.RequesterCredentials.eBayAuthToken = authToken; service.RequesterCredentials.Credentials = new ebay.TradingAPI.UserIdPasswordType(); service.RequesterCredentials.Credentials.AppId = appID; service.RequesterCredentials.Credentials.DevId = devID; service.RequesterCredentials.Credentials.AuthCert = certID; ebay.TradingAPI.GetItemRequestType request = new ebay.TradingAPI.GetItemRequestType(); request.ItemID = "191170673854"; request.Version = version; try { ebay.TradingAPI.GetItemResponseType response = service.GetItem(request); MessageBox.Show("ack = "+response.Ack); if (response.Ack.Equals(ebay.TradingAPI.AckCodeType.Failure)) { MessageBox.Show("error : " + response.Errors[0].ErrorCode + " - " + response.Errors[0].LongMessage); } } catch (Exception ex) { MessageBox.Show(ex.Message); } help me rashesh
trading-apigetitemsapi-test tool
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
rss_shah avatar image
0 Likes"
rss_shah answered ·
its now work. i understand. where i m made mistek. answer: sandbox is tester so it is getting error. when i try in production than it work fine. rashesh
· 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.