12-16-2024 02:16 PM
I hope this is the right place for a question 🙂
I'm a seller, and use some of the APIs to pull data - usually, I get my token from the API explorer and paste it into my program to use... but, I want to set up a program to pull shipping tracking numbers for our orders. It will be non-interactive... is there an API to authenticate to that returns a token? - or any way to get a token that does not require interaction by a user to log in?
Thanks!
12-17-2024 04:31 AM
User access token minted with the authorization code grant request, remains valid for 7,200 seconds (2 hours) from the time it was generated. After the token expires, you will need to renew it using the supplied refresh token.
While User access tokens are short-lived, the associated refresh_token is a long-lived value that you can use to update an expired User access token. This means you do not have to get the user's consent each time you need a new User access token.
To update the access token after it expires, see Using a refresh token to update a User access token.