Skip to main content
Published: April 23 2015, 12:02:00 AMUpdated: September 05 2023, 8:44:17 AM

Tokens generally are effective for 18 months, but there are timing considerations associated with FetchToken. Tokens may also be revoked.

Detailed Description

Token duration
Tokens are generally effective for 18 months. Expiration warnings are given seven days prior to expiration.

FetchToken timing considerations
There are two timing considerations for FetchToken.
From Getting a Token : http://developer.ebay.com/Devzone/guides/ebayfeatures/Basics/Tokens.html

When directing the user the eBay sign-in page for new token creation, the application adds the "sid" (SessionID) parameter whose value is a value defined by the GetSessionID call. Presence of the sid triggers eBay to store the SessionID along with the auth token that eBay generates.

eBay stores this pair for 48 hours, enabling the application to retrieve the auth token via FetchToken within a reasonable time after directing the user to the sign-in and consent pages. After that, the token expires and the application needs to start the process over again. If it is the first time using this process to obtain a token for the user, the application can use FetchToken to retrieve the token immediately. Otherwise, the application should wait 5-10 seconds before calling FetchToken.


Revoking Tokens Aside from expiration (error 932), tokens may be revoked by the user via their My eBay page. eBay may also revoke token (error 932) if suspicious or inappropriate behavior appears to be happening.
Additional resources
How to revoke a token

How well did this answer your question?
Answers others found helpful

Got thoughts? Click the feedback button – your insights help us improve!