reserve( )


Reserves tickets for an event.

Migration Instructions

To stay compatible with future changes, migrate to createTicketReservation().

To migrate to the new method:

  1. Add a backend file to your site.

  2. Write a code so that it replaces the reserve() method from the frontend with the createTicketReservation() method from the backend. Export your backend function so that it can be used in the frontend.

  3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected.

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

Notes:

  • The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality.
  • This method doesn't reserve tickets for events with seating maps.
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>
Did this help?