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"; async function cancelReservation(id, eventId) { const response = await orders.cancelReservation(id, eventId); }
Errors

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

Did this help?