Handling invitee reschedules with webhooks
A reschedule is not its own event. When an invitee reschedules, Calendly sends two deliveries:
invitee.canceledfor the original bookinginvitee.createdfor the new booking
If you treat these as an unrelated cancellation and an unrelated booking, a rescheduled meeting looks like churn plus a new lead. This page shows how to tell the difference.
In this page, a booking is one invitee on one scheduled event. In the API, that is an Invitee object.
New to webhooks? Start with the Webhooks guide. This page assumes you already receive and verify deliveries.
Telling a reschedule apart from a cancellation
To tell a reschedule from a cancellation, check payload.rescheduled on
the invitee.canceled delivery.
The matching invitee.created delivery describes the new booking. It has
status: "active", and old_invitee points to the booking that it replaces:
On the invitee.canceled delivery, old_invitee is null. On the
invitee.created delivery, new_invitee is null.
old_invitee and new_invitee are on the invitee, not the event
These fields are on the Invitee object, not the scheduled event, because each invitee reschedules separately. Together they link the two bookings:
From either delivery, you can find the other booking without storing extra state.
Link the two bookings; don’t deduplicate them
For invitee.* events, the Webhooks guide recommends payload.uri + event as the deduplication key. A reschedule creates a new invitee with a new payload.uri, so your deduplication key keeps the two bookings separate.
Use old_invitee and new_invitee to link them. Update the record that you already have. Do not treat the new booking as unrelated.
Don’t rely on arrival order. Write your handler so the result is correct even
if invitee.created for the new booking reaches you before
invitee.canceled for the old one.
A handler that survives both orders
Make link_reschedule idempotent. It must work even if it runs before the
record for either booking exists. This is what makes arrival order irrelevant.
Confirming state from the API
payload.status tells you the state at the moment the event fired. To check
current state later, fetch the invitee with
Get Event Invitee:
status tells you if that invitee is still active. Check it before you act on
anything time-sensitive. The invitee can reschedule again after the delivery
and before you process it.
Related
- Webhooks guide — subscriptions, signatures, retries
- Create Webhook Subscription — the full event and scope table
- Get sample webhook data — full payload fields per event
- Get Event Invitee — current invitee state, including
old_invitee/new_invitee