You'll need to refresh your token every 6 months. You can use the refreshToken API to refresh your token
How do I generate a token?
To generate an access token:
Concatenate your app’s consumer key and secret separated by a colon (:) like this - yourAppKey:yourAppSecret
Generate the Base64 encoded value of this concatenated text.
In the authorization header for generateToken API, enter Basic followed by the Base64 encoded value you generated using this format: Basic base64encodedValue
In the request body, send the email and password for the applicable StubHub account you created (refer to Creating your StubHub user account section in the Getting Started page), in this format: { "username":"www.stubhub.com account email", "password":"www.stubhub.com account password" }
Important: The email/password you send in the request body must belong to an account created on www.stubhub.com and NOT your developer account created on beta-developer.stubhub.com.
Your access token will show up in the access_token field of the response
You can then use this token and pass it as a Bearer token authorization header while accessing other APIs.