Creates up to 8 bookings.
See Create Booking (SDK | REST) for more information.
If any of the specified bookings is missing a required field the entire call fails.
If you specify 1 or more unavailable bookings, the call succeeds
while the unavailable bookings aren't created. Instead, they're counted as
failures in the returned bulkActionMetadata
.
function bulkCreateBooking(
createBookingsInfo: Array<CreateBookingInfo>,
options: BulkCreateBookingOptions,
): Promise<BulkCreateBookingResponse>;
Bookings to create.
Max: 8 bookings
import { bookings } from "@wix/bookings";
async function bulkCreateBooking(createBookingsInfo, options) {
const response = await bookings.bulkCreateBooking(
createBookingsInfo,
options,
);
}
There are 2 errors with this status code.
There is 1 error with this status code.
There are 7 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.