[#734] API Book

Migrated from Redmine #734 | Author: Jörg Sarodnick
Status: New | Priority: Normal | Created: 2021-07-13


Hello developers, please help me. The API usage:
What value do you have to transfer to BOOK when booking.
That the booking is placed in an open booking.

That the customer booking can still be confirmed. Which value influences the status of the booking in BOOK? book ($ eventId, $ unitId, $ date, $ time, $ clientData, $ Additional, $ count, $ batchId, $ recurringData)

Michael K wrote:

Jörg Sarodnick wrote:

Hello developers, please help me. The API usage:
What value do you have to transfer to BOOK when booking.
That the booking is placed in an open booking.

That the customer booking can still be confirmed. Which value influences the status of the booking in BOOK? book ($ eventId, $ unitId, $ date, $ time, $ clientData, $ Additional, $ count, $ batchId, $ recurringData)

Miklegene wrote:

Guys, sorry if not this text not in separate answer, but I don’t see rights to make it. So, there is my working code as working example:

        var bookingResult = client.book(
          clientBookingData.lessonId, 
          clientBookingData.teacherId, 
          clientBookingData.startDate, 
          clientBookingData.startTime, 
          {
            'name': clientBookingData.name,
            'email': clientBookingData.email
          }, 
          {
            'dateOfBirth': clientBookingData.dateOfBirth
          }, 
          1
        );
        
        console.log(bookingResult);

lessonId - service id (cooking meals, enlish lesson, etc)
teacherId - service provider id (tutor, teacher, etc)

Other vars looks understandable.

Michael K wrote:

Jörg Sarodnick wrote:

Hello developers, please help me. The API usage:
What value do you have to transfer to BOOK when booking.
That the booking is placed in an open booking.

That the customer booking can still be confirmed. Which value influences the status of the booking in BOOK? book ($ eventId, $ unitId, $ date, $ time, $ clientData, $ Additional, $ count, $ batchId, $ recurringData)

Redmine Admin wrote:

Hi, booking made by book() method is confirmed bookign, no need to pass status. If you have approve booking plugin then you may need to approve this booking manually