> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ConfirmBooking

# Package: bookings

# Namespace: Bookings

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-booking.md

## Permission Scopes:
Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS

## Introduction

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

---

## REST API

### Schema

```
 Method: confirmBooking
 Description: 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](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction.md). In such cases, Wix automatically updates the booking status based on the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction.md).  ### 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](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) 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](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) 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  ```json { "flowControlSettings": { "checkAvailabilityValidation": true }, "doubleBooked": true } ``` 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`.
 URL: https://www.wixapis.com/_api/bookings-service/v2/bookings/{bookingId}/confirm
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  revision
 Method parameters: 
   param name: doubleBooked | type: doubleBooked | description: Whether this booking has a conflict with at least 1 other confirmed booking.  
   param name: flowControlSettings | type: ConfirmBookingFlowControlSettings    
        - name: checkAvailabilityValidation | type: boolean | description: Whether the availability is checked before confirming the booking.  When specifying `false`, a booking is only updated with status `CONFIRMED`. Default: `false`.  
   param name: participantNotification | type: ParticipantNotification    
        - name: notifyParticipants | type: boolean | description: Whether to send a message about the changes to the customer.  Default: `false`  
        - name: message | type: string | description: Custom message to send to the participants about the changes to the booking.  
        - name: metadata | type: object | description: Information about the delivery channels used to send the notification. For example, `{"channels": "SMS" }`, `{"channels": "EMAIL" }`, or `{"channels": "EMAIL, SMS" }`.  | validation: format map
   param name: paymentStatus | type: PaymentStatus | description: Payment status. Automatically updated when using eCommerce checkout APIs.  
      - enum:
           UNDEFINED - Undefined payment status.
           NOT_PAID - The booking isn't paid.
           PAID - The booking is fully paid.
           PARTIALLY_PAID - The booking is partially paid.
           REFUNDED - The booking is refunded.
           EXEMPT - The booking is free of charge.
           FAILED - The most recent subscription payment for this booking failed. If the payment is later recovered, the status changes back to `PAID`. Returned only for course bookings with subscription pricing.
   param name: revision | type: revision | description: Revision number, which increments by 1 each time the booking is updated. To prevent conflicting changes, the current revision must be passed when updating the booking. | required: true | validation: format int64
   param name: sendSmsReminder | type: sendSmsReminder | description: Whether to send an SMS reminder to the customer 24 hours before the session starts. The phone number is taken from `contactDetails.phone`.  
 Return type: ConfirmBookingResponse
  - name: booking | type: Booking | description: Confirmed booking.  
     - ONE-OF: 
        - name: totalParticipants | type: integer | description: Total number of participants. When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer [variants and options](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  | validation: minimum 1
        - name: participantsChoices | type: ParticipantChoices | description: Information about the booked service choices and participant count for each choice. When creating a booking, use this field only if the booking includes multiple [service variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  For example, use this for a spa package booking that includes different service levels: - 2 participants chose "Standard Package". - 1 participant chose "VIP Package".  
           - name: serviceChoices | type: array<ServiceChoices> | description: Information about the booked service choices. Includes the number of participants.  | validation: minItems 1, maxItems 20
              - name: numberOfParticipants | type: integer | description: Number of participants for this [variant](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  | validation: minimum 1, format int32
              - name: choices | type: array<ServiceChoice> | description: Service choices for these participants.  | validation: maxItems 5
                 - ONE-OF: 
                    - name: custom | type: string | description: Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list. Choices are specific values for an option the customer can choose to book. For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`. Each choice may have a different price.  
                    - name: duration | type: Duration | description:   
                       - name: minutes | type: integer | description: Duration of the service in minutes. Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes  | validation: minimum 1, maximum 44639
                       - name: name | type: string | description: Name of the duration option. Defaults to the formatted duration e.g. "1 hour, 30 minutes".  | validation: maxLength 255
                    - name: dateTime | type: DateTimeRule | description: The matched date-time pricing rule. Available only for `DATE_TIME` options.  
                       - name: name | type: string | description: Name of the date-time rule. For example, "Weekend mornings".  | validation: maxLength 255
                    - name: participantRange | type: ParticipantsRange | description: The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options.  
                       - name: name | type: string | description: Name of the participants range. For example, "Large group".  | validation: maxLength 255
                    - name: durationRange | type: DurationRange | description: The matched duration range tier. Available only for `DURATION_RANGE` options.  
                       - name: name | type: string | description: Name of the duration range tier. For example, "Long stay".  | validation: maxLength 255
                 - name: optionId | type: string | description: GUID of the corresponding option for the choice. For example, the choice `child` could correspond to the option `ageGroup`. In this case, `optionId` is the GUID for the `ageGroup` option.  | validation: format GUID
                 - name: choiceId | type: string | description: GUID of the service choice. When provided, the choice details are automatically populated based on this GUID.  | validation: format GUID
     - name: id | type: string | description: Booking GUID.  | read-only: true | validation: format GUID
     - name: bookedEntity | type: BookedEntity | description: An object describing the bookable entity - either a specific time slot or a recurring schedule.  The structure depends on the type of service being booked:  __For appointment services__: Use `slot` to book a specific time slot with a service provider. Appointments are typically one-time sessions at a specific date and time.  __For class services__: Use `slot` to book a specific class session. Classes are individual sessions that can have multiple participants.  __For course services__: Use `schedule` to book an entire course consisting of multiple sessions over time. Courses are recurring, multi-session offerings.  Choose the appropriate field based on your service type and booking requirements.  
        - ONE-OF: 
           - name: slot | type: BookedSlot | description: [Booked slot](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability.md).  Specify `slot` when creating bookings for: - __Appointment-based services__: Individual sessions with service providers (consultations, treatments). Wix Bookings creates a new session when the booking is confirmed. - __Class services__: Group sessions at specific times (fitness classes, workshops). Wix Bookings links the booking to an existing scheduled session.  For course services, specify `schedule` instead of `slot`.  
              - name: serviceId | type: string | description: Service GUID.  
              - name: scheduleId | type: string | description: Schedule GUID.  
              - name: eventId | type: string | description: GUID of the corresponding [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction.md). Available for both appointment and class bookings, not available for course bookings. For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`. For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.  | validation: minLength 36, maxLength 250
              - name: startDate | type: string | description: The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  
              - name: endDate | type: string | description: The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  
              - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the slot was shown to the customer at the time of booking. Wix Bookings ensures that the slot is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.  
              - name: resource | type: BookedResource | description: [Primary resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md) for the booking. For example, the [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction.md) providing the service.  
                 - name: id | type: string | description: GUID of the booking's primary resource.  | validation: format GUID
                 - name: name | type: string | description: Resource's name at the time of booking.  | validation: maxLength 40
                 - name: email | type: string | description: Resource's email at the time of booking.  | validation: maxLength 500
                 - name: scheduleId | type: string | description: GUID of the schedule belonging to the booking's primary resource.  | validation: format GUID
                 - name: type | type: string | description: GUID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md) associated with this resource. For example, `"1cd44cf8-756f-41c3-bd90-3e2ffcaf1155"` for a staff member resource type.  | read-only: true | validation: format GUID
              - name: location | type: Location | description: Location where the session takes place.  
                 - name: id | type: string | description: Business location GUID. Available only for locations that are business locations, meaning the `location_type` is `"OWNER_BUSINESS"`.  | validation: format GUID
                 - name: name | type: string | description: Location name.  
                 - name: formattedAddress | type: string | description: The full address of this location.  
                 - name: formattedAddressTranslated | type: string | description: The full translated address of this location.  | validation: maxLength 512
                 - name: locationType | type: LocationType | description: Location type.  
                         - enum:
                         -     UNDEFINED: Undefined location type.
                         -     OWNER_BUSINESS: The business address, as set in the site’s general settings.
                         -     OWNER_CUSTOM: The address as set when creating the service.
                         -     CUSTOM: The address as set for the individual session.
              - name: resourceSelections | type: array<ResourceSelection> | description: Information about how the customer has selected resources for the booking. Each resource type may have a different selection method. Check `resource` for resource details.  | validation: maxItems 3
                 - name: resourceTypeId | type: string | description: GUID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md).  | validation: format GUID
                 - name: selectionMethod | type: SelectionMethod | description: Information about how the customer has selected the resource for this resource type.  
                         - enum:
                         -     SPECIFIC_RESOURCE: The customer explicitly chose a particular resource.
                         -     ANY_RESOURCE: The customer explicitly chose "any available resource" for this resource type.
                         -     NO_SELECTION: The customer wasn't offered a resource selection or agreement option for this resource type.
                 - name: requestedGender | type: RequestedGenderValue | description: Gender the customer narrowed "any available resource" to, for a staff member resource type.  Populated only when `selectionMethod` is `ANY_RESOURCE`, the resource type is the staff member resource type, and the business allows customers to narrow "any available" by gender.  Omit the field for a plain "any available staff member" with no gender narrowing.  Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction.md). Creating a booking with this field fails when it's disabled.  
                    - name: gender | type: RequestedGender | description: Requested gender.  
                             - enum:
                             -     ANY_MALE: The customer requested any available male staff member.
                             -     ANY_FEMALE: The customer requested any available female staff member.
              - name: allDay | type: boolean | description: Whether the booked slot spans one or more full days. For class bookings, this value is synced from the linked calendar event. For appointment bookings, this value is derived from the availability slot at booking creation or reschedule time.  When `true`, `startDate` is set to `00:00:00` of the first day and `endDate` is set to `00:00:00` of the day after the last day (exclusive). Midnight boundaries are interpreted in the slot's `timezone`.  Default: `false`  
              - name: durationUnitType | type: DurationUnitType | description: Duration unit type for the booking. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object.md) configured with a duration range, such as hourly or daily duration-range services. Use together with `durationUnitCount` to determine the booked duration.  Returned only when the service has a `schedule.availabilityConstraints.durationRange`.  | read-only: true 
                     - enum:
                     -     HOUR: Hourly duration. When `durationUnitType` is `HOUR`, `durationUnitCount` represents the booked duration in minutes.
                     -     DAY: Daily duration. When `durationUnitType` is `DAY`, `durationUnitCount` represents the booked duration in days.
              - name: durationUnitCount | type: integer | description: Number of booked duration units. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object.md) configured with a duration range. The meaning depends on `durationUnitType`: - `HOUR`: Duration in minutes. For example, `120` for a 2-hour booking. - `DAY`: Duration in days. For example, `3` for a 3-day booking.  Returned only when the service has a `schedule.availabilityConstraints.durationRange`.  | read-only: true | validation: minimum 1, maximum 1440, format int32
           - name: schedule | type: BookedSchedule | description: [Booked schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction.md).  Specify `schedule` when creating bookings for: - __Course services__: Multi-session offerings spanning weeks or months (educational courses, training programs). Wix Bookings enrolls participants in all sessions defined by the course schedule.  
              - name: scheduleId | type: string | description: [Schedule GUID](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction.md).  
              - name: serviceId | type: string | description: Booked service GUID.  | validation: format GUID
              - name: location | type: Location | description: [Location](https://dev.wix.com/docs/rest/business-management/locations/introduction.md) where the schedule's sessions take place.  | read-only: true 
              - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the schedule was shown to the customer at the time of booking. Wix Bookings ensures that the schedule is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.  
              - name: firstSessionStart | type: string | description: Start time of the first session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  | read-only: true 
              - name: lastSessionEnd | type: string | description: End time of the last session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  | read-only: true 
        - name: title | type: string | description: Session title at the time of booking. If there is no pre-existing session, for example for appointment-based services, Wix Bookings sets `title` to the service name.  | read-only: true | validation: maxLength 6000
        - name: tags | type: array<string> | description: List of tags for the booking.  - "INDIVIDUAL": For bookings of appointment-based services. Including when the appointment is for a group of participants. - "GROUP": For bookings of individual class sessions. - "COURSE": For course bookings.  
     - name: contactDetails | type: ContactDetails | description: Contact details of the site visitor or [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members/introduction.md) making the booking. When `bookedForSomeoneElse` is `true`, these are the guest's contact details.  
        - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
        - name: firstName | type: string | description: Contact's first name. When populated from a standard booking form, this property corresponds to the `name` field.  
        - name: lastName | type: string | description: Contact's last name.  
        - name: email | type: string | description: Contact's email. If no [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object.md) with this email exist, a new contact is created. Used to validate coupon usage limitations per contact. If not specified, the coupon usage limitation will not be enforced. (Coupon usage limitation validation is not supported yet).  | validation: format EMAIL
        - name: phone | type: string | description: Contact's phone number.  
        - name: fullAddress | type: Address | description: Contact's full address.  
           - ONE-OF: 
              - name: streetAddress | type: StreetAddress | description: Street name, number and apartment number.  
                 - name: number | type: string | description: Street number.  
                 - name: name | type: string | description: Street name.  
                 - name: apt | type: string | description: Apartment number.  
              - name: addressLine | type: string | description: Main address line, usually street and number, as free text.  
           - name: country | type: string | description: Country code.  | validation: format COUNTRY
           - name: subdivision | type: string | description: Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).  
           - name: city | type: string | description: City name.  
           - name: postalCode | type: string | description: Zip/postal code.  
           - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.  
           - name: formattedAddress | type: string | description: A string containing the full address of this location.  
           - name: hint | type: string | description: Free text to help find the address.  
           - name: geocode | type: AddressLocation | description: Coordinates of the physical address.  
              - name: latitude | type: number | description: Address latitude.  | validation: format double
              - name: longitude | type: number | description: Address longitude.  | validation: format double
           - name: countryFullname | type: string | description: Country full name.  
           - name: subdivisions | type: array<Subdivision> | description: Multi-level subdivisions from top to bottom.  
              - name: code | type: string | description: Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).  
              - name: name | type: string | description: Subdivision full name.  
        - name: countryCode | type: string | description: Contact's country in [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  | validation: format COUNTRY
     - name: status | type: BookingStatus | description: Booking status. A booking is automatically confirmed if the service allows it and an eCommerce order is created. It is automatically declined if there is a double booking and the customer hasn't paid or is eligible for an automatic refund. Currently, only payments with pricing plans are automatically refundable.  
         - enum:
         -     CREATED: The booking was created, but the customer hasn't completed the related eCommerce order yet.
         -     CONFIRMED: The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their [services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction.md) to automatically confirm all `PENDING` bookings.
         -     CANCELED: The customer has canceled the booking. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction.md) they may have to pay a [cancellation fee](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction.md).
         -     PENDING: The merchant must manually confirm the booking before it appears in the business calendar.
         -     DECLINED: The merchant has declined the booking before the customer was charged.
         -     WAITING_LIST: Currently, you can't call [Register to Waitlist](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist.md) for course or appointment bookings, even though this is supported in live sites.
     - name: paymentStatus | type: PaymentStatus | description: The payment status of the booking. This field automatically syncs with the `paymentStatus` of the corresponding [eCommerce order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md) when customers use Wix eCommerce checkout.  ### Integration patterns  __When using Wix eCommerce checkout__: Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status. Do not manually update this field.  __When using custom payment flows__: You can manually update the payment status with [Confirm Booking or Decline Booking](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) to reflect the customer's payment state.  __For membership/pricing plan payments__: Wix Bookings automatically manages the payment status when customers pay with an active [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction.md) subscription.  All payment statuses are supported for every booking `status`.  
         - enum:
         -     UNDEFINED: Undefined payment status.
         -     NOT_PAID: The booking isn't paid.
         -     PAID: The booking is fully paid.
         -     PARTIALLY_PAID: The booking is partially paid.
         -     REFUNDED: The booking is refunded.
         -     EXEMPT: The booking is free of charge.
         -     FAILED: The most recent subscription payment for this booking failed. If the payment is later recovered, the status changes back to `PAID`. Returned only for course bookings with subscription pricing.
     - name: selectedPaymentOption | type: SelectedPaymentOption | description: Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md), unless `skipSelectedPaymentOptionValidation` is `true`.  When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction.md), this field is required. Otherwise, the Create Booking call fails. For custom checkouts, you don't have to specify this field.  
         - enum:
         -     UNDEFINED: Undefined payment option.
         -     OFFLINE: Offline payment.
         -     ONLINE: Online payment.
         -     MEMBERSHIP: Payment using a Wix Pricing Plan.
         -     MEMBERSHIP_OFFLINE: Customers can pay only in person with a Wix Pricing Plan, while the Wix user must manually redeem the pricing plan in the dashboard.
     - name: createdDate | type: string | description: Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true | validation: format date-time
     - name: externalUserId | type: string | description: External user GUID that you can provide.  
     - name: revision | type: string | description: Revision number to be used when updating, rescheduling, or cancelling the booking. Increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes, the current revision must be specified when updating the booking.  | validation: format int64
     - name: createdBy | type: IdentificationData | description: GUID of the creator of the booking. If `appId` and another GUID are present, the other GUID takes precedence.  | read-only: true 
        - ONE-OF: 
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.  | validation: format GUID
           - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.  | validation: format GUID
           - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).  | validation: format GUID
           - name: appId | type: string | description: GUID of an app.  | validation: format GUID
        - name: contactId | type: string | description: GUID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.  | validation: format GUID
     - name: startDate | type: string | description: The start date of the booking in `YYYY-MM-DDThh:mm:ss.sssZ` format. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.  | read-only: true | validation: format date-time
     - name: endDate | type: string | description: The end date of the booking in `YYYY-MM-DDThh:mm:ss.sssZ` format. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true | validation: format date-time
     - name: extendedFields | type: ExtendedFields | description: Custom field data for this object. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: doubleBooked | type: boolean | description: Whether this booking overlaps with another confirmed booking. Returned only if set to `true`.  | read-only: true 
     - name: multiServiceBookingInfo | type: MultiServiceBookingInfo | description: Multi-service booking info of which the booking is part of.  | read-only: true 
        - name: id | type: string | description: Multi-service booking GUID.  | read-only: true | validation: format GUID
        - name: type | type: MultiServiceBookingType | description: Type of the multi-service booking.  
             - enum:
             -     SEQUENTIAL_BOOKINGS: Bookings must be scheduled back-to-back. Each booking starts when the previous one ends, with no gaps between them.
             -     SEPARATE_BOOKINGS: Bookings can be scheduled separately. Each booking can be at different times, not necessarily consecutive. Not currently supported.
             -     PARALLEL_BOOKINGS: Bookings occur at the same time. All bookings in the package are scheduled for the same time slot. Not currently supported.
     - name: formSubmissionId | type: string | description: GUID of the [form submission](https://dev.wix.com/docs/rest/crm/forms/form-submissions/introduction.md) associated with this booking.  | validation: format GUID
     - name: formId | type: string | description: GUID of the [form](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object.md) associated with this booking. The value depends on how the booking was created: - For bookings created with Create Booking or Bulk Create Booking, `formId` is identical to GUID of the booking form that's associated with the relevant service. - For bookings created via Create Multi Service Booking, `formId` is set to `00000000-0000-0000-0000-000000000000` (the default booking form GUID).  | read-only: true | validation: format GUID
     - name: bookedAddOns | type: array<BookedAddOn> | description: List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) associated with the booking.  | validation: maxItems 21
        - name: id | type: string | description: The GUID of the add-on.  | validation: format GUID
        - name: groupId | type: string | description: The GUID of the add-on group.  | validation: format GUID
        - name: durationInMinutes | type: integer | description: The add-on duration in minutes at the time of booking. Populated for duration-based add-ons.  | read-only: true | validation: minimum 1, maximum 1440, format int32
        - name: quantity | type: integer | description: The quantity of booked add-ons. For duration-based add-ons, `quantity` is not applicable. If `quantity` is provided as `1` for a duration-based add-on, it will be accepted but the value will be cleared. If any other value is provided, an `INVALID_ARGUMENT` error will be returned with the message: "Invalid AddOn details: either duration or quantity must be set correctly".  | validation: minimum 1, maximum 1000, format int32
        - name: name | type: string | description: Add-on `name` at the time of booking.  | read-only: true | validation: maxLength 100
        - name: nameTranslated | type: string | description: Add-on name translated to the language the customer used during booking.  | read-only: true | validation: maxLength 100
     - name: appId | type: string | description: GUID of the app that's associated with the booking. Inherited from the `appId` of the service associated with the booking. Bookings are displayed in Wix Bookings only if they are associated with the Wix Bookings app GUID or have no associated app GUID. For bookings from Wix apps, the following values apply: - Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` - Wix Services: `"cc552162-24a4-45e0-9695-230c4931ef40"` - Wix Meetings: `"6646a75c-2027-4f49-976c-58f3d713ed0f"` [Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix.md). <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->  | read-only: true | validation: format GUID
     - name: createdByAppId | type: string | description: GUID of the app that created the booking. This field is used for analytics, auditing, and tracking creation sources. This read-only field is automatically populated during booking creation by checking these sources in order: 1. The caller's App GUID from the request identity context (external app or server identity). 2. The booking's `appId` field (inherited from the service's `appId`). 3. The Wix Bookings App GUID (`13d21c63-b5ec-5912-8397-c3a5ddb27a97`) as the final fallback. <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->  | read-only: true | validation: format GUID
     - name: depositSelected | type: boolean | description: Whether the customer chooses to pay only the deposit amount upfront.  - `true`: The customer pays only the deposit amount upfront. - `false`: The customer pays the full price upfront.  Used only when `selectedPaymentOption` is `ONLINE` and the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) has a deposit amount set.  When the service supports deposit payments and `fullUpfrontPaymentAllowed` is `false`, this field must be `true`. When the service supports deposit payments and `fullUpfrontPaymentAllowed` is `true`, this field can be `true` or `false`.  
     - name: bookedForSomeoneElse | type: boolean | description: Whether a logged-in member made this booking for a guest, someone other than themselves.  When `true`, `contactDetails` are the guest's, not the member's. They aren't replaced with the details of the eCommerce order's buyer.  You can set this field to `true` only when the service's [booking policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction.md) has `bookForSomeoneElseAllowed` set to `true`. You can't set it to `true` when `selectedPaymentOption` is `MEMBERSHIP`.  Default: `false`.  

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: BOOKING_NOT_FOUND | Description: Couldn't find the booking.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: NO_OPEN_SPOTS | Description: The session or schedule is fully booked. There are no available spots remaining.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: INVALID_BOOKING_STATUS | Description: The booking status is invalid. Verify the booking status before performing this action.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: FAILED_CONFIRMING_NON_PENDING_BOOKING | Description: Can't confirm a booking that isn't in `PENDING` status. Only pending bookings can be confirmed.


```

### Examples

### Confirm a booking
```curl
curl -X POST \
'https://www.wixapis.com/bookings/v2/bookings/88214716-6ed1-4273-b089-8015c4ab2f4b/confirm' \
-H 'Authorization: <AUTH>' \
-d '{
  "participantNotification": {
    "notifyParticipants": false
  },
  "bookingId": "88214716-6ed1-4273-b089-8015c4ab2f4b",
  "revision": "2"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bookings.bookings.confirmBooking(bookingId, revision, options)
 Description: 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](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction.md). In such cases, Wix automatically updates the booking status based on the `paymentStatus` of the corresponding [Wix eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction.md).  ### 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](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) 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](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) 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  ```json { "flowControlSettings": { "checkAvailabilityValidation": true }, "doubleBooked": true } ``` 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`.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  bookingId, revision
 Method parameters: 
   param name: bookingId | type: string | description: GUID of the booking to confirm. | required: true | validation: format GUID
   param name: revision | type: ConfirmBooking   | required: true 
        - name: value | type: string | description:   
   param name: options | type: ConfirmBookingOptions  none  
        - name: participantNotification | type: ParticipantNotification | description: Information about whether to notify the customer about the confirmation and the message to send.  
           - name: notifyParticipants | type: boolean | description: Whether to send a message about the changes to the customer.  Default: `false`  
           - name: message | type: string | description: Custom message to send to the participants about the changes to the booking.  
           - name: metadata | type: object | description: Information about the delivery channels used to send the notification. For example, `{"channels": "SMS" }`, `{"channels": "EMAIL" }`, or `{"channels": "EMAIL, SMS" }`.  | validation: format map
        - name: sendSmsReminder | type: boolean | description: Whether to send an SMS reminder to the customer 24 hours before the session starts. The phone number is taken from `contactDetails.phone`.  
        - name: paymentStatus | type: PaymentStatus | description: Payment status to set for the booking.  
             - enum:
             -     UNDEFINED: Undefined payment status.
             -     NOT_PAID: The booking isn't paid.
             -     PAID: The booking is fully paid.
             -     PARTIALLY_PAID: The booking is partially paid.
             -     REFUNDED: The booking is refunded.
             -     EXEMPT: The booking is free of charge.
             -     FAILED: The most recent subscription payment for this booking failed. If the payment is later recovered, the status changes back to `PAID`. Returned only for course bookings with subscription pricing.
        - name: doubleBooked | type: boolean | description: Whether this booking has a conflict with at least 1 other confirmed booking.  
        - name: flowControlSettings | type: ConfirmBookingFlowControlSettings | description: Whether to ignore specific standard procedures of the Wix Bookings flow. For example, whether to check availability when confirming a booking.  
           - name: checkAvailabilityValidation | type: boolean | description: Whether the availability is checked before confirming the booking.  When specifying `false`, a booking is only updated with status `CONFIRMED`. Default: `false`.  
 Return type: PROMISE<ConfirmBookingResponse>
  - name: booking | type: Booking | description: Confirmed booking.  
     - ONE-OF: 
        - name: totalParticipants | type: integer | description: Total number of participants. When creating a booking, use this field only if the relevant service has fixed pricing and doesn't offer [variants and options](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  | validation: minimum 1
        - name: participantsChoices | type: ParticipantChoices | description: Information about the booked service choices and participant count for each choice. When creating a booking, use this field only if the booking includes multiple [service variants](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  For example, use this for a spa package booking that includes different service levels: - 2 participants chose "Standard Package". - 1 participant chose "VIP Package".  
           - name: serviceChoices | type: array<ServiceChoices> | description: Information about the booked service choices. Includes the number of participants.  | validation: minItems 1, maxItems 20
              - name: numberOfParticipants | type: integer | description: Number of participants for this [variant](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction.md).  | validation: minimum 1, format int32
              - name: choices | type: array<ServiceChoice> | description: Service choices for these participants.  | validation: maxItems 5
                 - ONE-OF: 
                    - name: custom | type: string | description: Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list. Choices are specific values for an option the customer can choose to book. For example, the option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`. Each choice may have a different price.  
                    - name: duration | type: Duration | description:   
                       - name: minutes | type: integer | description: Duration of the service in minutes. Min: 1 minute, Max: 30 days, 23 hours, and 59 minutes  | validation: minimum 1, maximum 44639
                       - name: name | type: string | description: Name of the duration option. Defaults to the formatted duration e.g. "1 hour, 30 minutes".  | validation: maxLength 255
                    - name: dateTime | type: DateTimeRule | description: The matched date-time pricing rule. Available only for `DATE_TIME` options.  
                       - name: name | type: string | description: Name of the date-time rule. For example, "Weekend mornings".  | validation: maxLength 255
                    - name: participantRange | type: ParticipantsRange | description: The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options.  
                       - name: name | type: string | description: Name of the participants range. For example, "Large group".  | validation: maxLength 255
                    - name: durationRange | type: DurationRange | description: The matched duration range tier. Available only for `DURATION_RANGE` options.  
                       - name: name | type: string | description: Name of the duration range tier. For example, "Long stay".  | validation: maxLength 255
                 - name: optionId | type: string | description: GUID of the corresponding option for the choice. For example, the choice `child` could correspond to the option `ageGroup`. In this case, `optionId` is the GUID for the `ageGroup` option.  | validation: format GUID
                 - name: choiceId | type: string | description: GUID of the service choice. When provided, the choice details are automatically populated based on this GUID.  | validation: format GUID
     - name: _id | type: string | description: Booking GUID.  | read-only: true | validation: format GUID
     - name: bookedEntity | type: BookedEntity | description: An object describing the bookable entity - either a specific time slot or a recurring schedule.  The structure depends on the type of service being booked:  __For appointment services__: Use `slot` to book a specific time slot with a service provider. Appointments are typically one-time sessions at a specific date and time.  __For class services__: Use `slot` to book a specific class session. Classes are individual sessions that can have multiple participants.  __For course services__: Use `schedule` to book an entire course consisting of multiple sessions over time. Courses are recurring, multi-session offerings.  Choose the appropriate field based on your service type and booking requirements.  
        - ONE-OF: 
           - name: slot | type: BookedSlot | description: [Booked slot](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings-and-time-slots/time-slots/availability-calendar/query-availability.md).  Specify `slot` when creating bookings for: - __Appointment-based services__: Individual sessions with service providers (consultations, treatments). Wix Bookings creates a new session when the booking is confirmed. - __Class services__: Group sessions at specific times (fitness classes, workshops). Wix Bookings links the booking to an existing scheduled session.  For course services, specify `schedule` instead of `slot`.  
              - name: serviceId | type: string | description: Service GUID.  
              - name: scheduleId | type: string | description: Schedule GUID.  
              - name: eventId | type: string | description: GUID of the corresponding [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction.md). Available for both appointment and class bookings, not available for course bookings. For appointment-based services, Wix Bookings automatically populates `eventId` when the booking `status` changes to `CONFIRMED`. For class bookings, Wix Bookings automatically populates `eventId` upon booking creation.  | validation: minLength 36, maxLength 250
              - name: startDate | type: string | description: The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  
              - name: endDate | type: string | description: The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  
              - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the slot was shown to the customer at the time of booking. Wix Bookings ensures that the slot is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.  
              - name: resource | type: BookedResource | description: [Primary resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md) for the booking. For example, the [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction.md) providing the service.  
                 - name: _id | type: string | description: GUID of the booking's primary resource.  | validation: format GUID
                 - name: name | type: string | description: Resource's name at the time of booking.  | validation: maxLength 40
                 - name: email | type: string | description: Resource's email at the time of booking.  | validation: maxLength 500
                 - name: scheduleId | type: string | description: GUID of the schedule belonging to the booking's primary resource.  | validation: format GUID
                 - name: type | type: string | description: GUID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md) associated with this resource. For example, `"1cd44cf8-756f-41c3-bd90-3e2ffcaf1155"` for a staff member resource type.  | read-only: true | validation: format GUID
              - name: location | type: Location | description: Location where the session takes place.  
                 - name: _id | type: string | description: Business location GUID. Available only for locations that are business locations, meaning the `location_type` is `"OWNER_BUSINESS"`.  | validation: format GUID
                 - name: name | type: string | description: Location name.  
                 - name: formattedAddress | type: string | description: The full address of this location.  
                 - name: formattedAddressTranslated | type: string | description: The full translated address of this location.  | validation: maxLength 512
                 - name: locationType | type: LocationType | description: Location type.  
                         - enum:
                         -     UNDEFINED: Undefined location type.
                         -     OWNER_BUSINESS: The business address, as set in the site’s general settings.
                         -     OWNER_CUSTOM: The address as set when creating the service.
                         -     CUSTOM: The address as set for the individual session.
              - name: resourceSelections | type: array<ResourceSelection> | description: Information about how the customer has selected resources for the booking. Each resource type may have a different selection method. Check `resource` for resource details.  | validation: maxItems 3
                 - name: resourceTypeId | type: string | description: GUID of the [resource type](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md).  | validation: format GUID
                 - name: selectionMethod | type: SelectionMethod | description: Information about how the customer has selected the resource for this resource type.  
                         - enum:
                         -     SPECIFIC_RESOURCE: The customer explicitly chose a particular resource.
                         -     ANY_RESOURCE: The customer explicitly chose "any available resource" for this resource type.
                         -     NO_SELECTION: The customer wasn't offered a resource selection or agreement option for this resource type.
                 - name: requestedGender | type: RequestedGenderValue | description: Gender the customer narrowed "any available resource" to, for a staff member resource type.  Populated only when `selectionMethod` is `ANY_RESOURCE`, the resource type is the staff member resource type, and the business allows customers to narrow "any available" by gender.  Omit the field for a plain "any available staff member" with no gender narrowing.  Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction.md). Creating a booking with this field fails when it's disabled.  
                    - name: gender | type: RequestedGender | description: Requested gender.  
                             - enum:
                             -     ANY_MALE: The customer requested any available male staff member.
                             -     ANY_FEMALE: The customer requested any available female staff member.
              - name: allDay | type: boolean | description: Whether the booked slot spans one or more full days. For class bookings, this value is synced from the linked calendar event. For appointment bookings, this value is derived from the availability slot at booking creation or reschedule time.  When `true`, `startDate` is set to `00:00:00` of the first day and `endDate` is set to `00:00:00` of the day after the last day (exclusive). Midnight boundaries are interpreted in the slot's `timezone`.  Default: `false`  
              - name: durationUnitType | type: DurationUnitType | description: Duration unit type for the booking. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object.md) configured with a duration range, such as hourly or daily duration-range services. Use together with `durationUnitCount` to determine the booked duration.  Returned only when the service has a `schedule.availabilityConstraints.durationRange`.  | read-only: true 
                     - enum:
                     -     HOUR: Hourly duration. When `durationUnitType` is `HOUR`, `durationUnitCount` represents the booked duration in minutes.
                     -     DAY: Daily duration. When `durationUnitType` is `DAY`, `durationUnitCount` represents the booked duration in days.
              - name: durationUnitCount | type: integer | description: Number of booked duration units. Populated only for bookings of [services](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/service-object.md) configured with a duration range. The meaning depends on `durationUnitType`: - `HOUR`: Duration in minutes. For example, `120` for a 2-hour booking. - `DAY`: Duration in days. For example, `3` for a 3-day booking.  Returned only when the service has a `schedule.availabilityConstraints.durationRange`.  | read-only: true | validation: minimum 1, maximum 1440, format int32
           - name: schedule | type: BookedSchedule | description: [Booked schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction.md).  Specify `schedule` when creating bookings for: - __Course services__: Multi-session offerings spanning weeks or months (educational courses, training programs). Wix Bookings enrolls participants in all sessions defined by the course schedule.  
              - name: scheduleId | type: string | description: [Schedule GUID](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction.md).  
              - name: serviceId | type: string | description: Booked service GUID.  | validation: format GUID
              - name: location | type: Location | description: [Location](https://dev.wix.com/docs/rest/business-management/locations/introduction.md) where the schedule's sessions take place.  | read-only: true 
              - name: timezone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database). For example, `America/New_York` or `UTC`. This is the time zone in which the schedule was shown to the customer at the time of booking. Wix Bookings ensures that the schedule is always displayed in this same time zone to the customer, including when they view or edit their booking in the future.  
              - name: firstSessionStart | type: string | description: Start time of the first session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  | read-only: true 
              - name: lastSessionEnd | type: string | description: End time of the last session related to the booking in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`.  | read-only: true 
        - name: title | type: string | description: Session title at the time of booking. If there is no pre-existing session, for example for appointment-based services, Wix Bookings sets `title` to the service name.  | read-only: true | validation: maxLength 6000
        - name: tags | type: array<string> | description: List of tags for the booking.  - "INDIVIDUAL": For bookings of appointment-based services. Including when the appointment is for a group of participants. - "GROUP": For bookings of individual class sessions. - "COURSE": For course bookings.  
     - name: contactDetails | type: ContactDetails | description: Contact details of the site visitor or [member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members/introduction.md) making the booking. When `bookedForSomeoneElse` is `true`, these are the guest's contact details.  
        - name: contactId | type: string | description: Contact GUID.  | validation: format GUID
        - name: firstName | type: string | description: Contact's first name. When populated from a standard booking form, this property corresponds to the `name` field.  
        - name: lastName | type: string | description: Contact's last name.  
        - name: email | type: string | description: Contact's email. If no [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object.md) with this email exist, a new contact is created. Used to validate coupon usage limitations per contact. If not specified, the coupon usage limitation will not be enforced. (Coupon usage limitation validation is not supported yet).  | validation: format EMAIL
        - name: phone | type: string | description: Contact's phone number.  
        - name: fullAddress | type: Address | description: Contact's full address.  
           - ONE-OF: 
              - name: streetAddress | type: StreetAddress | description: Street name, number and apartment number.  
                 - name: number | type: string | description: Street number.  
                 - name: name | type: string | description: Street name.  
                 - name: apt | type: string | description: Apartment number.  
              - name: addressLine | type: string | description: Main address line, usually street and number, as free text.  
           - name: country | type: string | description: Country code.  | validation: format COUNTRY
           - name: subdivision | type: string | description: Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).  
           - name: city | type: string | description: City name.  
           - name: postalCode | type: string | description: Zip/postal code.  
           - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.  
           - name: formattedAddress | type: string | description: A string containing the full address of this location.  
           - name: hint | type: string | description: Free text to help find the address.  
           - name: geocode | type: AddressLocation | description: Coordinates of the physical address.  
              - name: latitude | type: number | description: Address latitude.  
              - name: longitude | type: number | description: Address longitude.  
           - name: countryFullname | type: string | description: Country full name.  
           - name: subdivisions | type: array<Subdivision> | description: Multi-level subdivisions from top to bottom.  
              - name: code | type: string | description: Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).  
              - name: name | type: string | description: Subdivision full name.  
        - name: countryCode | type: string | description: Contact's country in [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  | validation: format COUNTRY
     - name: status | type: BookingStatus | description: Booking status. A booking is automatically confirmed if the service allows it and an eCommerce order is created. It is automatically declined if there is a double booking and the customer hasn't paid or is eligible for an automatic refund. Currently, only payments with pricing plans are automatically refundable.  
         - enum:
         -     CREATED: The booking was created, but the customer hasn't completed the related eCommerce order yet.
         -     CONFIRMED: The merchant has confirmed the booking and it appears in the business calendar. Merchants can set up their [services](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/introduction.md) to automatically confirm all `PENDING` bookings.
         -     CANCELED: The customer has canceled the booking. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction.md) they may have to pay a [cancellation fee](https://dev.wix.com/docs/rest/business-solutions/bookings/pricing/booking-fees/introduction.md).
         -     PENDING: The merchant must manually confirm the booking before it appears in the business calendar.
         -     DECLINED: The merchant has declined the booking before the customer was charged.
         -     WAITING_LIST: Currently, you can't call [Register to Waitlist](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/waitlist/register-to-waitlist.md) for course or appointment bookings, even though this is supported in live sites.
     - name: paymentStatus | type: PaymentStatus | description: The payment status of the booking. This field automatically syncs with the `paymentStatus` of the corresponding [eCommerce order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md) when customers use Wix eCommerce checkout.  ### Integration patterns  __When using Wix eCommerce checkout__: Wix Bookings automatically syncs the payment status based on the eCommerce order's payment status. Do not manually update this field.  __When using custom payment flows__: You can manually update the payment status with [Confirm Booking or Decline Booking](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking.md) to reflect the customer's payment state.  __For membership/pricing plan payments__: Wix Bookings automatically manages the payment status when customers pay with an active [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction.md) subscription.  All payment statuses are supported for every booking `status`.  
         - enum:
         -     UNDEFINED: Undefined payment status.
         -     NOT_PAID: The booking isn't paid.
         -     PAID: The booking is fully paid.
         -     PARTIALLY_PAID: The booking is partially paid.
         -     REFUNDED: The booking is refunded.
         -     EXEMPT: The booking is free of charge.
         -     FAILED: The most recent subscription payment for this booking failed. If the payment is later recovered, the status changes back to `PAID`. Returned only for course bookings with subscription pricing.
     - name: selectedPaymentOption | type: SelectedPaymentOption | description: Payment option selected by the customer. If the customer hasn't completed their checkout, they may still change the payment method. Must be one of the payment options offered by the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md), unless `skipSelectedPaymentOptionValidation` is `true`.  When the customer pays with a [Wix eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction.md), this field is required. Otherwise, the Create Booking call fails. For custom checkouts, you don't have to specify this field.  
         - enum:
         -     UNDEFINED: Undefined payment option.
         -     OFFLINE: Offline payment.
         -     ONLINE: Online payment.
         -     MEMBERSHIP: Payment using a Wix Pricing Plan.
         -     MEMBERSHIP_OFFLINE: Customers can pay only in person with a Wix Pricing Plan, while the Wix user must manually redeem the pricing plan in the dashboard.
     - name: _createdDate | type: Date | description: Date and time the booking was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true 
     - name: externalUserId | type: string | description: External user GUID that you can provide.  
     - name: revision | type: string | description: Revision number to be used when updating, rescheduling, or cancelling the booking. Increments by 1 each time the booking is updated, rescheduled, or canceled. To prevent conflicting changes, the current revision must be specified when updating the booking.  | validation: format int64
     - name: createdBy | type: IdentificationData | description: GUID of the creator of the booking. If `appId` and another GUID are present, the other GUID takes precedence.  | read-only: true 
        - ONE-OF: 
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.  | validation: format GUID
           - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.  | validation: format GUID
           - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).  | validation: format GUID
           - name: appId | type: string | description: GUID of an app.  | validation: format GUID
        - name: contactId | type: string | description: GUID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.  | validation: format GUID
     - name: startDate | type: Date | description: The start date of the booking in `YYYY-MM-DDThh:mm:ss.sssZ` format. For a slot, this is the start date of the slot. For a schedule, this is the start date of the first session.  | read-only: true 
     - name: endDate | type: Date | description: The end date of the booking in `YYYY-MM-DDThh:mm:ss.sssZ` format. For a slot, this is the end date of the slot. For a schedule, this is the end date of the last session.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the booking was updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true 
     - name: extendedFields | type: ExtendedFields | description: Custom field data for this object. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: doubleBooked | type: boolean | description: Whether this booking overlaps with another confirmed booking. Returned only if set to `true`.  | read-only: true 
     - name: multiServiceBookingInfo | type: MultiServiceBookingInfo | description: Multi-service booking info of which the booking is part of.  | read-only: true 
        - name: _id | type: string | description: Multi-service booking GUID.  | read-only: true | validation: format GUID
        - name: type | type: MultiServiceBookingType | description: Type of the multi-service booking.  
             - enum:
             -     SEQUENTIAL_BOOKINGS: Bookings must be scheduled back-to-back. Each booking starts when the previous one ends, with no gaps between them.
             -     SEPARATE_BOOKINGS: Bookings can be scheduled separately. Each booking can be at different times, not necessarily consecutive. Not currently supported.
             -     PARALLEL_BOOKINGS: Bookings occur at the same time. All bookings in the package are scheduled for the same time slot. Not currently supported.
     - name: formSubmissionId | type: string | description: GUID of the [form submission](https://dev.wix.com/docs/rest/crm/forms/form-submissions/introduction.md) associated with this booking.  | validation: format GUID
     - name: formId | type: string | description: GUID of the [form](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object.md) associated with this booking. The value depends on how the booking was created: - For bookings created with Create Booking or Bulk Create Booking, `formId` is identical to GUID of the booking form that's associated with the relevant service. - For bookings created via Create Multi Service Booking, `formId` is set to `00000000-0000-0000-0000-000000000000` (the default booking form GUID).  | read-only: true | validation: format GUID
     - name: bookedAddOns | type: array<BookedAddOn> | description: List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) associated with the booking.  | validation: maxItems 21
        - name: _id | type: string | description: The GUID of the add-on.  | validation: format GUID
        - name: groupId | type: string | description: The GUID of the add-on group.  | validation: format GUID
        - name: durationInMinutes | type: integer | description: The add-on duration in minutes at the time of booking. Populated for duration-based add-ons.  | read-only: true | validation: minimum 1, maximum 1440, format int32
        - name: quantity | type: integer | description: The quantity of booked add-ons. For duration-based add-ons, `quantity` is not applicable. If `quantity` is provided as `1` for a duration-based add-on, it will be accepted but the value will be cleared. If any other value is provided, an `INVALID_ARGUMENT` error will be returned with the message: "Invalid AddOn details: either duration or quantity must be set correctly".  | validation: minimum 1, maximum 1000, format int32
        - name: name | type: string | description: Add-on `name` at the time of booking.  | read-only: true | validation: maxLength 100
        - name: nameTranslated | type: string | description: Add-on name translated to the language the customer used during booking.  | read-only: true | validation: maxLength 100
     - name: appId | type: string | description: GUID of the app that's associated with the booking. Inherited from the `appId` of the service associated with the booking. Bookings are displayed in Wix Bookings only if they are associated with the Wix Bookings app GUID or have no associated app GUID. For bookings from Wix apps, the following values apply: - Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` - Wix Services: `"cc552162-24a4-45e0-9695-230c4931ef40"` - Wix Meetings: `"6646a75c-2027-4f49-976c-58f3d713ed0f"` [Full list of apps created by Wix](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix.md). <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->  | read-only: true | validation: format GUID
     - name: createdByAppId | type: string | description: GUID of the app that created the booking. This field is used for analytics, auditing, and tracking creation sources. This read-only field is automatically populated during booking creation by checking these sources in order: 1. The caller's App GUID from the request identity context (external app or server identity). 2. The booking's `appId` field (inherited from the service's `appId`). 3. The Wix Bookings App GUID (`13d21c63-b5ec-5912-8397-c3a5ddb27a97`) as the final fallback. <!-- TODO: Uncomment when Platform docs are published - Learn more about [app identity in the Bookings Platform](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings-platform/app-identity-in-the-bookings-platform.md). -->  | read-only: true | validation: format GUID
     - name: depositSelected | type: boolean | description: Whether the customer chooses to pay only the deposit amount upfront.  - `true`: The customer pays only the deposit amount upfront. - `false`: The customer pays the full price upfront.  Used only when `selectedPaymentOption` is `ONLINE` and the [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction.md) has a deposit amount set.  When the service supports deposit payments and `fullUpfrontPaymentAllowed` is `false`, this field must be `true`. When the service supports deposit payments and `fullUpfrontPaymentAllowed` is `true`, this field can be `true` or `false`.  
     - name: bookedForSomeoneElse | type: boolean | description: Whether a logged-in member made this booking for a guest, someone other than themselves.  When `true`, `contactDetails` are the guest's, not the member's. They aren't replaced with the details of the eCommerce order's buyer.  You can set this field to `true` only when the service's [booking policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction.md) has `bookForSomeoneElseAllowed` set to `true`. You can't set it to `true` when `selectedPaymentOption` is `MEMBERSHIP`.  Default: `false`.  

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: BOOKING_NOT_FOUND | Description: Couldn't find the booking.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: NO_OPEN_SPOTS | Description: The session or schedule is fully booked. There are no available spots remaining.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: INVALID_BOOKING_STATUS | Description: The booking status is invalid. Verify the booking status before performing this action.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: FAILED_CONFIRMING_NON_PENDING_BOOKING | Description: Can't confirm a booking that isn't in `PENDING` status. Only pending bookings can be confirmed.


```

### Examples

### confirmBooking
```javascript
import { bookings } from '@wix/bookings';

async function confirmBooking(bookingId,revision,options) {
  const response = await bookings.confirmBooking(bookingId,revision,options);
};
```

### confirmBooking (with elevated permissions)
```javascript
import { bookings } from '@wix/bookings';
import { auth } from '@wix/essentials';

async function myConfirmBookingMethod(bookingId,revision,options) {
  const elevatedConfirmBooking = auth.elevate(bookings.confirmBooking);
  const response = await elevatedConfirmBooking(bookingId,revision,options);
}
```

### confirmBooking (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { bookings } from '@wix/bookings';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { bookings },
  // Include the auth strategy and host as relevant
});


async function confirmBooking(bookingId,revision,options) {
  const response = await myWixClient.bookings.confirmBooking(bookingId,revision,options);
};
```

---