Zad Posted December 15, 2020 Share Posted December 15, 2020 Hii I am trying to get employee uuid by postman program, but still stuck with getting uuid of employee. I tried using the id from the url but didn't success. How can I get this value? I need it to test sending a new order via api. thanks a lot Link to comment Share on other sites More sharing options...
Jay Rock Posted December 15, 2020 Share Posted December 15, 2020 Hello, your url looks like this? https://api.loyverse.com/v1.0/employees/32573fac-71a9-11ea-8d93-0603130a05b8 Link to comment Share on other sites More sharing options...
Zad Posted December 15, 2020 Author Share Posted December 15, 2020 (edited) no, like this: https://r.loyverse.com/dashboard/#/employees/editemployee/?id=1689230 Edited December 15, 2020 by Zad Link to comment Share on other sites More sharing options...
Jay Rock Posted December 16, 2020 Share Posted December 16, 2020 (edited) In loyverse API all id have datatype UUID, in back-office Long, You should get list employees using api request. https://api.loyverse.com/v1.0/employees Edited December 16, 2020 by Jay Rock Link to comment Share on other sites More sharing options...
Zad Posted December 16, 2020 Author Share Posted December 16, 2020 I tried to get employees list, but it also asks for uuid !! this is the get_employees url: https://developer.loyverse.com/docs/#tag/Employees/paths/~1employees/get and one of the QUERY PARAMETERS is employee_ids. and this parameter also requires uuid, not id! Link to comment Share on other sites More sharing options...
Jay Rock Posted December 16, 2020 Share Posted December 16, 2020 Why you cannot use uuid? Link to comment Share on other sites More sharing options...
Zad Posted January 4, 2021 Author Share Posted January 4, 2021 I can't find it. it's not appearing on the link as you suggested. Link to comment Share on other sites More sharing options...
Jay Rock Posted January 5, 2021 Share Posted January 5, 2021 (edited) Please read carefully documentation https://developer.loyverse.com/docs/ if you have more questions and you want to have more quick response better to contact customer support Edited January 5, 2021 by Jay Rock Link to comment Share on other sites More sharing options...
obejohn Posted April 27, 2021 Share Posted April 27, 2021 Hi Zad, 1. Open Employees in the Loyverse API that you have imported into Postman. 2. Select 'Get a list of employees' 3. Uncheck all of the Query Params, including the 'employee_ids' 4. Send the query (make sure you have set your 'Authorization' tab to 'Bearer Token' if your not inheriting the key The result will return a list of employees including their UUID. Link to comment Share on other sites More sharing options...
Recommended Posts