# Customer info for webhook

**URL:** <https://developer.squareup.com/forums/t/customer-info-for-webhook/21110>\
**Category:** Questions\
**Created:** [February 19, 2025, 12:36pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110 "2025-02-19T12:36:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![P1antain](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@P1antain](https://developer.squareup.com/forums/u/P1antain)\
**Post date:** [February 19, 2025, 12:36pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/1 "2025-02-19T12:36:06Z")

</div>

Hello, question about webhook payment.update  
I create a payment link in sandbox “online-checkout/payment-links” for one-time payments, I need to somehow identify the customer in my application, by email, but for some reason there is no information and customer\_id is not created

---

<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:** [February 19, 2025, 12:36pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/2 "2025-02-19T12:36:27Z")

</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:

> **[Payments API Webhooks](https://developer.squareup.com/docs/payments-api/webhooks)**
>
> Learn about the Square webhook notifications supported by the Payments API.

> **[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.

> **Additional Documentation**
>
> [Build a Payment Integration and Take Payments Online](https://developer.squareup.com/docs/online-payment-options)  
> [Refunds API Webhooks](https://developer.squareup.com/docs/refunds-api/webhooks)  
> [Create and Publish Invoices](https://developer.squareup.com/docs/invoices-api/walkthrough)

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:** ![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:** [February 19, 2025, 4:53pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/3 "2025-02-19T16:53:09Z")

</div>

When you create a payment link using the “online-checkout/payment-links” endpoint, it doesn’t automatically create a customer\_id. The customer\_id is only created when you explicitly create a customer profile using the Customers API.

If you want to identify the customer in your application, you can use the “pre\_populated\_data” field when creating the payment link. This allows you to pre-populate the customer’s email on the checkout page. However, this doesn’t automatically create a customer profile.

To create a customer profile, you can use the Customers API “CreateCustomer” endpoint. Once the customer profile is created, you can then use the customer\_id in your application for identification.

For the payment.updated webhook event, it is triggered when any field in a Payment is updated, such as when it’s completed (paid). However, it doesn’t include customer information. If you need to track customer information related to payments, you would need to manage this within your application, likely by storing the customer\_id when you create the payment.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![P1antain](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@P1antain](https://developer.squareup.com/forums/u/P1antain)\
**Post date:** [February 19, 2025, 9:19pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/4 "2025-02-19T21:19:27Z")

</div>

Probably better to add more context  
My end goal is to create 2 links that I will embed in my WEB  
1 link will be a one-time payment  
2 link will be like a subscription  
Next I will use a webhook for the app to track payments and subscriptions, I definitely need the data from the payment form (email), because the data in the payment link (which is generated by squareup) is filled in by the client himself  
How can I achieve this?

---

<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 19, 2025, 9:34pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/5 "2025-02-19T21:34:31Z")

</div>

Each of the links generated with `CreatePaymentLink` is a one time use link. You’ll need to generate a new link for each customers.

That is correct all the information is input by the client on the Square UI. 🙂

---

<div class="post-metadata">

**Author:** ![P1antain](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@P1antain](https://developer.squareup.com/forums/u/P1antain)\
**Post date:** [February 19, 2025, 10:01pm UTC](https://developer.squareup.com/forums/t/customer-info-for-webhook/21110/6 "2025-02-19T22:01:34Z")

</div>

So it is not possible to create a permanent link for payments by different clients?

And for webhooks, when a link is used to pay for a one-time payment or subscription, I need to know the client’s details (email) to integrate into my database

For example, the payment.update webhook does not have this data.  
Invoice.payment\_made (if I understand correctly, it is for subscriptions) has everything I need.  
How can I extract the data correctly if I will not create a link to a specific buyer?
