[wix-bookings] Query booked appointments ??

Hi,

I have been working with wix-bookings APIs to get available slots and book them for a custom view on a web page. How can I do the following with APIs -

  • get a list of already booked appointments for a user

  • cancel a booked appointment

I am trying to create a custom view for managing bookings for a user

Thanks

Hi,
Currently, it’s not possible to access booked appointment using the Wix Bookings API.

Feel free to check Corvid updates here and the current Corvid Wishlist here .
The features in development are shown here or you can request this feature here .

Hi, I’m trying to do a similar query, but I’ve got an error : Cannot find module ‘wix-bookings-backend’ in ‘public/pages/u7oiw.js’

Here is the reference, but I can’t get into WIX Booking API
https://www.wix.com/velo/reference/wix-bookings-backend/bookings/querybookings

Can you help me how to get a filter from (StartDate) to (EndDate)?
Here is the code:

import wixSite from 'wix-site';
import { bookings } from "wix-bookings-backend";

$w.onReady(function () {
 
});

export function queryBookings() {
 return bookings
    .queryBookings()
    .ge("startTime", $w('#datestart'))
    .gt("endTime", '#dateEnd')
    .find()
    .then((queryResult) => {
 return queryResult.items;
    })
    .catch((error) => {
 return error;
    });
}

Hi, I have exactly the same issue. Did you find a way to solve it ?

Regards,
Philippe

Hi, I have exactly the same issue. Did you find a way to solve it ?

Regards,
Philippe

Its happening the same for me - did you find a way to solve it?

You guys are having issues because you are using a backend module ( wix-bookings-backend ) in the frontend of the site