Hello we are trying to retrieve the TimeZone of Companies throught Api.
We are using cluster-api.simplybook.pro to retrieve a token and then call again a call to retrieve a token to authenticate calls for a specific company.
Then we use this token to make a call in user-api-v2.simplybook.pro to retrieve the appointment details.
This part works what we require is a call that will return the TimeZone of the store so we can handle correctly the start and end date of the appointment.
We don’t want to use company specific passwords or api keys to do the call but use the cluster authentication.
Could you help with what api we should call and how to authenticate ?
Since you’re already authenticating via the cluster and using user-api-v2.simplybook.pro to fetch appointment details, you can use that same token to retrieve the company timezone. Simply make a GET request to: GET ``https://user-api-v2.simplybook.pro/admin/company/info
You are right the https://user-api-v2.simplybook.pro/admin/company/info i must have used the wrong api before but i am seeing some think weird i get this time zone for all the companies
“timezone”: “Asia/Nicosia”,
while in simplybook i have set up the time zone as some think different