Error 500 listing businesses

FlyntFlynt Member Posts: 3

Hi,

We are using lightspeed lsk API to retrieve businesses and orders. I have one issue with a customer of us.

The authentification worked and we got the token / refresh token however the call to : 

/f/data/businesses

to retrieve the list of businesses of our customer return a 500 error : 

{

 "timestamp": "2022-01-03T14:26:02.478+0000",

 "status": 500,

 "error": "Internal Server Error",

 "exception": "org.springframework.web.client.HttpClientErrorException",

 "message": "403 null",

 "path": "/f/data/businesses"

}

Can you help us with the situation

Best,

Wuillaume

4 comments

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 975 moderator

    Hi @Flynt,

    Thank you for contacting us.

    I guess this is because the token that you're using belongs to a different user(email) that isn't active in the account. Sometimes this happens when the customer changes the email address.

    I hope this helps.

  • FlyntFlynt Member Posts: 3

    Hello Lucien,

    If the user is active, could it be an issue with the access roles for that user ? What are the permissions required for the user to use the following scope of the api: financial-api; orders-api; items

    Best

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 975 moderator

    Can you provide me the email of the user?

  • FlyntFlynt Member Posts: 3
    edited January 4

    Yes

    Post edited by Flynt on
Sign In or Register to comment.