POST

Confirm Booking


Updates the booking status to CONFIRMED without checking whether the relevant slot or schedule is still available.

eCommerce checkout restriction

Call this method only when using a custom checkout page. Don't call it when using a Wix eCommerce checkout. In such cases, Wix automatically updates the booking status based on the paymentStatus of the corresponding Wix eCommerce order.

When to call Confirm Booking

When using a custom checkout flow for free bookings, call this method to confirm bookings even when a double booking conflict exists. The alternative Confirm or Decline Booking method doesn't support confirming double-booked free bookings in this scenario.

When to call Confirm Or Decline Booking instead

Confirm Booking doesn't check whether a slot or schedule is still available. For these checks, call Confirm or Decline Booking instead.

Original status validation

You can only confirm bookings with a status of PENDING, CREATED, or WAITING_LIST.

Double bookings

Confirm Booking doesn't check whether a slot or schedule is still available. You can specify

Copy

to forcefully set the booking's doubleBooked flag to true, regardless of a potential double booking conflict. You must call with Manage Bookings permissions to do so. For the default flow control settings {"checkAvailabilityValidation": false}, the specified doubleBooked value is ignored.

Payment status

Also updates the booking's paymentStatus, if you specify a new payment status.

Notify customers

You can specify a participantNotification.message for the customer. To send the message, you must also specify participantNotification.notifyParticipants as true.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Bookings
Learn more about app permissions.
Method Declaration
Copy
Errors
404Not Found

There is 1 error with this status code.

428Failed Precondition

There are 3 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?