> 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

> **Deprecated.** This resource is deprecated.

## Resource: AvailabilityCalendar



## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/apis/wix-bookings-v2/availability-calendar/introduction.md

## Article Content:

# About the Wix Bookings Availability Calendar API


&nbsp;

<div style="background-color: #FEF1D1; padding: 18px 24px; border-radius: 6px; border: 1px solid #FDB10C; box-sizing: border-box; display: inline-block">
    <b>Developer Preview</b>
    <br/>
    <span>APIs in <a href="https://www.wix.com/velo/reference/api-overview/developer-preview">Developer Preview</a> are subject to change and are not intended for use in production.<br/><a href="mailto:velo-preview-feedback@wix.com">Send us</a> your suggestions for improving this API. Your feedback is valuable to us.</span>
</div>

&nbsp;

<!--
> __Note__: This module is [universal](/api-overview/api-versions#universal-modules). Functions in this module can run on both the backend and frontend, unless specified otherwise.
-->

With the Wix Bookings Availability Calendar API, you can retrieve the 
availability of a calendar's sessions. 

The Calendar Availability APIs calculate the availability of sessions for appointments and classes, but not for courses. 


### Terminology


+ __Booking__: Information about the service that the customer has booked. 
  Includes details about the time, location, participants, and price.
+ __Service__: Online or in-person business offerings, such as courses and private sessions. For
  example, a fitness studio may offer a 
  1-hour yoga class, a 45 minute HIIT training session, and a 30 minute 1-on-1 
  personal training. Bookings offers 3 types of services: 
    + __Appointments__: Appointments take place whenever a customer books a specific 
      time slot. For example, your hair salon may be open for business from 9:00 AM 
      to 7:00 PM and a customer can book a session at any available time during the day.
    + __Classes__: Classes can be scheduled on different days, at different times, 
      with different resources, such as staff members. Customers can sign up for single sessions
      or a class's recurring sessions. For example, a language school offers a beginner's Spanish 
      class every Monday at 8:00 PM. Clients can join the session they want and don't have to commit
      to attending all sessions.
    + __Courses__: A limited number of sessions for the same service that starts and ends 
      on a particular day. Customers sign up for the entire course and not one session. For example, 
      a 12-session introductory course to Pilates, starting on February 1st and
      ending on March 17th.
+ __Schedule__: A collection of all sessions that belong to the same class, course,
  appointment, or resource. Schedules also comprise available slots that can still be booked.
    + __Session__: An _occupied_ period of time in a schedule. Sessions are the 
      building blocks of appointments, classes, and courses. Each of these types of 
      services comprise sessions. The collection of related sessions for a service represent the 
      service's schedule. 
    + __Slot__: An _available_ period of time in a schedule that can be booked by a 
      customer. While this includes existing sessions that are available for
      booking, it can also represent a period of time that can be booked based on
      the availability of a resource, such as a barber with appointments of 30 
      minutes each that are open for booking every weekday between 8:00 - 17:00.
      These slots are calculated according to the constraints of the schedule.
+ __Calendar__: General overview about the availability and bookings of the 
  business, including its services and resources. Manage your appointments, classes 
  and courses on the calendar.
+ __Resource__: Business asset like a staff member, room, or equipment that's 
  needed to provide a service.
+ __Bookings Policy__: Terms the business wants to enforce when 
  customers try to book a service. For example, how far in advance customers 
  may book a service or until what point before the start of a session 
  customers can cancel.
+ __Locked Sessions__: Sessions that customers cannot book due to business reasons, such 
  as the session being full and having a waitlist, or because an administrator 
  wants to manually screen each customer before adding a customer to a session.

To use the Availability Calendar API, import `{ availabilityCalendar }` from the `wix-bookings.v2` module:

```javascript
import { availabilityCalendar } from 'wix-bookings.v2';
```