# Can booking webhook api provide old and new appointment?

**URL:** <https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211>\
**Category:** Questions\
**Tags:** webhooks-api, booking-api\
**Created:** [February 19, 2022, 5:42am UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211 "2022-02-19T05:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjeppson](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mjeppson](https://developer.squareup.com/forums/u/mjeppson)\
**Post date:** [February 19, 2022, 5:42am UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211/1 "2022-02-19T05:42:29Z")

</div>

I am using the booking webhook api to send notifications when a booking changes or is cancelled. I am currently only getting one webhook message when an appointment time is changed. I would expect to get two messages, one cancel and one appointment created, or have both appointment data in a single webhook message. Thanks!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 22, 2022, 4:28pm UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211/2 "2022-02-22T16:28:25Z")

</div>

👋 With the Bookings API a `bookings.updated` webhook will send when an appointment is changed. It won’t trigger a `booking.created` event when bookings are being updated. 🙂

---

<div class="post-metadata">

**Author:** ![mjeppson](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mjeppson](https://developer.squareup.com/forums/u/mjeppson)\
**Post date:** [February 22, 2022, 5:01pm UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211/3 "2022-02-22T17:01:12Z")

</div>

Hey Bryan, thanks for reply! So in that case I think what I am wanting is more of a feature request. When a `bookings.updated` event is fired it would be useful to know what the appointment data was before the update and after the update. Currently, as far as I can tell, you are only returning the appointment data after the update.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [February 22, 2022, 5:32pm UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211/4 "2022-02-22T17:32:03Z")

</div>

Yes, that is correct. You could store the previous instance of the booking in your database and when you get the updated event you can compare the changes. 🙂

---

<div class="post-metadata">

**Author:** ![mjeppson](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mjeppson](https://developer.squareup.com/forums/u/mjeppson)\
**Post date:** [February 22, 2022, 5:41pm UTC](https://developer.squareup.com/forums/t/can-booking-webhook-api-provide-old-and-new-appointment/5211/5 "2022-02-22T17:41:46Z")

</div>

Yea I’ll have to do that for now. I still think it could be helpful to have both data available on update. Thanks so much for the help! 👍
