# Can I get the user email when the \`booking.created\` event is fired?

**URL:** <https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274>\
**Category:** Questions\
**Tags:** booking-api\
**Created:** [October 23, 2024, 1:56am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274 "2024-10-23T01:56:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rydensun](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rydensun](https://developer.squareup.com/forums/u/rydensun)\
**Post date:** [October 23, 2024, 1:56am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/1 "2024-10-23T01:56:42Z")

</div>

I’m building an integration where, after the `booking.created` event is triggered, I want to automatically send an email reminding the customer to sign a waiver. Currently, I can see that the webhook includes a `customer_id`, but it doesn’t seem to provide the email address.

Do I need to call the customer profile API to retrieve the email address using the `customer_id`? Also, is the customer profile automatically created when a booking is made, or is there a different process for that?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 23, 2024, 1:56am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/2 "2024-10-23T01:56:58Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks)**
>
> Learn how to configure webhooks to get notified of events when a customer profile is created, updated, deleted, or merged.

> **[Handle Bookings Webhook Events](https://developer.squareup.com/docs/bookings-api/use-webhooks)**
>
> Learn how to use the Bookings API to receive supported event notifications related to bookings.

> **Additional Documentation**
>
> [Customers API Workflows](https://developer.squareup.com/docs/customers-api/how-it-works)  
> [Bookings API](https://developer.squareup.com/docs/bookings-api/what-it-is)  
> [Manage Customer Profiles](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![rydensun](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rydensun](https://developer.squareup.com/forums/u/rydensun)\
**Post date:** [October 23, 2024, 1:59am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/3 "2024-10-23T01:59:05Z")

</div>

Thanks AI but not helping

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 23, 2024, 4:10pm UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/4 "2024-10-23T16:10:17Z")

</div>

Yes, you’re correct. The `booking.created` webhook event only provides the `customer_id`. To retrieve the customer’s email address, you need to make an additional call to the Customers API using the `RetrieveCustomer` endpoint with the `customer_id` you received from the webhook. This will return the customer’s profile, including their email address.

As for your second question, a customer profile is not automatically created when a booking is made. The customer profile needs to be created separately, either manually by the seller in the Square Dashboard or programmatically via the Customers API. Once a customer profile is created, it can be associated with a booking.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![rydensun](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rydensun](https://developer.squareup.com/forums/u/rydensun)\
**Post date:** [October 24, 2024, 1:42am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/5 "2024-10-24T01:42:54Z")

</div>

I see. So, with this approach, I will only receive the booking information when a customer makes a booking, correct? Does this mean I won’t be able to send a follow-up email to the customer? Is there any alternative way to do this?

Thank you.

---

<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:** [October 24, 2024, 3:47pm UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/6 "2024-10-24T15:47:15Z")

</div>

That’s correct, you will only receive an event when a customer makes a booking. Your application can use the collected email that’s stored in the customer profile to follow up with any additional emails you need to send the customer. 🙂

---

<div class="post-metadata">

**Author:** ![rydensun](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rydensun](https://developer.squareup.com/forums/u/rydensun)\
**Post date:** [October 25, 2024, 1:04am UTC](https://developer.squareup.com/forums/t/can-i-get-the-user-email-when-the-booking-created-event-is-fired/19274/7 "2024-10-25T01:04:20Z")

</div>

Thanks for your explanation.  
Now I understand, we’ll consider another integration way.  
Thanks again.
