Adding Guests to Event Via Velo Code

I’m having trouble with
I have an event in Wix Events that I need to schedule people in (vs. them signing up themselves). I need to do this programmatically in velo but cannot sort out out to do this. I have tried numerous ways and cannot sort it out.

Working in
Editor

Site link

What I’m trying to do
Simply add guests to an existing Wix Event. I can retrieve the event info and see the dates / instances. But cannot add them. I have tried all sorts of AI-directed approaches and nothing is working. Wix Support AI said to use the .registerGuest method but then later said it is not supported. I am just trying to add people to guest list.

What I’ve tried so far
Everything I and Claude AI can think of.

Extra context
Anything else that might help - edge cases, screenshots, etc.

1 Like

Why do you need to do it programmatically?

Can’t you just add them in via the dashboard for that particular event. Otherwise if you want to do it via code, you basically have to “buy the tickets” for that contact and event. Similar to a checkout scenario.

Your best bet is to follow this code guideline and go from there. Checkout | Velo

I’ve run into the same issue and haven’t found a solution yet. The Checkout function needs guest information, which means the formResponse is required for submission. But I want to create tickets through the backend so clients who purchased through a third party can still receive their confirmed tickets via Wix.

1 Like

IF the 3rd party has a function to send your guest information through a webhook, then use wix automations to recieve that information. And then use the velo code mentioned above to create their ticket in the backend.