Developers Program

How can I determine the UserID associated with an eBay token?

Published: March 13 2008, 5:28:00 PMยทUpdated: August 23 2022, 5:12:31 AM

Products

Question

I have a token, but I am unsure of the UserID associated with the token. How can I find that out?

Answer

Note that an eBay user can change their UserID, and this will not affect the validity of any authorization tokens associated with that user. If you need to find the UserID associated with a given token, you can make a call to GetUser (DetailLevel=ReturnSummary) with only a token.

The UserID field in the response will be the UserID associated with the token used to make the call.

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

Trading API: https://developer.ebay.com/devzone/xml/docs/reference/ebay/GetUser.html

How well did this answer your question?