Creating get http function to get the booking date for a site member from external CRM

Hi,

I use a CRM to manage our customers and would like to create an http endpoint for mysite that would allow me to get the booking date for a customer after they have booked an appointment through an API call to an end-point. I did look at the Exposing an API guide but I couldn’t find the database where the booking data for customers is stored so I can pull things from there. Please advise. If you can post the code to be able to do this, it will be highly appreciated. Thanks.

JP

If you’re talking about Wix Bookings, then the collection you need is “Schedule” and you can find it under Bookings

Yes, I’m talking about Wix Bookings. “Schedule” only shows the hours I set for each service. I’m looking to get the booking date a user has booked on my site based on the user’s email using an external API. For ex., if someone has booked service X for September 21st 2 PM, I want the September 21st 2 PM through the API call when I pass the user’s email address as the paramter through the http request.

I think you’re right (sorry for the wrong answer. I’ve never really used Wix Bookings, only played with it for a few minutes).
Maybe someone can help, but on first glance it seems to me that it’s not possible unless you use checkoutbooking() to setup the appointments and save the appointment details in a separate collection of your own.