Get email of the account who is signing up for the App

skagrawal10skagrawal10 Posts: 5Member
Hi, 

I am checking the docs. But, I am not able to find any API by which I can get email address of the user who has installed light speed app. 

Can anyone let me know the API for this?

Thanks Much. 

8 comments

  • Adrian SamuelAdrian Samuel Posts: 119Moderator, Lightspeed Staff moderator
    @skagrawal10 what kind of app are you trying to make? We don’t give access to private information like that.

    The API designed is to enable Integrations  between the POS and your custom application 


  • skagrawal10skagrawal10 Posts: 5Member
    Thanks for your response. 

    Basically, we are on boarding retail vendors on our portal and provide them delivery services. So we are providing them one light speed app so that, we can get their item information from POS system. So we would like them to notify once they approve our app and create store for them on our cloud so that, they can serve themselves. 

    I was checking this app - https://www.lightspeedhq.com/integrations/1-click-website-pointy/ and this app is able to get email address of the user who is trying to install the app. 
  • Alex LugoAlex Lugo Posts: 54Administrator, Lightspeed Staff moderator
    Hello @skagrawal10,

    It seems that Pointy is sending an email to the owner of the account. You could get this information from the Employee endpoint.


    Alex Lugo
    API Support Specialist
    Lightspeed HQ
  • skagrawal10skagrawal10 Posts: 5Member
    In Employee end point also, I am not getting that info - 

    {"@attributes":{"count":"1","offset":"0","limit":"100"},"Employee":{"employeeID":"1","firstName":"Shiv","lastName":"Kumar","lockOut":"false","archived":"false","timeStamp":"2018-09-20T05:57:57+00:00","contactID":"1","clockInEmployeeHoursID":"0","employeeRoleID":"4","limitToShopID":"0","lastShopID":"1","lastSaleID":"0","lastRegisterID":"0"}}
  • Adrian SamuelAdrian Samuel Posts: 119Moderator, Lightspeed Staff moderator
    edited September 21
    @skagrawal10 to receive the employee email add the query below
    load_relations=["Contact"]
    
    so a full request would look like:
     https://api.lightspeedapp.com/API/Account/{{AccountID}}/Employee.json?load_relations=["Contact"]
  • skagrawal10skagrawal10 Posts: 5Member
    Hi Alex, 

    https://api.lightspeedapp.com/API/Account/177475/Employee.json?load_relations["Contact"]

    And I am getting the same response over here - 
    {
        "@attributes": {
            "count": "1",
            "offset": "0",
            "limit": "100"
        },
        "Employee": {
            "employeeID": "1",
            "firstName": "Shiv",
            "lastName": "Kumar",
            "lockOut": "false",
            "archived": "false",
            "timeStamp": "2018-09-20T05:57:57+00:00",
            "contactID": "1",
            "clockInEmployeeHoursID": "0",
            "employeeRoleID": "4",
            "limitToShopID": "0",
            "lastShopID": "1",
            "lastSaleID": "0",
            "lastRegisterID": "0"
        }
    }


    It is not loading Contact Relation. Am I doing something wrong here?
  • skagrawal10skagrawal10 Posts: 5Member
    Hi, Alex,

    I got the email. Please ignore above comment. 

    Thanks for all support. 

  • Alex LugoAlex Lugo Posts: 54Administrator, Lightspeed Staff moderator
    My pleasure, have a great day!
    Alex Lugo
    API Support Specialist
    Lightspeed HQ
Sign In or Register to comment.