cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Notification API - Create Destination

Hello,

I am trying to create a destination like it is shown in the example:

 

{
"name": "api_destination",
"status": "DISABLED",
"deliveryConfig": {
"endpoint": "https://e***********4.s*************.com/notification-endpoint",
"verificationToken": "7*******-d***-***c-b***-***********a"
}
}

mywebhook.php is sending:

if (isset($_GET['challenge_code'])) {
$expectedVerificationToken = '7*******-d***-***c-b***-***********a';

header('Content-Type: application/json');
http_response_code(200);
echo json_encode(['challengeResponse' => $expectedVerificationToken]);
}

But all I ever get in return is:

{
"errors": [
{
"errorId": 195020,
"domain": "API_NOTIFICATION",
"category": "REQUEST",
"message": "Challenge verification failed for requested endpoint."
}
]
}

Could anybody please tell me what I am doing wrong. As I understand it, I need to send the expected token back just as it was sent.

Thank you for your help
Axel

Message 1 of 4
latest reply
3 REPLIES 3

Re: Notification API - Create Destination

hey did you have any luck with this? The documentation is so poor for challenge verification.

Message 2 of 4
latest reply

Re: Notification API - Create Destination

@vinyliebhaberei! just tagging you for above question ^^

Message 3 of 4
latest reply

Re: Notification API - Create Destination

Refer to this document: https://developer.ebay.com/api-docs/commerce/notification/overview.html#create-destination. You need to respond with the hashed string generated from the combination of challengeCode, verificationToken, and endpoint.

Message 4 of 4
latest reply