Cancels ticket reservation and returns tickets to stock.
function cancelReservation(_id: string, eventId: string): Promise<void>;
Reservation ID.
Event ID to which the reservation belongs.
import { orders } from "@wix/events";
async function cancelReservation(id, eventId) {
const response = await orders.cancelReservation(id, eventId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.