-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: webhook cancellation reason #19840
feat: webhook cancellation reason #19840
Conversation
@skmanoj322 is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (03/07/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (03/07/25)1 label was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@TusharBhatt1 can you provide the context for these |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @skmanoj322, I think there was a misunderstanding with the issue. This didn’t ask for a new webhook; we only want to add the cancellation reason to the existing cancel webhook's payload
Sorry about that! We’ll try to make it clearer next time. 🙏
Thanks for the effort , closing this. |
What does this PR do?
Visual Demo (For contributors especially)
cal_webhook_feature.mp4
Video Demo (if applicable):
Payload
same as cancel webhook just added reason for cancellation
{"triggerEvent":"BOOKING_CANCELLATION_REASON","createdAt":"2025-03-07T12:19:44.475Z","payload":{"bookerUrl":"https://3000-calcom-calcom-ocwfolg42h9.ws-us118.gitpod.io","title":"test webhook between delete-me and delete-me","length":15,"type":"test-webhook","description":"testing","customInputs":{},"eventTypeId":1149,"userFieldsResponses":{},"responses":{"name":{"label":"name","value":"delete-me"},"email":{"label":"email","value":"delete-me@example.com"},"notes":{"label":"notes","value":"testing"},"guests":{"label":"guests","value":[]}},"startTime":"2025-03-07T14:45:00+00:00","endTime":"2025-03-07T15:00:00+00:00","organizer":{"id":1,"username":"delete-me","email":"delete-me@example.com","name":"delete-me","timeZone":"Europe/London","timeFormat":"h:mma","language":{"locale":"en"},"utcOffset":0},"attendees":[{"name":"delete-me","email":"delete-me@example.com","timeZone":"Asia/Calcutta","phoneNumber":null,"language":{"locale":"en"},"utcOffset":330}],"uid":"kJgMBN5Jdojhkrww4r7j5h","bookingId":32,"location":"integrations:daily","destinationCalendar":[],"cancellationReason":"test Cancellation","seatsPerTimeSlot":null,"seatsShowAttendees":false,"iCalUID":"kJgMBN5Jdojhkrww4r7j5h@Cal.com","iCalSequence":1,"eventTitle":"test webhook","eventDescription":null,"requiresConfirmation":null,"price":null,"currency":"usd","status":"CANCELLED","cancelledBy":"delete-me@example.com"}}
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
just create webhook of and cancel the event