Code Review Bench PR #26782 - fix: Make BOOKING_CANCELLED` webhook payload consistent for regular cancellation and request-reschedule flow#11
Open
tomerqodo wants to merge 3 commits intobase_pr_26782_20260125_3527from
Conversation
This was referenced Jan 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code Review Bench PR calcom#26782
Original PR Title: fix: Make BOOKING_CANCELLED` webhook payload consistent for regular cancellation and request-reschedule flow
Original PR Description: ## What does this PR do?
Fixes inconsistencies in the
BOOKING_CANCELLEDwebhook payload when triggered via the "Request Reschedule" flow vs regular cancellations.Issues Fixed:
Missing
organizer.id- TheusersToPeopleType()function inrequestReschedule.handler.tswas not including theidfield when converting users toPersonobjects, causing intermittentorganizer.idmissing errors for webhook consumers.Missing payload fields - The request reschedule cancellation webhook was missing several fields that are present in regular cancellation webhooks:
eventTypeId(Int)length(Int)iCalSequence(Int)eventTitle(String)status(String)New
requestReschedulefield - Added a new boolean field to help webhook consumers distinguish between:requestReschedule: false)requestReschedule: true)Changes:
requestReschedule.handler.tsto includeidin organizer and pass additional fieldsBookingWebhookFactory.tsto support new cancellation payload fieldshandleCancelBooking.tsto includerequestReschedule: falsecancelAttendeeSeat.tsto includerequestReschedule: falseBookingWebhookService,BookingPayloadBuilder, DTOs, params)webhooks.mdx)Note: This is a non-breaking change - only adds new fields to existing payloads.
Visual Demo (For contributors especially)
Before (Request Reschedule cancellation webhook - missing fields):
After (Request Reschedule cancellation webhook - complete):
Regular cancellation webhook (now includes new field):
Mandatory Tasks (DO NOT REMOVE)
docs/developing/guides/automation/webhooks.mdxandpackages/features/webhooks/WEBHOOK_PAYLOADS.md.How should this be tested?
Test 1: Regular Cancellation
organizer.idis presentrequestReschedule: falseTest 2: Request Reschedule Cancellation
organizer.idis presenteventTypeId,length,iCalSequence,eventTitle,statusare all presentrequestReschedule: trueTest 3: Seat Cancellation
requestReschedule: falseChecklist
Original PR URL: fix: Make BOOKING_CANCELLED` webhook payload consistent for regular cancellation and request-reschedule flow calcom/cal.com#26782