However when i fetch the hours from API using getWorkDaysInfo(‘2020-03-30’, ‘2020-04-05’), this is what i get
2020-03-30: [
{from: "08:55:00", to: "09:00:00"},
{from: "10:30:00", to: "11:00:00"},
{from: "13:25:00", to: "13:30:00"},
{from: "14:00:00", to: "19:00:00"},
{from: "19:25:00", to: "19:30:00"},
{from: "19:55:00", to: "21:00:00"}
],
2020-03-31: [{from: "14:00:00", to: "20:00:00"}],
2020-04-01: [{from: "07:00:00", to: "23:00:00"}],
2020-04-02: [{from: "09:00:00", to: "20:00:00"}],
2020-04-03: [{from: "07:00:00", to: "23:00:00"}],
2020-04-04: [{from: "07:00:00", to: "23:00:00"}],
2020-04-05: [{from: "07:00:00", to: "23:00:00"}]
Now surprisingly when I tried using a second account it had monday messed up. Shouldn’t getWorkDaysInfo send me regular hours of my company when I pass only start and end date? What is going on here?
validate {"method":"getUserToken","params":["enkidsco","*****","*****"],"id":1}
Company {"method":"getWorkDaysInfo","params":["2020-03-30","2020-04-05"],"id":1}
Get user {"method":"getWorkDaysInfo","params":["2020-03-30","2020-04-05","18"],"id":2}
You think it can do it? or i can email you the logins
Thanks
The issue is consistent, see below 2 weeks data from 2 different years.. Definitly I have NO special days setup, the data is same and not correct. I notice the company hours does change without us doing any thing. This is a very serious bug it’s stopping all our teachers from updating their availibility…
I am trying to get regular weekly hours of company EXACTLY THIS screen which is NOT affected by special days Screenshot by Lightshot : of course WITH break timings..
Based on this data, I will setup REGULAR weekly schedule for my service providers… EXACTLY LIKE THIS: Screenshot by Lightshot of course with breaktimes… If you can suggest something more reliable on this.
2021-01-04: [{from: "14:00:00", to: "19:00:00"}]
2021-01-05: [{from: "14:00:00", to: "20:00:00"}]
2021-01-06: [{from: "07:00:00", to: "23:00:00"}]
2021-01-07: [{from: "09:00:00", to: "20:00:00"}]
2021-01-08: [{from: "07:00:00", to: "23:00:00"}]
2021-01-09: [{from: "07:00:00", to: "23:00:00"}]
2021-01-10: [{from: "07:00:00", to: "23:00:00"}]
2020-01-06: [{from: "14:00:00", to: "19:00:00"}]
2020-01-07: [{from: "14:00:00", to: "20:00:00"}]
2020-01-08: [{from: "07:00:00", to: "23:00:00"}]
2020-01-09: [{from: "09:00:00", to: "20:00:00"}]
2020-01-10: [{from: "07:00:00", to: "23:00:00"}]
2020-01-11: [{from: "07:00:00", to: "23:00:00"}]
2020-01-12: [{from: "07:00:00", to: "23:00:00"}]
getWorkDaysInfo ($from, $to, $unitId, $eventId, $count, $productIds)
Returns an information about working hours and break times for specified service and performer for a period
between two dates. If only service specified then information about performer (or performers) will be taken from
service configuration. Method returns a list of objects for each date in specified period. Count of objects in
list depends on break times. For example if performer works from 9:00 till 19:00 with one hour break at 13:00 method
returns:
This method will not provide company schedule if no performer id passed. It will calculate union schedule for all providers.
we do not provide full API to manage availability yet. So, there is no way to get breaktime settings. You can only get available slots/intervals using API.