Skip to content

fix(webhooks): verify requestReschedule flag in BOOKING_CANCELLED webhook#28788

Draft
jaydeep-pipaliya wants to merge 1 commit intocalcom:mainfrom
jaydeep-pipaliya:fix/request-reschedule-webhook-requestReschedule-flag
Draft

fix(webhooks): verify requestReschedule flag in BOOKING_CANCELLED webhook#28788
jaydeep-pipaliya wants to merge 1 commit intocalcom:mainfrom
jaydeep-pipaliya:fix/request-reschedule-webhook-requestReschedule-flag

Conversation

@jaydeep-pipaliya
Copy link
Copy Markdown

What does this PR do?

Fixes #28543

When a host triggers "Request Reschedule", the BOOKING_CANCELLED webhook fires. This PR adds a regression test to verify that the webhook payload includes requestReschedule: true, making it distinguishable from a permanent cancellation.

Why is this needed?

Without this field being true, webhook consumers (Zapier, n8n, Make, CRM integrations) cannot distinguish a host-requested reschedule from a genuine cancellation — causing wrong refunds, incorrect CRM status updates, and broken automations.

The requestReschedule flag already exists in the webhook payload type (EventPayloadType) and is set in requestReschedule.handler.ts, but there was no test asserting it was actually included in the outgoing payload.

Changes

  • Added test to apps/web/test/handlers/requestReschedule.test.ts that:
    • Sets up a webhook subscriber listening on BOOKING_CANCELLED
    • Triggers "Request Reschedule" as the organizer
    • Asserts the webhook payload contains requestReschedule: true and status: "CANCELLED"

…bhook

When a host triggers 'Request Reschedule', the BOOKING_CANCELLED webhook
must include requestReschedule: true so integrations can distinguish it
from a permanent cancellation.

Fixes calcom#28543
@github-actions github-actions bot added the 🐛 bug Something isn't working label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: rescheduledToUid Is null in BOOKING_CANCELLED Webhook When Triggered via "Request Reschedule"

1 participant