confirmBooking( )


Confirms a booking request.

The confirmBooking() function returns a Promise that resolves to the ID of the confirmed booking.

A service can be set to "Automatically accept all bookings when staff are available" or "Manually approve or decline booking requests" in the Online Booking Preferences page under "Additional Settings". When set to manual, the business must confirm or decline each request.

When a booking is confirmed, the following events occur:

  • The booking status changes to CONFIRMED.
  • The participant status in the session changes to APPROVED.
  • Slot availability is updated.
  • An offline order is created in the Wix Payment Service.
  • An email notification is sent to the participant according to the participantNotification properties.

Note: Only users with Bookings Admin permissions can confirm a booking. Override the permissions by setting the suppressAuth options to true.

Method Declaration
Copy
Method Parameters
bookingIdstringRequired

ID of the booking to be confirmed.


optionsConfirmBookingOptionsRequired

An object representing the available options for confirming a booking.

Returns
Return Type:Promise<string>
Was this helpful?
Yes
No