API for Internal Use

SysSys Posts: 3Member

Hello,


How would I be able to access the Lightspeed API strictly for internal processing?

I understand that there is a registration found at https://cloud.lightspeedapp.com/oauth/register.php, however this will only be used internally and I would not have a redirect URL.



3 comments

  • Adrian SamuelAdrian Samuel Posts: 472Moderator, Lightspeed Staff moderator
    @Sys Could you explain what you mean by internal processing?
    You could simply use https://localhost for any local development if that's what you mean

    Adrian Samuel

    API Integrations Consultant - Strategic Solutions

    Lightspeed HQ

  • SysSys Posts: 3Member
    We are actually developing a connection between Lightspeed and SAP. This would be an API connection that would allow our middleware to access our Lightspeed environment. There would be no use for this API for any other lightspeed customer.

    In my mind I imagined this API process as being similar to getting an API key for google maps, paypal, stripe, etc. Where you simply request an API key which allows you to connect to your environment. 

    In this case, it seems like we might need to develop a website to then retrieve the key and then we can use it over and over again. Is this correct?
  • Adrian SamuelAdrian Samuel Posts: 472Moderator, Lightspeed Staff moderator
    @Sys that sounds great!

    Essentially every application needs to be registered in the system. We use the Open Authorisation method of authentication. This means that when you register, we will provide you with a client key and secret. You will then use these to generate a URL that once used (logging into an account with credentials) will enable you to gain a temporary token. This temporary token is then exchanged for an access token. Then you will have full access to the data from your account.

    Nothing about this process makes this app available to anybody else and nothing about this process means you need to develop a website. You can simply use your localhost.

    All you're doing is registering and authenticating your API client.

    More information about this can be found here: 
    https://developers.lightspeedhq.com/retail/authentication/authentication-overview/


    Adrian Samuel

    API Integrations Consultant - Strategic Solutions

    Lightspeed HQ

Sign In or Register to comment.