Cancel a booking
curl --request POST \
--url https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'POST', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"message": "<string>"
}API v1 (deprecated)
Cancel booking
Cancel a booking.
POST
/
bookings
/
{booking_sid}
/
cancel
Cancel a booking
curl --request POST \
--url https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'POST', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_sid}/cancel"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"message": "<string>"
}In API v2, approve, reject, cancel, and reschedule are handled by one endpoint: Update a booking (
PATCH /bookings/{booking_id}), not separate routes.Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
SID of the booking that you want to cancel.
Example:
"hda6gxy"
Query Parameters
Reason for cancelling the booking.
Response
200 - application/json
OK - Booking cancel successful