Retrieve TimeZone of company using cluster authentication

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 ?

cluster.name=dolcegabbana

hi, you can get API token via cluster API and then use old JSON-RPC API to call getCompanyParam('company_timezone') API documentation | SimplyBook.me Online Scheduling

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

This happened for two companies i tried to test none of the two have the timezone set as “timezone”: “Asia/Nicosia”,

Could you help me with this maybe i am missing some setting ?

we’ve fixed the timezone retrieval issue.

You can now use both methods to get the correct timezone:

  1. https://user-api-v2.simplybook.pro/admin/company/info - the timezone field will now return the correct company timezone.
  2. https://user-api-v2.simplybook.pro/admin/config you can also find the timezone under the company_timezone field.
1 Like