listPolicySnapshotsByBookingIds( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a list of booking policy snapshots by booking IDs.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Method Declaration
Copy
function listPolicySnapshotsByBookingIds(
  bookingIds: Array<string>,
): Promise<ListPolicySnapshotsByBookingIdsResponse>;
Method Parameters
bookingIdsArray<string>Required

List of booking IDs to retrieve policy snapshots for.

Returns
Return Type:Promise<ListPolicySnapshotsByBookingIdsResponse>
JavaScript
import { bookingPolicySnapshots } from "@wix/bookings"; async function listPolicySnapshotsByBookingIds(bookingIds) { const response = await bookingPolicySnapshots.listPolicySnapshotsByBookingIds(bookingIds); }
Errors
404Not Found

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?