Start a new topic

Next availability

In the API the APPOINTMENTS endpoints give the ability to list every appointments for every people in the staff.


Is there a way to get a list of next availabilities with the following parameters:

  • service id
  • start datetime
  • end datetime
  • staff id : optional

?

Thanks



Hello Mathieu,


Sure, you can get list of all available time slots, using either nextSlots or freeSlots:

https://developers.agendize.com/v2.1/scheduling/reference/widget/index.jsp


In both cases, you can look up available time slots for [shortest] or [longest] service. And for nextSlots, start/end datetime are not mandatory.


I hope this helps!


Best regards


Thank you, that's exactly what I was looking for... I got confused by the name "widget", I did not expect to find this in this section.


Have a good day!

Hello,


Following up on your feedback, the section "Widget" is now renamed "Available time slots" in our documentation (same URL though: https://developers.agendize.com/v2.1/scheduling/reference/widget/index.jsp)


Best regards

Thank you.

Is there a way to precise an hour range, for example in the parameters startDate, endDate?

I tried startDate=2022-03-23T09:00:00 and endDate=2022-03-23T10:00:00 but I still get slots outside the hour range.


Thanks!

Hello,

Actually, the startDate & endDate are simply expected as yyyy-MM-dd format, without any hour limit.

I hope this helps!

Best regards,

Julien

Login or Signup to post a comment