Cannot retrieve valid token

Hi,
Today I returned to a project that was being actively developed for approximately 4 months up until January. On returning to the project today I'm unable to retrieve a valid access token. Any attempt to authorise results in an invalid token.
In the following example I was using Postman to authorise and then call an API endpoint.
At the start of the process two URLs are logged:
This results in the Lightspeed sign-in screen being showed. On clicking "Sign in" the following two calls are logged:
POST https://accounts.lightspeedappstg.com/login
Resulting in the screen being shown to allow or deny access. Allowing access results in two calls being logged:
POST https://accounts.lightspeedappstg.com/consent
POST https://test.lightspeedapis.com/resto/oauth2/v1/token
The response body of this final call includes an access token that I then immediately use as a Bearer token in the Authorization header to make a further call to the Lightspeed API. This results in a 401 response with a description of "Invalid token".
I have full logs available but this forum is not the place to share them.
I believe this to be the correct process, since exactly this process worked a month ago. Has our API access expired or become dormant? Have some other credentials changed?
Many thanks,
Gareth.
3 comments
Hi @GT1 ,
Can you try again?
I am able to authenticate now thanks Ali.
Has there been an API release to test? I notice there is a new
globalId
property being returned on by the/rest/core/company
GET
endpoint?Are there any other changes?
We have recently added the globalId to the /company endpoint and also started to return tax information on the line items when tax classes are enabled.