Is it possible to access any information about a merchant's customers using the Square Connect API? The most ideal piece of information would be the email address customers enter for their receipt, but but some type of unique customer id would be nice to determine repeat customers.
Looking through the Square Connect API Documents there are no endpoints for customers and Payment objects do not include any of this information. Is there another Square API with this capability?
This is now possible as of V2 and the transaction.tenders.customer_id
attribute.
In my use case I am attempting to get the customer from a webhook notification. As I see it, there are few steps required for this scenario:
/v1/{location_id}/payments/{payment_id}
payment_url
attribute.
/v2/locations/{location_id}/transactions/{transactionId}
/v2/customers/{transaction.tenders[0].customer_id}
If you have the customer_id in hand oviously you can skip straight to step 3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With