eBay Developers Program
  • Forums Sign in
  • My Account
    • My Developer Account
    • Solutions Directory
    • Applications Settings
  • Forums
    • Orders, Returns and Feedback
    • Java SDK for Trading API
    • Search
    • Selling
    • Talk to Your Fellow Devs
    • .Net SDK for Trading API
    • Tokens, Notifications, Messages
    • Feedback & Suggestions
  • Documentation
    • Release Notes
    • Finding API
    • Shopping API
    • Trading API
    • Large Merchant Services
    • Marketing Handbook
    • All Features Comparison
    • All API Documentation
  • Support
    • eBay SDKs
    • API Site Status
    • Program & News Blog
    • Compatible Application Check
    • Support Ticket
    • Knowledge Base
    • Developer Help Center
    • Search Details
  • Home
  • eBay Forums
  • Post Order APIs - Cancellation /
avatar image

Question by ngfx3592 · Feb 05, 2018 at 02:27 AM · cancellation

Call Cancellation Check_eligibility API Response 500,Call In Sandbox

I'm trying to make a HTTP request to check the eligibility of orders. I'm pretty sure the token I used and legacyorderID I used are fine in this process. But I always get a "500 internal server error." response after the call. The following is the call process I wrote:

Code: var url = "https://api.sandbox.ebay.com/post-order/v2/cancellation/check_eligibility"; HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebRequest.ContentType = "application/json"; httpWebRequest.Accept = "application/json"; httpWebRequest.Method = "post"; httpWebRequest.Timeout = 50000; httpWebRequest.Headers.Add("X-EBAY-C-MARKETPLACE-ID", "EBAY_US,EBAY_UK,EBAY_DE,EBAY_AU,and EBAY_CA"); httpWebRequest.Headers.Add("Authorization", "TOKEN my token"); var model = new OrderEligibilityCheckInfo { LegacyOrderId = "110251868787-28831969001", };

         var json = JsonConvert.SerializeObject(model).ToString();
         byte[] byteArray = Encoding.UTF8.GetBytes(json);
         httpWebRequest.ContentLength = byteArray.Length;
         Stream stream = httpWebRequest.GetRequestStream();
         stream.Write(byteArray, 0, byteArray.Length);
         stream.Close();
         HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
         StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());
         string responseContent = streamReader.ReadToEnd();

Could some one tell me, whether my settings of call are wrong or the cancel order API does not work now?

Thanks for the reply deeply.

Sandbox UserID: " testuser_ashcook " RlogId: t6%60dhdfiuq%60%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Defmfckpse*1343454%29pqtfwpu%29pdhcaj%7E%29fgg%7E%606%28dlh-161650fb6b8-0x153 Response : Remote server return

People who like this

0
Comment
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by catherine_developersupport · Feb 07, 2018 at 10:25 AM

duplicate posting as https://forums.developer.ebay.com/questions/25195/call-cancellation-check-eligibility-api-response-5.html

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to get the payment Id in Cancellation ? 0 Answers

Regarding cancellation process 0 Answers

Issue in cancellation of ebay order 0 Answers

How to check order cancellation status as a seller with eBay post order API call? 18 Answers

post-orders Cancellation URI not working 2 Answers


Support

Developer Help Center
eBay Developers Program Blog
API Site Status
Request Support
Knowledge Base
Developer Forums
eBay Software Development Kits

API Information

API License Agreement
API Documentation
API Call Limits
Marketing Handbook
API Features Comparison

Apps Center

Applications Directory
Solutions Directory

Social Media

     

Programs

About Us
Success Stories
Affiliate Developers
eBay Market Data Program
Developer Directory
Developer Jobs
Copyright 1999 - 2019 eBay Inc. All rights reserved. User Agreement | Privacy Policy.    Site Feedback
  • Anonymous
  • Login with eBay
  • Create
  • Ask a question
  • Forums
  • Buy APIs (BETA) - Browse
  • Buy APIs (BETA) - Order
  • Feedback, Comments, Suggestions
  • New Sell APIs - Account, Inventory, Catalog and Compliance
  • New Sell APIs - Fulfillment
  • New Sell APIs - Marketing, Analytics, Metadata
  • Post Order APIs - Cancellation
  • Post Order APIs - Inquiry, Case Management
  • Post Order APIs - Return
  • Product-Based Selling Experience
  • Token, Messaging, Sandbox related issues
  • eBay APIs: .NET SDK for Trading API
  • eBay APIs: Java SDK for Trading API
  • eBay APIs: Orders, resolutions and feedback
  • eBay APIs: Search
  • eBay APIs: Selling
  • eBay APIs: Talk to your fellow developers
  • Explore
  • Tags
  • Questions
  • Users
  • Badges