How can I get session IDs for course bookings that have attendance status "Booked"?

I’m having trouble with
I’m working on a custom check-in page and while I am able at present to find session IDs for course bookings where the attendance status is either “checked-in” (ATTENDED) or “no-show” (NOT_ATTENDED), it seems that bookings with the status “booked” (CREATED) do NOT have session IDs assigned yet and hence I cannot change their attendance status. How can I materialize/create session IDs for bookings that are still marked as “booked” (CREATED)?

Working in
I’m working in Wix Studio Editor with velo and chat GPT because lots of the code is beyond me, and I’ve got a node bridge up and running with an app so I have the permissions I need to get most of the data.

Site link

What I’m trying to do
I’d like to be able to change people’s attendance status from booked to checked-in (or no-show) but NOT in the Wix dashboard.

What I’ve tried so far
So far I’ve found that where I need to be looking is Calendar Events V3 as it does list every course session occurrence for a scheduleId. I’ve run a query on Calendar Events V3 with scheduleId and a bookingId (for someone who is marked “check-in”) and I’ve been able to find the sessionId for each session of a given course, but it appears that when a booking is still listed as “booked” (or CREATED), there is no attendance row created for it yet.

Extra context
I’m creating a custom booking flow that includes my own non-wix credit system for courses, hence my need for a custom check-in page (and booking flow). Key to this whole this is how Wix deals with COURSES vs classes and appointments. The dream of course would be for wix to just connect up pricing plans and credits to their courses and all my troubles would be over, but I’ve waited years for that and I have no faith that is forthcoming. I even switched to another booking service with just that capability but I’m hoping to be able to switch back to Wix after I build this.