[#70] multiple bookings

Migrated from Redmine #70 | Author: Miodrag Dragic
Status: Resolved | Priority: High, I’m very impatient | Created: 2017-11-28


I need to implement your api for jojo nails. Documentation for Api is not very good (please add more code for scenarios). Can you give me the example how to implement multiple bookings throw api?

Dmytro Bondarev wrote:

Please use
API documentation | SimplyBook.me Online Scheduling method to create batch.
after this you can use this id in book method API documentation | SimplyBook.me Online Scheduling
after you added all bookings you need you need to call API documentation | SimplyBook.me Online Scheduling

Miodrag Dragic wrote:

i have new question about book api method. in documentation is written this book ($eventId, $unitId, $date, $time, $clientData, , $count, $batchId, $recurringData) and @param Integer $eventId
@param Integer $unitId
@param String $date in Y-m-d format
@param String $time in H:i:s format
@param Object $clientData eg. {name: ‘Name’, email: ‘test@gmail.com’, phone: ‘+38099999999’}
@param array
@param Integer $count bookings count, min. 1 (using for group bookings batch). (optional)
@param Integer $batchId add booking to multiple bookings batch. (optional)
@param Array $recurringData make booking recurrent. (optional)
@return Object

  • $clientData, , $count - for param array = null?
  • if I add $batchId, what i have to put in $count?
  • Do you have testing platform to try ours code?

BR
Miodrag

Miodrag Dragic wrote:

one more
confirmBookingBatch ($batchId, $batchType, $sign)
Confirms booking batch. Signature is required.
$sign = md5($batchId . $batchHash . $secret)
Call this method from server side only
@param Integer $batchId
@param String $batchType
@param String $sign
@return Boolean

What is $batchType?

Dmytro Bondarev wrote:

if I add $batchId, what i have to put in $count?
you should put - 1

What is $batchType?
you will get this value from book method.

Do you have testing platform to try ours code?
you can register free company and test it there. Or you can try API explorer API documentation | SimplyBook.me Online Scheduling

Erik Joling wrote:

How long does a multiple booking exist in Simplybook when it’s not (yet) confirmed?

And when I add an extra multiple booking to a batch, will the time be extended?

Dmytro Bondarev wrote:

10 minutes. It will not be extended.

Erik Joling wrote:

It will not be extended.

It seems to be extended based on some tests I did.

Erik Joling wrote:

It will not be extended.
It seems to be extended based on some tests I did.

Could you check this out? @Dmitry Bondarev

Dmytro Bondarev wrote:

Hi! 10 minutes from last booking, that was made.
Yes, sorry it will be extended.

Erik Joling wrote:

No problem, thanks

(Short original content)