> 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

# ListAvailabilityTimeSlotConfigurations

# Package: timeSlots

# Namespace: AvailabilityTimeSlotsConfigurationProvider

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/availability-time-slots-configuration-service-plugin/list-availability-time-slot-configurations.md

## Introduction

Retrieves availability time slot configurations for the specified services.

Wix calls this method when a customer views available booking times or books a service. For example:
- When a customer loads the Bookings calendar to select a time slot, [List Availability Time Slots](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/list-availability-time-slots.md) calls this method.
- When a customer books a service, [Get Availability Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-availability-time-slot.md) calls this method.

Wix uses the returned configurations to calculate available time slots, considering:
- Service duration.
- Split interval and buffer time.
- Service locations.
- Required resource types and available resources.

Your implementation must return a configuration for each service in the request, in the same order.
All fields in the response must be returned unless explicitly marked as optional.

---

## REST API

### Schema

```
 Method: listAvailabilityTimeSlotConfigurations
 Description: Retrieves availability time slot configurations for the specified services.  Wix calls this method when a customer views available booking times or books a service. For example: - When a customer loads the Bookings calendar to select a time slot, [List Availability Time Slots](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/list-availability-time-slots.md) calls this method. - When a customer books a service, [Get Availability Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-availability-time-slot.md) calls this method.  Wix uses the returned configurations to calculate available time slots, considering: - Service duration. - Split interval and buffer time. - Service locations. - Required resource types and available resources.  Your implementation must return a configuration for each service in the request, in the same order. All fields in the response must be returned unless explicitly marked as optional.
 URL: {DEPLOYMENT-URI}/v2/list-availability-time-slot-configurations
 Method: POST
 Method parameters:
   param name: serviceIds | type: array<serviceIds> | description: Deprecated. Use `services` instead.  | validation: minItems 1, maxItems 100, format GUID
   param name: services | type: array<services> | description: Services to retrieve configurations for.  This list is ordered. Return configurations in the same order as the services in this list. The same service GUID may appear multiple times with different customer choices.  | validation: maxItems 100
              - name: serviceId | type: string | description: Service GUID.  | validation: format GUID
              - name: customerChoices | type: CustomerChoices | description: Customer's selected choices for this service, such as duration from [service options and variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md) or [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md).  
                 - name: durationInMinutes | type: integer | description: Duration selected by the customer in minutes. Based on the customer's selection from [service options and variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md). When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.  | validation: minimum 1, maximum 57600, format int32
                 - name: addOnIds | type: array<string> | description: IDs of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) selected by the customer. When specifying this field, we recommend omitting `durationInMinutes`. Wix Bookings then calculates the total duration based on the service duration plus all selected add-on durations.  | validation: maxItems 21, format GUID
                 - name: requestedGender | type: RequestedGenderValue | description: Gender the customer narrowed an "any staff member" selection to. Only time slots served by staff members of that gender are returned. Omit to keep "any staff member" unnarrowed.  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). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.  
                    - name: gender | type: RequestedGender | description: Gender the customer narrowed "any staff member" to.  
                             - enum:
                             -     ANY_MALE: Any male staff member.
                             -     ANY_FEMALE: Any female staff member.
 Return type: ListAvailabilityTimeSlotConfigurationsResponse
  - name: configurations | type: array<AvailabilityTimeSlotsConfiguration> | description: Configurations for the requested services. Must contain one configuration per service in the request, in the same order.  
     - name: serviceId | type: string | description: Service GUID.  | validation: format GUID
     - name: resourceTypes | type: array<ResourceType> | description: [Resource types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md) required to book this service. For example, a room from the "rooms" resource type and a staff member from the "staff" resource type.  | validation: minItems 1, maxItems 9
        - name: resourceTypeId | type: string | description: Resource type GUID.  | validation: format GUID
        - name: resourceIds | type: array<string> | description: IDs of resources available for booking within this resource type. These may be a subset of all resources in the type.  | validation: maxItems 220, format GUID
        - name: numberOfResourcesRequired | type: integer | description: Number of resources required to book the service.  Currently supports only a value of `1`.  Default: `1`  | validation: minimum 1, maximum 1, format int32
     - name: locations | type: array<Location> | description: Locations where this service is offered.  You can specify multiple `BUSINESS` locations, but only a single `CUSTOM` or `CUSTOMER` location.  | validation: maxItems 100
        - name: id | type: string | description: Location GUID. Returned only for business locations.  | validation: format GUID
        - name: name | type: string | description: Location name.  
        - name: formattedAddress | type: string | description: Full address of the location.  
        - name: locationType | type: LocationType | description: Location type.  
             - enum:
             -     CUSTOM: Custom location specific to this service, not defined as a business location.
             -     BUSINESS: Business location defined under Business Info in the dashboard.
             -     CUSTOMER: Location determined by the customer at booking time.
     - name: splitIntervalInMinutes | type: integer | description: Time between available slots' start times in minutes. For example, with 5-minute intervals: `3:00`, `3:05`, and `3:10`.  When the business configures the split interval to match the service duration, this value is the service duration plus `bufferTimeInMinutes`. The maximum of `58320` therefore covers the longest bookable duration, 40 days (`57600` minutes), plus the maximum `bufferTimeInMinutes` of `720`.  | validation: minimum 1, maximum 58320
     - name: duration | type: Duration | description: Service duration. Leave empty when `durationUnit.unitType` is `DAY`.  
        - name: defaultInMinutes | type: integer | description: Default duration in minutes.  | validation: minimum 1, maximum 57600
     - name: bufferTimeInMinutes | type: integer | description: Buffer time in minutes between the end of one slot and the start of the next.  | validation: minimum 0, maximum 720
     - name: scheduleId | type: string | description: GUID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction.md) for this service.  | validation: format GUID
     - name: durationUnit | type: DurationUnit | description: Duration unit configuration for services that support a range of bookable durations.  For hourly duration ranges, return both `duration` (with `defaultInMinutes` set to the minimum duration) and `durationUnit`. For daily duration ranges, return only `durationUnit` with `unitType` set to `DAY` and leave `duration` empty.  
        - ONE-OF: 
           - name: dayOptions | type: DayOptions | description: Options for daily durations. Set only when `unitType` is `DAY`.  
              - name: timeBoundaries | type: TimeBoundaries | description: Times of day at which each bookable day starts and ends. For example, check-in at `15:00` and check-out at `11:00` for a vacation house.  When not set, each bookable day runs from midnight to midnight, the same as `FULL_DAY`.  
                 - ONE-OF: 
                    - name: overnightTimes | type: OvernightTimes | description: Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`.  
                       - name: checkInTime | type: string | description: Check-in time in `HH:mm` format, on the hour or half hour. Evaluated in the business time zone. For example, `15:00`.  | validation: format LOCAL_TIME
                       - name: checkOutTime | type: string | description: Check-out time on the day after the last booked night, in `HH:mm` format, on the hour or half hour. Evaluated in the business time zone. For example, `11:00`.  | validation: format LOCAL_TIME
                 - name: type | type: TimeBoundariesType | description: How the start and end times of each bookable day are set.  
                         - enum:
                         -     FULL_DAY: Each bookable day runs from midnight to midnight.
                         -     OVERNIGHT: Each booking checks in at `overnightTimes.checkInTime` and checks out on a later day at `overnightTimes.checkOutTime`.
        - name: unitType | type: UnitType | description: Unit of time for the duration range.  
             - enum:
             -     HOUR: Duration measured in hours. Availability is calculated as time slots.
             -     DAY: Duration measured in days. Availability is calculated as full-day windows.
        - name: minDuration | type: integer | description: Minimum bookable duration. Value is in minutes when `unitType` is `HOUR`, and in days when `unitType` is `DAY`. Must be less than or equal to `maxDuration`.  For example, `60` for a 1-hour minimum or `1` for a 1-day minimum.  | validation: minimum 1, maximum 1440
        - name: maxDuration | type: integer | description: Maximum bookable duration. Value is in minutes when `unitType` is `HOUR`, and in days when `unitType` is `DAY`. Must be greater than or equal to `minDuration`. Maximum for daily durations is 8 consecutive days.  For example, `240` for a 4-hour maximum or `8` for an 8-day maximum.  | validation: minimum 1, maximum 1440


```

### Examples

### List the availability time slot configuration with duration range - decoded JWT
Returns a configuration with a bookable duration range. The data payload will include the following object as an encoded JWT. For the purposes of this example, we show the request and response objects decoded.

```curl
curl -X POST \ 'https://provider.example.com/v2/list-availability-time-slot-configurations' \
-H 'user-agent: Wix' \
-H 'accept-encoding: gzip, deflate' \
-H 'content-type: text/plain; charset=utf-8' \
-d '{
  "data": {
    "request": {
      "services": [
        {
          "serviceId": "9bf5cd2d-32fa-4ee7-952c-5e4b6de14714"
        }
      ]
    },
    "metadata": {
      "requestId": "1674480822.92546993606315181",
      "identity": {
        "identityType": "ANONYMOUS_VISITOR",
        "anonymousVisitorId": "c7808c1d-e6a5-49e5-bcbe-b3fcf2f72d28"
      },
      "instanceId": "bb2b1658-9855-4598-b1e0-48e8cdb7f98a"
    }
  },
  "aud": "3467d501-9004-498d-9b5c-d50f6d4ede66",
  "iss": "wix.com",
  "iat": 1674480823,
  "exp": 1678080823
}'
```

### List the availability time slot configuration - decoded JWT
The data payload will include the following object as an encoded JWT. For the purposes of this example, we show the request and response objects decoded.

```curl
curl -X POST \ 'https://provider.example.com/v2/list-availability-time-slot-configurations' \
-H 'user-agent: Wix' \
-H 'accept-encoding: gzip, deflate' \
-H 'content-type: text/plain; charset=utf-8' \
-d '{
  "data": {
    "request": {
      "serviceIds": [
        "9bf5cd2d-32fa-4ee7-952c-5e4b6de14714"
      ]
    },
    "metadata": {
      "requestId": "1674480822.92546993606315181",
      "identity": {
        "identityType": "ANONYMOUS_VISITOR",
        "anonymousVisitorId": "c7808c1d-e6a5-49e5-bcbe-b3fcf2f72d28"
      },
      "instanceId": "bb2b1658-9855-4598-b1e0-48e8cdb7f98a"
    }
  },
  "aud": "3467d501-9004-498d-9b5c-d50f6d4ede66",
  "iss": "wix.com",
  "iat": 1674480823,
  "exp": 1678080823
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bookings.availabilityTimeSlotsConfiguration.listAvailabilityTimeSlotConfigurations(request, metadata)
 Description: Retrieves availability time slot configurations for the specified services.  Wix calls this method when a customer views available booking times or books a service. For example: - When a customer loads the Bookings calendar to select a time slot, [List Availability Time Slots](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/list-availability-time-slots.md) calls this method. - When a customer books a service, [Get Availability Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-availability-time-slot.md) calls this method.  Wix uses the returned configurations to calculate available time slots, considering: - Service duration. - Split interval and buffer time. - Service locations. - Required resource types and available resources.  Your implementation must return a configuration for each service in the request, in the same order. All fields in the response must be returned unless explicitly marked as optional.
 Method parameters:
   param name: request | type: ListAvailabilityTimeSlotConfigurationsRequest    
        - name: services | type: array<Service> | description: Services to retrieve configurations for.  This list is ordered. Return configurations in the same order as the services in this list. The same service GUID may appear multiple times with different customer choices.  | validation: maxItems 100
           - name: serviceId | type: string | description: Service GUID.  | validation: format GUID
           - name: customerChoices | type: CustomerChoices | description: Customer's selected choices for this service, such as duration from [service options and variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md) or [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md).  
              - name: durationInMinutes | type: integer | description: Duration selected by the customer in minutes. Based on the customer's selection from [service options and variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction.md). When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.  | validation: minimum 1, maximum 57600, format int32
              - name: addOnIds | type: array<string> | description: IDs of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction.md) selected by the customer. When specifying this field, we recommend omitting `durationInMinutes`. Wix Bookings then calculates the total duration based on the service duration plus all selected add-on durations.  | validation: maxItems 21, format GUID
              - name: requestedGender | type: RequestedGenderValue | description: Gender the customer narrowed an "any staff member" selection to. Only time slots served by staff members of that gender are returned. Omit to keep "any staff member" unnarrowed.  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). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.  
                 - name: gender | type: RequestedGender | description: Gender the customer narrowed "any staff member" to.  
                         - enum:
                         -     ANY_MALE: Any male staff member.
                         -     ANY_FEMALE: Any female staff member.
   param name: metadata | type: Context | description: this message is not directly used by any service, it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform. e.g. SPIs, event-handlers, etc.. NOTE: this context object MUST be provided as the last argument in each Velo method signature.  Example: ```typescript export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) { ... } ```  
        - name: requestId | type: string | description: A unique identifier of the request. You may print this GUID to your logs to help with future debugging and easier correlation with Wix's logs.  
        - name: currency | type: string | description: [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.  | validation: format CURRENCY
        - name: identity | type: IdentificationData | description: An object that describes the identity that triggered this request.  
           - 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: languages | type: array<string> | description: A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`.  
        - name: instanceId | type: string | description: The service provider app's instance GUID.  | validation: format GUID
 Return type: PROMISE<ListAvailabilityTimeSlotConfigurationsResponse>
  - name: configurations | type: array<AvailabilityTimeSlotsConfiguration> | description: Configurations for the requested services. Must contain one configuration per service in the request, in the same order.  
     - name: serviceId | type: string | description: Service GUID.  | validation: format GUID
     - name: resourceTypes | type: array<ResourceType> | description: [Resource types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction.md) required to book this service. For example, a room from the "rooms" resource type and a staff member from the "staff" resource type.  | validation: minItems 1, maxItems 9
        - name: resourceTypeId | type: string | description: Resource type GUID.  | validation: format GUID
        - name: resourceIds | type: array<string> | description: IDs of resources available for booking within this resource type. These may be a subset of all resources in the type.  | validation: maxItems 220, format GUID
        - name: numberOfResourcesRequired | type: integer | description: Number of resources required to book the service.  Currently supports only a value of `1`.  Default: `1`  | validation: minimum 1, maximum 1, format int32
     - name: locations | type: array<Location> | description: Locations where this service is offered.  You can specify multiple `BUSINESS` locations, but only a single `CUSTOM` or `CUSTOMER` location.  | validation: maxItems 100
        - name: _id | type: string | description: Location GUID. Returned only for business locations.  | validation: format GUID
        - name: name | type: string | description: Location name.  
        - name: formattedAddress | type: string | description: Full address of the location.  
        - name: locationType | type: LocationType | description: Location type.  
             - enum:
             -     CUSTOM: Custom location specific to this service, not defined as a business location.
             -     BUSINESS: Business location defined under Business Info in the dashboard.
             -     CUSTOMER: Location determined by the customer at booking time.
     - name: splitIntervalInMinutes | type: integer | description: Time between available slots' start times in minutes. For example, with 5-minute intervals: `3:00`, `3:05`, and `3:10`.  When the business configures the split interval to match the service duration, this value is the service duration plus `bufferTimeInMinutes`. The maximum of `58320` therefore covers the longest bookable duration, 40 days (`57600` minutes), plus the maximum `bufferTimeInMinutes` of `720`.  | validation: minimum 1, maximum 58320
     - name: duration | type: Duration | description: Service duration. Leave empty when `durationUnit.unitType` is `DAY`.  
        - name: defaultInMinutes | type: integer | description: Default duration in minutes.  | validation: minimum 1, maximum 57600
     - name: bufferTimeInMinutes | type: integer | description: Buffer time in minutes between the end of one slot and the start of the next.  | validation: minimum 0, maximum 720
     - name: scheduleId | type: string | description: GUID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction.md) for this service.  | validation: format GUID
     - name: durationUnit | type: DurationUnit | description: Duration unit configuration for services that support a range of bookable durations.  For hourly duration ranges, return both `duration` (with `defaultInMinutes` set to the minimum duration) and `durationUnit`. For daily duration ranges, return only `durationUnit` with `unitType` set to `DAY` and leave `duration` empty.  
        - ONE-OF: 
           - name: dayOptions | type: DayOptions | description: Options for daily durations. Set only when `unitType` is `DAY`.  
              - name: timeBoundaries | type: TimeBoundaries | description: Times of day at which each bookable day starts and ends. For example, check-in at `15:00` and check-out at `11:00` for a vacation house.  When not set, each bookable day runs from midnight to midnight, the same as `FULL_DAY`.  
                 - ONE-OF: 
                    - name: overnightTimes | type: OvernightTimes | description: Check-in and check-out times, applied to every day of the week. Required when `type` is `OVERNIGHT`.  
                       - name: checkInTime | type: string | description: Check-in time in `HH:mm` format, on the hour or half hour. Evaluated in the business time zone. For example, `15:00`.  | validation: format LOCAL_TIME
                       - name: checkOutTime | type: string | description: Check-out time on the day after the last booked night, in `HH:mm` format, on the hour or half hour. Evaluated in the business time zone. For example, `11:00`.  | validation: format LOCAL_TIME
                 - name: type | type: TimeBoundariesType | description: How the start and end times of each bookable day are set.  
                         - enum:
                         -     FULL_DAY: Each bookable day runs from midnight to midnight.
                         -     OVERNIGHT: Each booking checks in at `overnightTimes.checkInTime` and checks out on a later day at `overnightTimes.checkOutTime`.
        - name: unitType | type: UnitType | description: Unit of time for the duration range.  
             - enum:
             -     HOUR: Duration measured in hours. Availability is calculated as time slots.
             -     DAY: Duration measured in days. Availability is calculated as full-day windows.
        - name: minDuration | type: integer | description: Minimum bookable duration. Value is in minutes when `unitType` is `HOUR`, and in days when `unitType` is `DAY`. Must be less than or equal to `maxDuration`.  For example, `60` for a 1-hour minimum or `1` for a 1-day minimum.  | validation: minimum 1, maximum 1440
        - name: maxDuration | type: integer | description: Maximum bookable duration. Value is in minutes when `unitType` is `HOUR`, and in days when `unitType` is `DAY`. Must be greater than or equal to `minDuration`. Maximum for daily durations is 8 consecutive days.  For example, `240` for a 4-hour maximum or `8` for an 8-day maximum.  | validation: minimum 1, maximum 1440


```

### Examples

### listAvailabilityTimeSlotConfigurations
```javascript
import { availabilityTimeSlotsConfiguration } from '@wix/bookings/service-plugins';

async function listAvailabilityTimeSlotConfigurations(request,metadata) {
  const response = await availabilityTimeSlotsConfiguration.listAvailabilityTimeSlotConfigurations(request,metadata);
};
```

### listAvailabilityTimeSlotConfigurations (with elevated permissions)
```javascript
import { availabilityTimeSlotsConfiguration } from '@wix/bookings/service-plugins';
import { auth } from '@wix/essentials';

async function myListAvailabilityTimeSlotConfigurationsMethod(request,metadata) {
  const elevatedListAvailabilityTimeSlotConfigurations = auth.elevate(availabilityTimeSlotsConfiguration.listAvailabilityTimeSlotConfigurations);
  const response = await elevatedListAvailabilityTimeSlotConfigurations(request,metadata);
}
```

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

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


async function listAvailabilityTimeSlotConfigurations(request,metadata) {
  const response = await myWixClient.availabilityTimeSlotsConfiguration.listAvailabilityTimeSlotConfigurations(request,metadata);
};
```

---