Updates the booking status to DECLINED
and updates the relevant session's
participants.approvalStatus
to DECLINED
without checking whether the relevant
slot or schedule is still available.
Call this method only when using a custom checkout page. Don't
call it when using a Wix eCommerce checkout
(SDK | REST).
In such cases, Wix automatically updates the booking status based on
the paymentStatus
of the corresponding Wix eCommerce order
(SDK | REST).
The method doesn't check whether a slot or schedule is still available. For these checks you can call Confirm or Decline Booking (SDK | REST).
You can only decline bookings with a status
of PENDING
, CREATED
, or
WAITING_LIST
.
Also updates the booking's paymentStatus
, if you specify a new payment
status.
You can specify a participantNotification.message
for the customer. To send
the message, you must also specify participantNotification.notifyParticipants
as true
.
You can only call this method when authenticated as a Wix app or Wix user identity.
There is 1 error with this status code.
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.