Webhook for Completed Payment

Can I get clarification on customer id. Isn’t it generated randomly by Square?

It looks like the call for CreatePayment is POST /v2/payments.

If the customer is new, do I have to call POST /v2/customers to create a new customer before calling CreatePayment so that a Square-generated ID can be inputted as part of that call?

Because right now, my app generates an ID that is in a different format than that of Square.