> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: declineBooking(bookingId: string, revision: string, options: DeclineBookingOptions) # Method package: wixBookingsV2 # Method menu location: wixBookingsV2 --> bookings --> declineBooking # Method Link: https://dev.wix.com/docs/velo/apis/wix-bookings-v2/bookings/decline-booking.md # Method Description: Declines a `PENDING` booking request and changes the booking status to `DECLINED`. Calling this method also changes the [session's](https://www.wix.com/velo/reference/wix-bookings-backend/sessions/getsession) `participants.approvalStatus` to `DECLINED`. You can only decline bookings for services that require the owner's manual approval for bookings and that have a status of `PENDING`. You can pass a `participantNotification.message` to notify the customer of the decline. You also need to pass `participantNotification.notifyParticipants` as `true` to actually send the message. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## declineBooking example for dashboard page code ```javascript import { bookings } from 'wix-bookings.v2'; async function declineBooking(bookingId, revision, options) { try { const result = await bookings.declineBooking(bookingId, revision, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## declineBooking example for exporting from backend code ```javascript import { bookings } from 'wix-bookings.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedDeclineBooking = elevate(bookings.declineBooking); export const declineBooking = webMethod( Permissions.Anyone, async (bookingId, revision, options) => { try { const result = await elevatedDeclineBooking(bookingId, revision, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---