question

discounted_cleaning_supplies avatar image
0 Likes"
discounted_cleaning_supplies asked

getPublicKey

the API call to getPublicKey is returning an error 500 even in API explorer and therefore we cannot validate Account Deletion notifications. Did somebody at eBay forget to renew their certificate perhaps??


{

"errors": [

{

"errorId": 2003,

"domain": "ACCESS",

"category": "APPLICATION",

"message": "Internal error",

"longMessage": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance"

}

]

}

account deletion notificationsgetpublic
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
jitendra_developersupport avatar image
0 Likes"
jitendra_developersupport answered

Hi @discounted_cleaning_supplies,


The manual (non-SDK) process to verify that an eBay marketplace account deletion/closure notification is coming from eBay is outline below:


1. Use a Base64 decode function to decode the value returned in the x-ebay-signature response header for the eBay marketplace account deletion/closure notification.

2. This decoded value will be passed into the end of the getPublicKey URI of the Notification API.

3. Go to the Notification API Overview page to see the rest of the verification process using that getPublicKey method.


Please use the correct public_key_id in getPublicKey request and try again to execute the call with the Application access token. You will get this public_key_id from the X-EBAY-SIGNATURE header that is included with the push notification.


Ref: https://developer.ebay.com/marketplace-account-deletion

https://developer.ebay.com/api-docs/commerce/notification/resources/public_key/methods/getPublicKey


Best Regards,

eBay Developer Support

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.