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.

Notes:

  • To work with the Wix Events API, you need to publish your site.
  • This function 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>
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?