Declines a pending booking request.
The declineBooking()
function returns a Promise that resolves when the specified booking is declined.
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 declined, the following events occur:
PENDING_APPROVAL
to DECLINED
.DECLINED
.participantNotification
properties.Note: Only users with Bookings Admin permissions can decline a booking. You can override the permissions by setting the suppressAuth
options to true
.
ID of the booking to be declined.
An object representing the available options for declining a booking.