Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
eBay Marketplace account deletion endpoint validation failed

Marketplace account deletion endpoint validation failed. Click here to learn more about setting up an endpoint.

I have created an API method to respond challenge response to eBay. But validation is failing I am not sure what wrong I am doing here.

Below is the code logic I added.

 public ActionResult<string> ChallengeResponse([FromQuery] string challenge_code)
    {
        try
        {
            string verificationToken = _configuration["eBayVerificationToken"];
            string endpoint = _configuration["eBayNotificationEndPoint"];
            string challengeResponse = string.Empty;
            IncrementalHash sha256 = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
            sha256.AppendData(Encoding.UTF8.GetBytes(challenge_code));
            sha256.AppendData(Encoding.UTF8.GetBytes(verificationToken));
            sha256.AppendData(Encoding.UTF8.GetBytes(endpoint));
            byte[] bytes = sha256.GetHashAndReset();
            challengeResponse = BitConverter.ToString(bytes).Replace("-", string.Empty).ToLower();
            JObject json = JObject.Parse("{\"challengeResponse\":\"" + challengeResponse + "\"}");
            return JsonConvert.SerializeObject(json);
        }
        catch (Exception ex)
        {
            return string.Empty;
        }
    }

enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I used a object with challenge response to the one member:

class challengeResponseObj
{
    public string challengeResponse { get; set; }
} 

Then I just assign the value of the response and return the object as a JSON result:

challengeResponseObj resObj = new challengeResponseObj()
{
    challengeResponse = resMessage
};
return new JsonResult(resObj);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!