Re: carts/update webhook - User Identification Included?

carts/update webhook - User Identification Included?

dmz93
Tourist
4 0 0

Hi there,

I'm interested in using the carts/update webhook to listen for shopping activity by our customers.  Looking at the sample payload on the developers page, it doesn't seem like there's any user identification (i.e. email address, customer ID, etc.) provided, preventing me from being able to identify which customers initiated the cart activities.  Is that correct?  Or is the sample payload not showing all the metadata that can be passed?  For example, is the sample representing a customer who hasn't identified themselves/logged in?

Appreciate your guidance.

Thanks!

 

Replies 2 (2)

awwdam
Shopify Staff
249 42 36

Hey @dmz93,

To confirm, these are the expected fields being provided in the payload for a cart/update webhook event. Fundamentally, a cart is made up by a collection of line items, which doesn't have to be associated to a specific customer. Even upon logging in, the customer data still wouldn't be held within the cart json, so exploring alternatives to webhooks would be suggested if tracking customer specific data is your priority.

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

GustavoTofolo
Tourist
10 0 2

It I want to send a SMS to a customer when a cart is updated, what should I do?