bulkCreateBooking( )


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.

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
createBookingsInfoArray<CreateBookingInfo>Required

Bookings to create.

Max: 8 bookings


optionsBulkCreateBookingOptions
Returns
Return Type:Promise<BulkCreateBookingResponse>
Errors
400Invalid Argument

There are 2 errors with this status code.

403Permission Denied

There is 1 error with this status code.

428Failed Precondition

There are 7 errors with this status code.

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

Did this help?