Creates an RSVP, associated with a contact of the site.
function createRsvp(options: CreateRsvpOptions): Promise<CreateRsvpResponse>;
Optional fields.
import { rsvp } from "wix-events.v2";
async function createRsvp(options) {
try {
const result = await rsvp.createRsvp(options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.