[#314] Free slots between dates

Migrated from Redmine #314 | Author: David Saenz
Status: New | Priority: Low, I can wait | Created: 2019-01-21


Hi,
is possible get all free slots between dates?

Thanks!

David Saenz wrote:

David Saenz wrote:

Hi,
is possible get all free slots between dates?

Thanks!

In this picture you can se all my “slots”.
It’s possible to know in one api call if exist any of this intervals without books?

David Saenz wrote:

David Saenz wrote:

David Saenz wrote:

Hi,
is possible get all free slots between dates?

Thanks!

In this picture you can se all my “slots”.
It’s possible to know in one api call if exist any of this intervals without books?

http://www.herokidstudio.es/slots.png

Redmine Admin wrote:

Hi,

You can try this function

Not sure if we have something else fit your request

David Saenz wrote:

Redmine Admin wrote:

Hi,

You can try this function
Company public service methods - Company public service methods - SimplyBook.me

Not sure if we have something else fit your request

It’s what I thought but what this call gives me is just the slots defined in the schedule, but it does not tell me if they are busy or not.
Maybe a partner of yours knows an easy way to do it?

Redmine Admin wrote:

This function returns only available slots. Busy slots will not be included

David Saenz wrote:

Ok,
I’m probably doing something wrong.
My call is the following:
$data = $client->getServiceAvailableTimeIntervals( “2018-12-10”, “2019-01-27”, 1, 1 );

I receibe all slots on all days.

My third and fourth parameter is 1, but honestly, I’m not sure what the unitid is.
I knoe the service Id is 1, but I don’t now what is unitid.

I only know that if I do not add it, it does not return any value to me.

Could you clarify what it is unitid and where can I check them?

David Saenz wrote:

Sorry, the method is getAvailableTimeIntervals not getServiceAvailableTimeIntervals.
David Saenz wrote:

Ok,
I’m probably doing something wrong.
My call is the following:
$data = $client->getServiceAvailableTimeIntervals( “2018-12-10”, “2019-01-27”, 1, 1 );

I receibe all slots on all days.

My third and fourth parameter is 1, but honestly, I’m not sure what the unitid is.
I knoe the service Id is 1, but I don’t now what is unitid.

I only know that if I do not add it, it does not return any value to me.

Could you clarify what it is unitid and where can I check them?

Redmine Admin wrote:

Unit id is your service provider id. You should have at least one service provider in system

David Saenz wrote:

Redmine Admin wrote:

Unit id is your service provider id. You should have at least one service provider in system

Ok, is 1 too.
I do not understand why I receive all the free slots for all the dates indicated if I pass the values correctly.

):

Redmine Admin wrote:

What is your company login?

David Saenz wrote:

audietron

(Short original content)

David Saenz wrote:

And you can check the api response here

http://dev.etronroom/request/sb/check-availability/test.php

David Saenz wrote:

Sorry, here:
http://www.audietronroom.de/request/sb/check-availability/test.php

Redmine Admin wrote:

Investigation shows your provider has 5 slots. Which means 1 booking does not block availability because he still have 4 slots. you need to pass 5 as quantity parameter into this function to get available slots for 5 clients at same time

David Saenz wrote:

Thanks a lot for your time (: