question

oneisa47 avatar image
0 Likes"
oneisa47 asked

the notifications data user_name and user_id in marketplace account deletion

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


The JSON-based notifications data:


{

"metadata": // ......,

"notification": {

// ......

"data": {

"username": "test_user",

"userId": "ma8vp1jySJC",

"eiasToken": "nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wJnY+gAZGEpwmdj6x9nY+seQ=="

}

}


When a user installs my application, from which API can these two values be obtained and used to delete the user's data from our system?


marketplace-account-deletion
1632623312669.png (48.5 KiB)
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
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @oneisa47,

You can execute the getUser call of Identity API for getting the userId and username for an authenticated user, which requires a User access token.

Please go through the link given below to know more about the call.

Ref: https://developer.ebay.com/api-docs/commerce/identity/resources/user/methods/getUser

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.