> 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

# QueryExtendedBookings

# Package: bookings

# Namespace: BookingsReader

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-reader-v2/query-extended-bookings?apiView=SDK.md

## Permission Scopes:
Read bookings calendar - including participants: SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
Read Bookings - Including Participants: SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE

## Introduction

Retrieves up to 100 bookings, given the specified paging, filtering, and sorting.


Query Extended Bookings runs with these defaults, which you can override:

- `id` sorted in `ASC` order
- `cursorPaging.limit` is `50`

To retrieve course bookings, filter by `booking.bookedEntity.schedule.scheduleId`,
using the course service's `schedule.id`, or by
`booking.bookedEntity.schedule.serviceId`, using the course service's `id`. Use
`$in` to retrieve the bookings of several courses in one call. A filter on a
top-level `scheduleId` field fails with `INVALID_FILTER`, because bookings
have no such field. In the response, the booking fields are nested under
`booking`, for example `extendedBookings[].booking.startDate`.

You can retrieve information about which actions the customer can perform
for the bookings. To do so, pass `withBookingAllowedActions` as `true`.

When using filters for dates, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).

See [Supported Filters](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-reader-v2/supported-filters?apiView=SDK.md) for a list of supported filters and sorting options.

To learn about working with _Query_ endpoints, see
[API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md),
[Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md),
and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).

---

## REST API

### Schema

```
 Method: queryExtendedBookings
 Description: Retrieves up to 100 bookings, given the specified paging, filtering, and sorting.   Query Extended Bookings runs with these defaults, which you can override:  - `id` sorted in `ASC` order - `cursorPaging.limit` is `50`  To retrieve course bookings, filter by `booking.bookedEntity.schedule.scheduleId`, using the course service's `schedule.id`, or by `booking.bookedEntity.schedule.serviceId`, using the course service's `id`. Use `$in` to retrieve the bookings of several courses in one call. A filter on a top-level `scheduleId` field fails with `INVALID_FILTER`, because bookings have no such field. In the response, the booking fields are nested under `booking`, for example `extendedBookings[].booking.startDate`.  You can retrieve information about which actions the customer can perform for the bookings. To do so, pass `withBookingAllowedActions` as `true`.  When using filters for dates, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).  See [Supported Filters](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-reader-v2/supported-filters?apiView=SDK.md) for a list of supported filters and sorting options.  To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 URL: https://www.wixapis.com/_api/bookings-reader/v2/extended-bookings/query
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: QueryV2   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor token pointing to a page of results. In the first request, specify `cursorPaging.limit`. For following requests, specify the retrieved `cursorPaging.cursor` token and not `query.filter` or `query.sort`.  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  
        - name: sort | type: array<Sorting> | description: Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`  
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  | validation: format double
              - name: longitude | type: number | description: Address longitude.  | validation: format double
   param name: withBookingAllowedActions | type: withBookingAllowedActions | description: Whether to return information about the actions the customer can perform for the bookings.  
   param name: withBookingAttendanceInfo | type: withBookingAttendanceInfo | description: Whether to return information about the attendance for the bookings.  
   param name: withBookingConferencingDetails | type: withBookingConferencingDetails | description: Whether to return information about the online conferencing details for the bookings.  
   param name: withBookingFeeDetails | type: withBookingFeeDetails | description: Whether to retrieve information about [booking fee](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/introduction.md) statuses.  Information about booking fees with a status of `PREVIEW` isn't returned, and only fees that have already been applied are included in the response. If there are hypothetical fees for a booking that may be canceled in the future, these fees aren't returned. To retrieve such fees, call [List Booking Fees] By Booking Ids](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/list-booking-fees-by-booking-ids.md) instead.  You must have the `BOOKINGS.BOOKING_FEES_READ` permission scope when passing `true`.  Default: `false`  
   param name: withBookingPolicySettings | type: withBookingPolicySettings | description: Whether to retrieve information about booking policy settings.  You must have the `BOOKINGS.BOOKING_POLICY_SNAPSHOT_READ` permission scope when passing `true`.  Default: `false`.  
   param name: withEcomOrder | type: withEcomOrder | description: Whether to return information about the order from ecom.  Learn more about [eCommerce orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md).  You must have the `ECOM.READ_ORDERS` permission scope when passing `true`.  Default: `false`.  
   param name: withEcomTransactions | type: withEcomTransactions | description: Whether to return information about the transactions from ecom.  You must have the `ECOM.READ_ORDERS` and `ECOM.READ_TRANSACTIONS` permission scope when passing `true`.  Default: `false`.  
   param name: withWaitlistStatus | type: withWaitlistStatus | description: Whether to return the member's waitlist status for each waitlist booking.  Default: `false`.  
 Query fields:
   - field: booking.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.startDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.sessionId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.eventId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.serviceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.resource.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.location.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.location.locationType | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.serviceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.location.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.location.locationType | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.tags | operators: $hasSome, $hasAll, $exists, $isEmpty | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.contactDetails.contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.contactDetails.email | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.status | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.paymentStatus | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.selectedPaymentOption | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.externalUserId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.multiServiceBookingInfo.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.wixUserId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.memberId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.anonymousVisitorId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.doubleBooked | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.demo | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.totalParticipants | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.participantsChoices.serviceChoices.choices.optionId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.participantsChoices.serviceChoices.choices.custom | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
 Return type: QueryExtendedBookingsResponse
  - name: extendedBookings | type: array<ExtendedBooking> | description: Retrieved bookings.  May include information about the attendance or actions the customer can perform, depending on your request.  
     - name: booking | type: Booking | description: 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.  When the service requires the merchant's approval and the customer uses Wix eCommerce checkout, the booking moves from `CREATED` to `PENDING` after checkout and to `CONFIRMED` once the merchant approves it. Each transition triggers its own event: Booking Created, Booking Marked As Pending, and Booking Confirmed. Custom checkout flows may trigger different events.  
             - 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. A booking created with `status=CONFIRMED`, for example by staff, starts in this status and triggers only Booking Created, not Booking Confirmed.
             -     CANCELED: The booking was canceled by the customer, the merchant, or an automated flow. `initiatedBy` in the Booking Canceled event identifies who canceled. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction.md) the customer 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 booking was declined, either by the merchant or automatically by Wix Bookings, for example because of a double booking. A booking that was already paid can also be declined. `initiatedBy` in the Booking Declined event identifies who declined.
             -     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. Each service in a multi-service booking is a separate booking that triggers its own events. Use `multiServiceBookingInfo.id` to group them.  | 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`.  
        - name: demo | type: boolean | description: Whether the booking is a test booking. The Wix user who owns the site creates test bookings to try the booking flow. Apart from this field, Wix Bookings handles a test booking like any other booking. You can set this field only when you create the booking, and only as the Wix user who owns the site or as a caller with permission to manage bookings. All bookings in a single Bulk Create Booking or Create Multi Service Booking request must have the same value.  Default: `false`.  | validation: immutable
     - name: allowedActions | type: AllowedActions | description: Information about the actions the customer can perform for the booking. Available only when you've specified `withBookingAllowedActions` as `true`.  
        - name: cancel | type: boolean | description: Whether the customer is allowed to cancel the booking.  
        - name: reschedule | type: boolean | description: Whether the customer is allowed to reschedule the booking.  
     - name: attendance | type: Attendance | description: Information about the attendance. Available only when passing `withBookingAttendanceInfo` as `true`.  
        - name: id | type: string | description: GUID of the attendance object.  | read-only: true | validation: format GUID
        - name: status | type: AttendanceStatus | description: General information about the booking's attendance.  
             - enum:
             -     NOT_SET: There is no available attendance information.
             -     ATTENDED: At least a single participant attended the session.
             -     NOT_ATTENDED: No participants attended the session.
        - name: numberOfAttendees | type: integer | description: Total number of participants who attended the session. Can be greater than `1` for bookings with multiple participants.  
     - name: conferencingDetails | type: ConferencingDetails | description: Information about the online conferencing details. Available only when passing `withBookingConferencingDetails` as `true`.  
        - name: guestUrl | type: string | description: URL used by a guest to join the conference.  | validation: minLength 1, maxLength 2000
        - name: password | type: string | description: Conference password.  | validation: minLength 1, maxLength 100
     - name: bookingPolicySettings | type: BookingPolicySettings | description: Information about the booking's policy settings according to the relevant booking policy snapshot.  Available only when you've specified `withBookingPolicySettings` as `true`.  
        - name: cancellationFeeEnabled | type: boolean | description: Whether the booking has an active cancellation fee policy.  
     - name: bookingFeeDetails | type: BookingFeeDetails | description: Information about [booking fee](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/introduction.md) statuses. Available only if you've specified `withBookingFeeDetails` as `true`.  Only details for fees that have already been applied to a booking are returned. No details are provided for the following scenarios: - Hypothetical fees related to a potential future cancellation by the customer. - Scenarios where the booking has been canceled before the start of the earliest cancellation window that includes a penalty.  To retrieve hypothetical booking fees, call [List Booking Fees By Booking Ids](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/list-booking-fees-by-booking-ids.md) instead.  
        - name: cancellationFeeStatus | type: BookingFeeStatus | description: Cancellation fee status.  
             - enum:
             -     UNKNOWN_STATUS: There is no information about the booking fee status.
             -     NOT_YET_APPLIED_TO_ORDER: The booking fee hasn't been applied to the eCommerce order yet.
             -     APPLIED_TO_ORDER: The booking fee has already been applied as an additional fee to the eCommerce order.
     - name: order | type: Order | description: Information about the booking order. Available only when specified `withEcomOrder` as `true`.  For a monthly-subscription booking (each billing cycle has its own order), this is the order for the booking's current billing cycle, the one whose cycle matches `subscriptionInfo.currentCycle`. For all other bookings, it's the booking's single order.  Learn more about [eCommerce orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md).  
        - name: id | type: string | description: Order GUID.  | validation: format GUID
        - name: number | type: number | description: Order number displayed in the site owner's dashboard (auto-generated).  
        - name: status | type: OrderStatus | description: Order status.  
             - enum:
             -     INITIALIZED: Order created, but not yet approved or canceled.
             -     APPROVED: Order approved.  This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order). Offline orders (cash payment) are automatically approved.
             -     CANCELED: Order canceled by the user.
             -     PENDING: Order pending.
             -     REJECTED: Order rejected.  This happens when pending payments fail.
        - name: paymentStatus | type: PaymentStatus | description: Order payment status.  
             - enum:
             -     NOT_PAID: `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`. This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
             -     PAID: All required payments associated with this order are paid.
             -     PARTIALLY_REFUNDED: Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details.
             -     FULLY_REFUNDED: Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details.
             -     PENDING: All payments pending.  This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly. Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).
             -     PARTIALLY_PAID: At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details.
             -     PENDING_MERCHANT: Payment received, but not yet confirmed by the payment provider.  In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner. To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.
             -     CANCELED: One or more payments canceled.
             -     DECLINED: One or more payments declined.
        - name: totalPrice | type: Price | description: Order’s total price after discounts and tax.  
           - name: amount | type: string | description: Amount.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
           - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  
        - name: bookingPrice | type: Price | description: Line item price after line item discounts for display purposes.  
        - name: bookingPriceDescription | type: PriceDescription | description: Line item price description.  
           - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
           - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
        - name: balance | type: Balance | description: Current amount left to pay.  
           - name: amount | type: string | description: Balance amount.  A negative `amount` represents the amount to be refunded. This can happen due to overcharging or the order being modified after a payment has been made.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
           - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  
        - name: currency | type: string | description: Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.  | validation: format CURRENCY
     - name: waiver | type: Waiver | description: Information about the booking waiver. Available only when specified `withWaiver` as `true`.  
        - name: id | type: string | description: The GUID of the waiver. This is a unique identifier for the waiver.  | validation: format GUID
        - name: waiverTemplateId | type: string | description: The GUID of the waiver template.  | validation: format GUID
        - name: contactId | type: string | description: The GUID of the contact associated with the waiver.  | validation: format GUID
        - name: status | type: Status | description: The status of the waiver.  
             - enum: UNDEFINED, SIGNED, NOT_SIGNED
     - name: transactions | type: OrderTransactions | description: Information about the booking order transactions. Available only when specified `withEcomTransactions` as `true`.  
        - name: chargedMembershipPaymentDetails | type: MembershipPaymentDetails | description: The charged not voided membership payment details of the booking line item made to the merchant.  
           - name: name | type: MembershipName | description: Membership name.  
              - name: original | type: string | description: Membership name.  | validation: maxLength 100
              - name: translated | type: string | description: Translated membership name. Defaults to `original` when not provided.  | validation: maxLength 100
           - name: expirationDate | type: string | description: Membership expiration date.  | validation: format date-time
           - name: credits | type: MembershipPaymentCredits | description: Membership payment credits.  
              - name: total | type: integer | description: Membership's total amount of credits.  | validation: minimum 1
              - name: remaining | type: integer | description: Membership's remaining amount of credits.  | validation: minimum 0
           - name: planType | type: PlanType | description: Whether the membership has a limited or unlimited number of credits.  | read-only: true 
                 - enum:
                 -     LIMITED: The membership has a limited number of credits.
                 -     UNLIMITED: The membership has unlimited credits.
        - name: refundSumAmounts | type: string | description: Sum of refund transactions amounts made to the buyer.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
     - name: formSubmissions | type: array<FormSubmission> | description: Information about the booking form submission. Available only when specified `withFormSubmissions` as `true`.  | validation: maxItems 100
        - name: label | type: string | description: Label of form field  | validation: maxLength 500
        - name: key | type: string | description: Key of the submission, and target of a form field  | validation: maxLength 200
        - name: value | type: string | description: Value of the submission, formatted as a string  | validation: maxLength 500
        - name: fieldId | type: string | description: Id of the form field  | validation: format GUID
     - name: subscriptionInfo | type: SubscriptionInfo | description: Subscription payment info. Populated for course bookings with subscription pricing only.  Available only when `withEcomOrder` is `true`.  
        - name: currentCycle | type: integer | description: Number of billing cycles that have been successfully charged. For example, if 3 out of 12 monthly payments have been collected, `currentCycle` is `3`.  
        - name: totalCycles | type: integer | description: Total number of billing cycles in the subscription. For customers who book after recurring billing starts, includes the remaining cycles only. This can be lower than the `totalPayments` configured in the service's subscription payment.  
        - name: billingFrequency | type: Frequency | description: Billing frequency for the subscription. Reflects the `frequency` configured in the service's subscription payment.  Currently supports `MONTHLY` only.  
             - enum:
             -     MONTHLY: Billing cycle repeats once per month.
        - name: subscriptionId | type: string | description: GUID of the subscription in the Wix billing system.  | validation: format GUID
        - name: status | type: SubscriptionStatus | description: Current status of the subscription.  
             - enum:
             -     DRAFT: Subscription created but not yet paid for. Transitions to `PENDING` or `ACTIVE` after the first successful payment.
             -     PENDING: Subscription is paid but hasn't started yet. The start date is in the future.
             -     ACTIVE: Subscription is active and billing.
             -     PAUSED: Subscription is temporarily paused.
             -     CANCELED: Subscription was canceled before its scheduled end.
             -     ENDED: Subscription completed all billing cycles.
        - name: cyclePrice | type: CyclePrice | description: Price charged for the most recent billing cycle, including tax and discounts. May differ from the original service price after introductory pricing expires.  Not populated during free trials or before the first payment.  | read-only: true 
           - name: amount | type: string | description: Total amount charged for the billing cycle, including tax, shipping, and discounts.  | validation: decimalValue {"gte":"0","maxScale":2}
           - name: currency | type: string | description: Three-letter currency code in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) alphabetic format.  | validation: format CURRENCY
     - name: waitlistStatus | type: WaitlistStatus | description: The member's waitlist status for this booking's session, or for its course.  Returned only when `withWaitlistStatus` is `true` and the booking is on a waitlist.  
        - name: selected | type: boolean | description: Whether this is the member's current waitlist booking for the session or course.  
        - name: status | type: Status | description: The member's place on the session's or course's waitlist.  
             - enum:
             -     WAITING: The member is in line.
             -     OFFERED: A spot is offered to the member, who can book it.
             -     ENDED: The member no longer has a place on the waitlist, for example because they left, their offer expired, they were removed, or they booked the spot.
             -     UNAVAILABLE: Wix Bookings couldn't determine the member's waitlist status. The member may still be on the waitlist or have an offer, so don't treat this as `ENDED`. Try again later.
  - name: pagingMetadata | type: PagingMetadataV2 | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000


```

### Examples

### Retrieve a specific extended booking including its policy settings and booking fee details
```curl
curl -X POST \
'https://www.wixapis.com/bookings/bookings-reader/v2/extended-bookings/query' \
-H 'Authorization: <AUTH>' \
-d '{
  "query": {
    "filter": {
      "booking.id": "f1e4390a-0c1b-46b5-b98a-780a04bbfc7a"
    }
  },
  "withBookingPolicySettings": true,
  "withBookingFeeDetails": true
}'
```

### Query extended bookings by session ID
```curl
curl -X POST \
'https://www.wixapis.com/bookings/bookings-reader/v2/extended-bookings/query' \
-H 'Authorization: <AUTH>' \
-d '{
   "query": {
     "filter": {
       "booking.bookedEntity.slot.sessionId" : ["2mmoW0vwKcSFyxtOfCdKZoL2PDsyWG3fw2loVjs4xCdGebAdETRJyFCbPMBvCs5hidrevMmkVChbcMGNF9RsMDpPSUy0Ew4Kaohh"]
     },
     "sort": []
   },
   "withBookingAllowedActions": false,
   "withBookingAttendanceInfo": false,
   "withBookingConferencingDetails": false,
   "withBookingPolicySettings": false,
   "withBookingFeeDetails": false
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bookings.extendedBookings.queryExtendedBookings(query, options)
 Description: Retrieves up to 100 bookings, given the specified paging, filtering, and sorting.   Query Extended Bookings runs with these defaults, which you can override:  - `id` sorted in `ASC` order - `cursorPaging.limit` is `50`  To retrieve course bookings, filter by `booking.bookedEntity.schedule.scheduleId`, using the course service's `schedule.id`, or by `booking.bookedEntity.schedule.serviceId`, using the course service's `id`. Use `$in` to retrieve the bookings of several courses in one call. A filter on a top-level `scheduleId` field fails with `INVALID_FILTER`, because bookings have no such field. In the response, the booking fields are nested under `booking`, for example `extendedBookings[].booking.startDate`.  You can retrieve information about which actions the customer can perform for the bookings. To do so, pass `withBookingAllowedActions` as `true`.  When using filters for dates, you must use [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).  See [Supported Filters](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-reader-v2/supported-filters?apiView=SDK.md) for a list of supported filters and sorting options.  To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: ExtendedBookingQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor token pointing to a page of results. In the first request, specify `cursorPaging.limit`. For following requests, specify the retrieved `cursorPaging.cursor` token and not `query.filter` or `query.sort`.  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`  
        - name: sort | type: array<Sorting> | description: Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`  
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  
              - name: longitude | type: number | description: Address longitude.  
   param name: options | type: QueryExtendedBookingsOptions  none  
        - name: withBookingAllowedActions | type: boolean | description: Whether to return information about the actions the customer can perform for the bookings.  
        - name: withBookingAttendanceInfo | type: boolean | description: Whether to return information about the attendance for the bookings.  
        - name: withBookingConferencingDetails | type: boolean | description: Whether to return information about the online conferencing details for the bookings.  
        - name: withBookingPolicySettings | type: boolean | description: Whether to retrieve information about booking policy settings.  You must have the `BOOKINGS.BOOKING_POLICY_SNAPSHOT_READ` permission scope when passing `true`.  Default: `false`.  
        - name: withBookingFeeDetails | type: boolean | description: Whether to retrieve information about [booking fee](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/introduction.md) statuses.  Information about booking fees with a status of `PREVIEW` isn't returned, and only fees that have already been applied are included in the response. If there are hypothetical fees for a booking that may be canceled in the future, these fees aren't returned. To retrieve such fees, call [List Booking Fees] By Booking Ids](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/list-booking-fees-by-booking-ids.md) instead.  You must have the `BOOKINGS.BOOKING_FEES_READ` permission scope when passing `true`.  Default: `false`  
        - name: withEcomOrder | type: boolean | description: Whether to return information about the order from ecom.  Learn more about [eCommerce orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md).  You must have the `ECOM.READ_ORDERS` permission scope when passing `true`.  Default: `false`.  
        - name: withEcomTransactions | type: boolean | description: Whether to return information about the transactions from ecom.  You must have the `ECOM.READ_ORDERS` and `ECOM.READ_TRANSACTIONS` permission scope when passing `true`.  Default: `false`.  
        - name: withWaitlistStatus | type: boolean | description: Whether to return the member's waitlist status for each waitlist booking.  Default: `false`.  
 Query fields:
   - field: booking._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking._createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking._updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.startDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.sessionId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.eventId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.serviceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.resource._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.location._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.slot.location.locationType | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.scheduleId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.serviceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.location._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.schedule.location.locationType | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.bookedEntity.tags | operators: $hasSome, $hasAll, $exists, $isEmpty | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.contactDetails.contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.contactDetails.email | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.status | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.paymentStatus | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.selectedPaymentOption | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.externalUserId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.multiServiceBookingInfo._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.wixUserId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.memberId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.createdBy.anonymousVisitorId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.doubleBooked | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.demo | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.totalParticipants | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.participantsChoices.serviceChoices.choices.optionId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: booking.participantsChoices.serviceChoices.choices.custom | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryExtendedBookingsResponse>
  - name: extendedBookings | type: array<ExtendedBooking> | description: Retrieved bookings.  May include information about the attendance or actions the customer can perform, depending on your request.  
     - name: booking | type: Booking | description: 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.  When the service requires the merchant's approval and the customer uses Wix eCommerce checkout, the booking moves from `CREATED` to `PENDING` after checkout and to `CONFIRMED` once the merchant approves it. Each transition triggers its own event: Booking Created, Booking Marked As Pending, and Booking Confirmed. Custom checkout flows may trigger different events.  
             - 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. A booking created with `status=CONFIRMED`, for example by staff, starts in this status and triggers only Booking Created, not Booking Confirmed.
             -     CANCELED: The booking was canceled by the customer, the merchant, or an automated flow. `initiatedBy` in the Booking Canceled event identifies who canceled. Depending on the relevant service's [policy snapshot](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policy-snapshots/introduction.md) the customer 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 booking was declined, either by the merchant or automatically by Wix Bookings, for example because of a double booking. A booking that was already paid can also be declined. `initiatedBy` in the Booking Declined event identifies who declined.
             -     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. Each service in a multi-service booking is a separate booking that triggers its own events. Use `multiServiceBookingInfo.id` to group them.  | 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`.  
        - name: demo | type: boolean | description: Whether the booking is a test booking. The Wix user who owns the site creates test bookings to try the booking flow. Apart from this field, Wix Bookings handles a test booking like any other booking. You can set this field only when you create the booking, and only as the Wix user who owns the site or as a caller with permission to manage bookings. All bookings in a single Bulk Create Booking or Create Multi Service Booking request must have the same value.  Default: `false`.  | validation: immutable
     - name: allowedActions | type: AllowedActions | description: Information about the actions the customer can perform for the booking. Available only when you've specified `withBookingAllowedActions` as `true`.  
        - name: cancel | type: boolean | description: Whether the customer is allowed to cancel the booking.  
        - name: reschedule | type: boolean | description: Whether the customer is allowed to reschedule the booking.  
     - name: attendance | type: Attendance | description: Information about the attendance. Available only when passing `withBookingAttendanceInfo` as `true`.  
        - name: _id | type: string | description: GUID of the attendance object.  | read-only: true | validation: format GUID
        - name: status | type: AttendanceStatus | description: General information about the booking's attendance.  
             - enum:
             -     NOT_SET: There is no available attendance information.
             -     ATTENDED: At least a single participant attended the session.
             -     NOT_ATTENDED: No participants attended the session.
        - name: numberOfAttendees | type: integer | description: Total number of participants who attended the session. Can be greater than `1` for bookings with multiple participants.  
     - name: conferencingDetails | type: ConferencingDetails | description: Information about the online conferencing details. Available only when passing `withBookingConferencingDetails` as `true`.  
        - name: guestUrl | type: string | description: URL used by a guest to join the conference.  | validation: minLength 1, maxLength 2000
        - name: password | type: string | description: Conference password.  | validation: minLength 1, maxLength 100
     - name: bookingPolicySettings | type: BookingPolicySettings | description: Information about the booking's policy settings according to the relevant booking policy snapshot.  Available only when you've specified `withBookingPolicySettings` as `true`.  
        - name: cancellationFeeEnabled | type: boolean | description: Whether the booking has an active cancellation fee policy.  
     - name: bookingFeeDetails | type: BookingFeeDetails | description: Information about [booking fee](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/introduction.md) statuses. Available only if you've specified `withBookingFeeDetails` as `true`.  Only details for fees that have already been applied to a booking are returned. No details are provided for the following scenarios: - Hypothetical fees related to a potential future cancellation by the customer. - Scenarios where the booking has been canceled before the start of the earliest cancellation window that includes a penalty.  To retrieve hypothetical booking fees, call [List Booking Fees By Booking Ids](https://dev.wix.com/docs/api-reference/business-solutions/bookings/pricing/booking-fees/list-booking-fees-by-booking-ids.md) instead.  
        - name: cancellationFeeStatus | type: BookingFeeStatus | description: Cancellation fee status.  
             - enum:
             -     UNKNOWN_STATUS: There is no information about the booking fee status.
             -     NOT_YET_APPLIED_TO_ORDER: The booking fee hasn't been applied to the eCommerce order yet.
             -     APPLIED_TO_ORDER: The booking fee has already been applied as an additional fee to the eCommerce order.
     - name: order | type: Order | description: Information about the booking order. Available only when specified `withEcomOrder` as `true`.  For a monthly-subscription booking (each billing cycle has its own order), this is the order for the booking's current billing cycle, the one whose cycle matches `subscriptionInfo.currentCycle`. For all other bookings, it's the booking's single order.  Learn more about [eCommerce orders](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/introduction.md).  
        - name: _id | type: string | description: Order GUID.  | validation: format GUID
        - name: number | type: number | description: Order number displayed in the site owner's dashboard (auto-generated).  
        - name: status | type: OrderStatus | description: Order status.  
             - enum:
             -     INITIALIZED: Order created, but not yet approved or canceled.
             -     APPROVED: Order approved.  This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order). Offline orders (cash payment) are automatically approved.
             -     CANCELED: Order canceled by the user.
             -     PENDING: Order pending.
             -     REJECTED: Order rejected.  This happens when pending payments fail.
        - name: paymentStatus | type: PaymentStatus | description: Order payment status.  
             - enum:
             -     NOT_PAID: `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`. This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
             -     PAID: All required payments associated with this order are paid.
             -     PARTIALLY_REFUNDED: Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details.
             -     FULLY_REFUNDED: Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details.
             -     PENDING: All payments pending.  This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly. Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).
             -     PARTIALLY_PAID: At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details.
             -     PENDING_MERCHANT: Payment received, but not yet confirmed by the payment provider.  In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner. To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.
             -     CANCELED: One or more payments canceled.
             -     DECLINED: One or more payments declined.
        - name: totalPrice | type: Price | description: Order’s total price after discounts and tax.  
           - name: amount | type: string | description: Amount.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
           - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  
        - name: bookingPrice | type: Price | description: Line item price after line item discounts for display purposes.  
        - name: bookingPriceDescription | type: PriceDescription | description: Line item price description.  
           - name: original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions.md#request-envelope).  | validation: minLength 1, maxLength 100
           - name: translated | type: string | description: Price description translated into the buyer's language.  Default: Same as `original`.  | validation: minLength 1, maxLength 100
        - name: balance | type: Balance | description: Current amount left to pay.  
           - name: amount | type: string | description: Balance amount.  A negative `amount` represents the amount to be refunded. This can happen due to overcharging or the order being modified after a payment has been made.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
           - name: formattedAmount | type: string | description: Amount formatted with currency symbol.  
        - name: currency | type: string | description: Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.  | validation: format CURRENCY
     - name: waiver | type: Waiver | description: Information about the booking waiver. Available only when specified `withWaiver` as `true`.  
        - name: _id | type: string | description: The GUID of the waiver. This is a unique identifier for the waiver.  | validation: format GUID
        - name: waiverTemplateId | type: string | description: The GUID of the waiver template.  | validation: format GUID
        - name: contactId | type: string | description: The GUID of the contact associated with the waiver.  | validation: format GUID
        - name: status | type: Status | description: The status of the waiver.  
             - enum: UNDEFINED, SIGNED, NOT_SIGNED
     - name: transactions | type: OrderTransactions | description: Information about the booking order transactions. Available only when specified `withEcomTransactions` as `true`.  
        - name: chargedMembershipPaymentDetails | type: MembershipPaymentDetails | description: The charged not voided membership payment details of the booking line item made to the merchant.  
           - name: name | type: MembershipName | description: Membership name.  
              - name: original | type: string | description: Membership name.  | validation: maxLength 100
              - name: translated | type: string | description: Translated membership name. Defaults to `original` when not provided.  | validation: maxLength 100
           - name: expirationDate | type: Date | description: Membership expiration date.  
           - name: credits | type: MembershipPaymentCredits | description: Membership payment credits.  
              - name: total | type: integer | description: Membership's total amount of credits.  | validation: minimum 1
              - name: remaining | type: integer | description: Membership's remaining amount of credits.  | validation: minimum 0
           - name: planType | type: PlanType | description: Whether the membership has a limited or unlimited number of credits.  | read-only: true 
                 - enum:
                 -     LIMITED: The membership has a limited number of credits.
                 -     UNLIMITED: The membership has unlimited credits.
        - name: refundSumAmounts | type: string | description: Sum of refund transactions amounts made to the buyer.  | validation: decimalValue {"gte":"0","lte":"1000000000000000","maxScale":2}
     - name: formSubmissions | type: array<FormSubmission> | description: Information about the booking form submission. Available only when specified `withFormSubmissions` as `true`.  | validation: maxItems 100
        - name: label | type: string | description: Label of form field  | validation: maxLength 500
        - name: key | type: string | description: Key of the submission, and target of a form field  | validation: maxLength 200
        - name: value | type: string | description: Value of the submission, formatted as a string  | validation: maxLength 500
        - name: fieldId | type: string | description: Id of the form field  | validation: format GUID
     - name: subscriptionInfo | type: SubscriptionInfo | description: Subscription payment info. Populated for course bookings with subscription pricing only.  Available only when `withEcomOrder` is `true`.  
        - name: currentCycle | type: integer | description: Number of billing cycles that have been successfully charged. For example, if 3 out of 12 monthly payments have been collected, `currentCycle` is `3`.  
        - name: totalCycles | type: integer | description: Total number of billing cycles in the subscription. For customers who book after recurring billing starts, includes the remaining cycles only. This can be lower than the `totalPayments` configured in the service's subscription payment.  
        - name: billingFrequency | type: Frequency | description: Billing frequency for the subscription. Reflects the `frequency` configured in the service's subscription payment.  Currently supports `MONTHLY` only.  
             - enum:
             -     MONTHLY: Billing cycle repeats once per month.
        - name: subscriptionId | type: string | description: GUID of the subscription in the Wix billing system.  | validation: format GUID
        - name: status | type: SubscriptionStatus | description: Current status of the subscription.  
             - enum:
             -     DRAFT: Subscription created but not yet paid for. Transitions to `PENDING` or `ACTIVE` after the first successful payment.
             -     PENDING: Subscription is paid but hasn't started yet. The start date is in the future.
             -     ACTIVE: Subscription is active and billing.
             -     PAUSED: Subscription is temporarily paused.
             -     CANCELED: Subscription was canceled before its scheduled end.
             -     ENDED: Subscription completed all billing cycles.
        - name: cyclePrice | type: CyclePrice | description: Price charged for the most recent billing cycle, including tax and discounts. May differ from the original service price after introductory pricing expires.  Not populated during free trials or before the first payment.  | read-only: true 
           - name: amount | type: string | description: Total amount charged for the billing cycle, including tax, shipping, and discounts.  | validation: decimalValue {"gte":"0","maxScale":2}
           - name: currency | type: string | description: Three-letter currency code in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) alphabetic format.  | validation: format CURRENCY
     - name: waitlistStatus | type: WaitlistStatus | description: The member's waitlist status for this booking's session, or for its course.  Returned only when `withWaitlistStatus` is `true` and the booking is on a waitlist.  
        - name: selected | type: boolean | description: Whether this is the member's current waitlist booking for the session or course.  
        - name: status | type: Status | description: The member's place on the session's or course's waitlist.  
             - enum:
             -     WAITING: The member is in line.
             -     OFFERED: A spot is offered to the member, who can book it.
             -     ENDED: The member no longer has a place on the waitlist, for example because they left, their offer expired, they were removed, or they booked the spot.
             -     UNAVAILABLE: Wix Bookings couldn't determine the member's waitlist status. The member may still be on the waitlist or have an offer, so don't treat this as `ENDED`. Try again later.
  - name: pagingMetadata | type: PagingMetadataV2 | description: Paging metadata.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000


```

### Examples

### Query canceled bookings of a schedule
Retrieves canceled bookings of the specified schedule starting on or after June 1, sorted by start date in descending order, including the actions the customer can perform for each booking.

```javascript
import { extendedBookings } from "@wix/bookings";

async function queryExtendedBookings() {
  const response = await extendedBookings.queryExtendedBookings(
    {
      filter: {
        "booking.bookedEntity.slot.scheduleId": "3752ffe8-2d58-4541-91ec-cd981c4ccb28",
        "booking.status": "CANCELED",
        "booking.startDate": { $gte: "2026-06-01T00:00:00.000Z" },
      },
      sort: [{ fieldName: "booking.startDate", order: "DESC" }],
      cursorPaging: { limit: 10 },
    },
    { withBookingAllowedActions: true },
  );

  const bookings = response.extendedBookings ?? [];
  const nextCursor = response.pagingMetadata?.cursors?.next;
  console.log(`Retrieved ${bookings.length} canceled bookings`);
  console.log("First booking status:", bookings[0]?.booking?.status);
  console.log("Cursor for the next page:", nextCursor);
}

/* Promise resolves to:
 * {
 *   "extendedBookings": [
 *     {
 *       "booking": {
 *         "bookedEntity": {
 *           "slot": {
 *             "serviceId": "0ebaeea4-a710-420c-9a88-9135e1a3c071",
 *             "scheduleId": "3752ffe8-2d58-4541-91ec-cd981c4ccb28",
 *             "startDate": "2026-06-16T14:30:00.000-04:00",
 *             "endDate": "2026-06-16T15:00:00.000-04:00",
 *             "timezone": "America/New_York",
 *             "resource": {
 *               "name": "Business Owner",
 *               "email": "owner@example.com",
 *               "scheduleId": "8a69a784-9b19-4633-9661-97e8b4e92c38",
 *               "type": "1cd44cf8-756f-41c3-bd90-3e2ffcaf1155",
 *               "_id": "804d8f27-c4ed-4fdb-acc9-a9fc3a8deda3"
 *             },
 *             "location": {
 *               "locationType": "OWNER_BUSINESS"
 *             },
 *             "resourceSelections": [
 *               {
 *                 "resourceTypeId": "1cd44cf8-756f-41c3-bd90-3e2ffcaf1155",
 *                 "selectionMethod": "SPECIFIC_RESOURCE"
 *               }
 *             ],
 *             "allDay": false
 *           },
 *           "title": "30-Min Follow-Up",
 *           "tags": [
 *             "INDIVIDUAL"
 *           ]
 *         },
 *         "contactDetails": {
 *           "firstName": "Alex",
 *           "lastName": "Smith",
 *           "email": "alex.smith@example.com"
 *         },
 *         "status": "CANCELED",
 *         "revision": "2",
 *         "createdBy": {
 *           "identityType": "APP",
 *           "appId": "a0a70193-1a7e-4d7a-98e1-a73b1a8ed633"
 *         },
 *         "startDate": "2026-06-16T18:30:00.000Z",
 *         "endDate": "2026-06-16T19:00:00.000Z",
 *         "totalParticipants": 1,
 *         "appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97",
 *         "_id": "6181d50b-bd87-4177-8ecc-4e83537c16f2",
 *         "_createdDate": "2026-06-15T08:21:21.151Z",
 *         "_updatedDate": "2026-06-15T08:21:28.314Z"
 *       },
 *       "allowedActions": {
 *         "cancel": false,
 *         "reschedule": false,
 *         "bookAnother": true
 *       }
 *     },
 *     {
 *       "booking": {
 *         "bookedEntity": {
 *           "slot": {
 *             "serviceId": "0ebaeea4-a710-420c-9a88-9135e1a3c071",
 *             "scheduleId": "3752ffe8-2d58-4541-91ec-cd981c4ccb28",
 *             "startDate": "2026-06-16T14:30:00.000-04:00",
 *             "endDate": "2026-06-16T15:00:00.000-04:00",
 *             "timezone": "America/New_York",
 *             "resource": {
 *               "name": "Business Owner",
 *               "email": "owner@example.com",
 *               "scheduleId": "8a69a784-9b19-4633-9661-97e8b4e92c38",
 *               "type": "1cd44cf8-756f-41c3-bd90-3e2ffcaf1155",
 *               "_id": "804d8f27-c4ed-4fdb-acc9-a9fc3a8deda3"
 *             },
 *             "location": {
 *               "locationType": "OWNER_BUSINESS"
 *             },
 *             "resourceSelections": [
 *               {
 *                 "resourceTypeId": "1cd44cf8-756f-41c3-bd90-3e2ffcaf1155",
 *                 "selectionMethod": "SPECIFIC_RESOURCE"
 *               }
 *             ],
 *             "allDay": false
 *           },
 *           "title": "30-Min Follow-Up",
 *           "tags": [
 *             "INDIVIDUAL"
 *           ]
 *         },
 *         "contactDetails": {
 *           "firstName": "Isabella",
 *           "lastName": "Garcia",
 *           "email": "isabella.garcia@example.com"
 *         },
 *         "status": "CANCELED",
 *         "revision": "3",
 *         "createdBy": {
 *           "identityType": "APP",
 *           "appId": "a0a70193-1a7e-4d7a-98e1-a73b1a8ed633"
 *         },
 *         "startDate": "2026-06-16T18:30:00.000Z",
 *         "endDate": "2026-06-16T19:00:00.000Z",
 *         "totalParticipants": 1,
 *         "appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97",
 *         "_id": "2ecdbc80-4058-4c75-b784-de414ee9d954",
 *         "_createdDate": "2026-06-15T08:21:07.797Z",
 *         "_updatedDate": "2026-06-15T08:21:25.075Z"
 *       },
 *       "allowedActions": {
 *         "cancel": false,
 *         "reschedule": false,
 *         "bookAnother": true
 *       }
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 10,
 *     "cursors": {
 *       "next": "bb6c9b02c1b6e74e546bd8e2c318d713..."
 *     },
 *     "hasNext": true
 *   }
 * }
 */

```

### queryExtendedBookings (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 { extendedBookings } from '@wix/bookings';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function queryExtendedBookings(query,options) {
  const response = await myWixClient.extendedBookings.queryExtendedBookings(query,options);
};
```

---