How to cancel booking by API

Hello, I am implementing the function of canceling YCB booking on wordpress.

How to cancel booking by API?

Thanks!

1 Like

You can send a request through to the booking end point, with the PATCH and “cancelled”:true,

If you are looking to have cancellations go through your WordPress site, then there is a bit of code you can add to your embed to accept URL parameters and build out a cancel link like embedurl.com?c={ID} which you can add to the booking confirmation and notification.

2 Likes

Thanks @Ben.

It worked fine.