cancelReservation( )


Cancels ticket reservation and returns tickets to stock.

Permissions
Manage Events - all permissions
Manage Orders
Learn more about app permissions.
Method Declaration
Copy
function cancelReservation(_id: string, eventId: string): Promise<void>;
Method Parameters
_idstringRequired

Reservation ID.


eventIdstringRequired

Event ID to which the reservation belongs.

JavaScript
import { orders } from "wix-events.v2"; async function cancelReservation(id, eventId) { try { const result = await orders.cancelReservation(id, eventId); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

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

Did this help?