curl -X POST https://api.magpipe.ai/functions/v1/cal-com-cancel-booking \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "bkg_a1b2c3d4e5f6",
"reason": "Customer requested reschedule"
}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
uid: 'bkg_a1b2c3d4e5f6',
reason: 'Customer requested reschedule'
}),
}
);
const result = await response.json();
console.log('Cancelled:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'uid': 'bkg_a1b2c3d4e5f6',
'reason': 'Customer requested reschedule'
}
)
result = response.json()
print(f"Cancelled: {result['success']}")
{
"success": true,
"booking_id": 123456
}
{
"error": {
"code": "booking_not_found",
"message": "Booking not found or already cancelled"
}
}
Calendar
Cancel Booking
Cancel an existing calendar booking
POST
/
cal-com-cancel-booking
curl -X POST https://api.magpipe.ai/functions/v1/cal-com-cancel-booking \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "bkg_a1b2c3d4e5f6",
"reason": "Customer requested reschedule"
}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
uid: 'bkg_a1b2c3d4e5f6',
reason: 'Customer requested reschedule'
}),
}
);
const result = await response.json();
console.log('Cancelled:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'uid': 'bkg_a1b2c3d4e5f6',
'reason': 'Customer requested reschedule'
}
)
result = response.json()
print(f"Cancelled: {result['success']}")
{
"success": true,
"booking_id": 123456
}
{
"error": {
"code": "booking_not_found",
"message": "Booking not found or already cancelled"
}
}
Cancel a previously booked appointment. The attendee will receive a cancellation notification.
Request Body
integer
The Cal.com booking ID to cancel. Provide either
booking_id or uid.string
The unique booking identifier to cancel. Provide either
booking_id or uid.string
Optional reason for cancellation (included in notification).
Response
boolean
Whether the booking was cancelled successfully.
integer
The cancelled booking ID.
curl -X POST https://api.magpipe.ai/functions/v1/cal-com-cancel-booking \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "bkg_a1b2c3d4e5f6",
"reason": "Customer requested reschedule"
}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
uid: 'bkg_a1b2c3d4e5f6',
reason: 'Customer requested reschedule'
}),
}
);
const result = await response.json();
console.log('Cancelled:', result.success);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/cal-com-cancel-booking',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'uid': 'bkg_a1b2c3d4e5f6',
'reason': 'Customer requested reschedule'
}
)
result = response.json()
print(f"Cancelled: {result['success']}")
{
"success": true,
"booking_id": 123456
}
{
"error": {
"code": "booking_not_found",
"message": "Booking not found or already cancelled"
}
}
⌘I