reserve( )


Reserves tickets for an event.

The reserve() function returns a Promise that resolves to a ReservationResponse when the tickets have been reserved.

Retrieve ticket IDs to specify which tickets to reserve from the Events/Tickets collection. Each ticket must have a unique ID.

Note: To work with the Wix Events API, you need to publish your site.

Note: You can use the backend createReservation() function to reserve tickets.

Method Declaration
Copy
Method Parameters
eventIdstringRequired

ID of the event to reserve tickets for.


ticketsArray<TicketSelection>Required

Tickets to reserve.

Returns
Return Type:Promise<ReservationResponse>
Was this helpful?
Yes
No