POST /v1/scheduling/booking/resource-bookings/:id/cancel
Cancel a customer’s resource booking and free its nights or block.
POST
Cancel a resource booking of the customer
Cancels a resource booking of the customer, or an older resource appointment. Its nights or its block are free again right away, and the customer is notified.
A payment already made is not refunded automatically. The business handles it from its sales.
To book the same resource again, send new dates to PATCH on the cancelled id: it creates a new booking.
Endpoint
Required scope
scheduling:appointments:cancel
Path params
id: booking id, or the id of an older resource appointment.
Query params
customer_phone: required. The booking must belong to this phone; if it does not, the answer is404.
Body
reason: optional, at most 500 characters. Stored as the cancellation reason.
Example request
curl
Response
200 OK
The booking withstatus: "cancelled", shaped like an item of the search:
404 Not Found
RESOURCE_BOOKING_NOT_FOUND: it does not exist, belongs to another company, or is not the customer’s.
409 Conflict
401 Unauthorized · 403 Forbidden
Same semantics as the rest of the public API.Cancel a resource booking of the customer