> 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: confirmBooking(bookingId: string, revision: string, options: ConfirmBookingOptions) # Method package: wixBookingsV2 # Method menu location: wixBookingsV2 --> bookings --> confirmBooking # Method Link: https://dev.wix.com/docs/velo/apis/wix-bookings-v2/bookings/confirm-booking.md # Method Description: Confirms a booking request and changes the booking status to `CONFIRMED`. Calling this method doesn't check whether a slot or schedule is still available at this time. You can only confirm bookings for services that require the owner's manual approval for bookings and that have a status of `PENDING`. For appointment services the slot may become unavailable, depending on the [service's](https://support.wix.com/en/article/creating-the-right-booking-service-for-your-business) `policy.bookingApprovalPolicy.requestsAffectsAvailability`. Calling this method also changes the [session's](https://www.wix.com/velo/reference/wix-bookings-backend/sessions/getsession) `participants.approvalStatus` to `APPROVED`. You can pass a `participantNotification.message` to notify the customer of the confirmation. You also need to pass `participantNotification.notifyParticipants` as `true` to actually send the message. Bookings are automatically confirmed when the service is configured to automatically confirm bookings and the [eCommerce order](https://www.wix.com/velo/reference/wix-ecom-backend/orders) has been approved. The slot's or schedule's availability is checked just before confirming the booking as part of the automatic flow. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## confirmBooking example for dashboard page code ```javascript import { bookings } from 'wix-bookings.v2'; async function confirmBooking(bookingId, revision, options) { try { const result = await bookings.confirmBooking(bookingId, revision, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## confirmBooking 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 elevatedConfirmBooking = elevate(bookings.confirmBooking); export const confirmBooking = webMethod( Permissions.Anyone, async (bookingId, revision, options) => { try { const result = await elevatedConfirmBooking(bookingId, revision, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---