Skip to content

feat: add minimum cancellation notice for bookings - #3

Open
deepshekhardas wants to merge 1 commit into
mainfrom
feat/min-cancel-reschedule-notice-15647
Open

feat: add minimum cancellation notice for bookings#3
deepshekhardas wants to merge 1 commit into
mainfrom
feat/min-cancel-reschedule-notice-15647

Conversation

@deepshekhardas

@deepshekhardas deepshekhardas commented May 11, 2026

Copy link
Copy Markdown
Owner

Adds a field to limit when people can cancel/reschedule a meeting. Users can now set a minimum notice period (in minutes) that prevents cancellation/rescheduling within the specified time before the meeting starts.

Changes

  • Added field to EventType model
  • Created new component with UI for setting notice period (similar to existing reschedule functionality)
  • Added server-side validation in cancellation API handler
  • Added client-side validation in booking actions and booking details page
  • Created utility function

Testing

  1. Go to Event Type → Advanced tab → Limits section
  2. Toggle "Disable cancelling" and select "When less than X minutes before meeting"
  3. Try to cancel a booking within the notice period - should be blocked
  4. Try to cancel outside the notice period - should work

Closes calcom#15647


Summary by cubic

Add a minimum cancellation notice to event types, blocking cancellations within X minutes of the start time. Completes calcom#15647 and pairs with the existing reschedule notice to reduce last‑minute cancellations.

  • New Features

    • Added minimumCancellationNotice to EventType and enforced it in the cancel API.
    • New Advanced tab control: set a notice window via Disable Cancelling → “When less than X minutes…”.
    • Booking UI hides/disables cancel action within the notice window.
    • Added isWithinMinimumCancellationNotice utility.
  • Migration

    • Adds minimumCancellationNotice Int? to EventType. Run your Prisma migration.

Written for commit 2c553e7. Summary will update on new commits.

- Add minimumCancellationNotice field to EventType model and types
- Create DisableCancellingController component with UI for setting notice period
- Add server-side validation in handleCancelBooking
- Add client-side validation in booking actions and booking details page
- Add isWithinMinimumCancellationNotice utility function

Closes calcom#15647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a field to Cal.com to limit time people can cancel/reschedule a meeting.

1 participant