> 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

# BulkGetMultiServiceBookingAllowedActions

# Package: bookings

# Namespace: MultiServiceBookings

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/bulk-get-multi-service-booking-allowed-actions.md

## Permission Scopes:
Read Bookings - Public Data: SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC

## Introduction

Retrieves information about which actions the customer can perform for up to 50 multi-service bookings.


For each multi-service booking, the response indicates which actions are currently allowed:
- `cancel`: Whether the customer can cancel the multi-service booking.
- `reschedule`: Whether the customer can adjust the multi-service booking's timing.

Bear the following considerations in mind when calling this method:

__Real-time validation__: Wix Bookings calculates allowed actions based on current multi-service booking status, [booking policies](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction.md), and [available resources](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md) at the time of the call.

__Permission context__: Depending on the permissions of the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md), you may see different allowed actions for the same multi-service booking. For example, if the identity has permissions to read only part of the multi-service booking, the response indicates which single-service bookings the identity can read.

__Status dependencies__: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`).
Bookings can skip `PENDING` and move directly from `CREATED` to `CONFIRMED`/`DECLINED` based on service configuration.

---

## REST API

### Schema

```
 Method: bulkGetMultiServiceBookingAllowedActions
 Description: Retrieves information about which actions the customer can perform for up to 50 multi-service bookings.   For each multi-service booking, the response indicates which actions are currently allowed: - `cancel`: Whether the customer can cancel the multi-service booking. - `reschedule`: Whether the customer can adjust the multi-service booking's timing.  Bear the following considerations in mind when calling this method:  __Real-time validation__: Wix Bookings calculates allowed actions based on current multi-service booking status, [booking policies](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction.md), and [available resources](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md) at the time of the call.  __Permission context__: Depending on the permissions of the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md), you may see different allowed actions for the same multi-service booking. For example, if the identity has permissions to read only part of the multi-service booking, the response indicates which single-service bookings the identity can read.  __Status dependencies__: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`). Bookings can skip `PENDING` and move directly from `CREATED` to `CONFIRMED`/`DECLINED` based on service configuration.
 URL: https://www.wixapis.com/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  multiServiceBookingIds
 Method parameters: 
   param name: multiServiceBookingIds | type: array<multiServiceBookingIds> | description: IDs of the multi-service bookings to retrieve allowed actions for. | required: true | validation: minItems 1, maxItems 50, format GUID
 Return type: BulkGetMultiServiceBookingAllowedActionsResponse
  - name: results | type: array<BulkCalculateAllowedActionsResult> | description: Information about the multi-service bookings that were retrieved. Includes their GUID, index in the bulk request and whether they were successfully processed.  
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the booking. Including GUID, index in the provided sequence, success status, and error.  
        - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: item | type: AllowedActions | description: Booking entity.  
        - name: cancel | type: boolean | description: Whether canceling the booking is allowed.  
        - name: reschedule | type: boolean | description: Whether rescheduling the booking is allowed.  
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  


```

### Examples

### Retrieve allowed actions for a multi-service booking
```curl
curl -X POST \
  'https://www.wixapis.com/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <AUTH>' \
  -d '{
    "multiServiceBookingIds": [
      "msb-12345",
      "msb-67890",
      "msb-11111"
    ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bookings.bookings.bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds)
 Description: Retrieves information about which actions the customer can perform for up to 50 multi-service bookings.   For each multi-service booking, the response indicates which actions are currently allowed: - `cancel`: Whether the customer can cancel the multi-service booking. - `reschedule`: Whether the customer can adjust the multi-service booking's timing.  Bear the following considerations in mind when calling this method:  __Real-time validation__: Wix Bookings calculates allowed actions based on current multi-service booking status, [booking policies](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction.md), and [available resources](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction.md) at the time of the call.  __Permission context__: Depending on the permissions of the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md), you may see different allowed actions for the same multi-service booking. For example, if the identity has permissions to read only part of the multi-service booking, the response indicates which single-service bookings the identity can read.  __Status dependencies__: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`). Bookings can skip `PENDING` and move directly from `CREATED` to `CONFIRMED`/`DECLINED` based on service configuration.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  multiServiceBookingIds
 Method parameters: 
   param name: multiServiceBookingIds | type: array<string> | description: IDs of the multi-service bookings to retrieve allowed actions for. | required: true | validation: minItems 1, maxItems 50, format GUID
 Return type: PROMISE<BulkGetMultiServiceBookingAllowedActionsResponse>
  - name: results | type: array<BulkCalculateAllowedActionsResult> | description: Information about the multi-service bookings that were retrieved. Includes their GUID, index in the bulk request and whether they were successfully processed.  
     - name: itemMetadata | type: ItemMetadata | description: Metadata for the booking. Including GUID, index in the provided sequence, success status, and error.  
        - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item).  
        - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items.  
        - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated.  
        - name: error | type: ApplicationError | description: Details about the error in case of failure.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - name: item | type: AllowedActions | description: Booking entity.  
        - name: cancel | type: boolean | description: Whether canceling the booking is allowed.  
        - name: reschedule | type: boolean | description: Whether rescheduling the booking is allowed.  
  - name: bulkActionMetadata | type: BulkActionMetadata | description: Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions.  
     - name: totalSuccesses | type: integer | description: Number of items that were successfully processed.  
     - name: totalFailures | type: integer | description: Number of items that couldn't be processed.  
     - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded.  


```

### Examples

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

async function bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds) {
  const response = await bookings.bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds);
};
```

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

async function myBulkGetMultiServiceBookingAllowedActionsMethod(multiServiceBookingIds) {
  const elevatedBulkGetMultiServiceBookingAllowedActions = auth.elevate(bookings.bulkGetMultiServiceBookingAllowedActions);
  const response = await elevatedBulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds);
}
```

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

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

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


async function bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds) {
  const response = await myWixClient.bookings.bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds);
};
```

---