On customers/update webhooks, the updated_at field does not update when only the tags on the customer have been updated. To replicate:
- Subscribe to
customers/create and customers/update webhooks via REST
- Create a new customer
- Note the
updated_at timestamp on the webhook payload
- Update the customer’s tags in the shop admin
- Note the
updated_at timestamp on the webhook payload has not changed from the customers/create payload
Subsequently updating other fields on the customer does result in the updated_at timestamp being updated on webhook payloads. My app was using 2023-01 event version.
5 Likes
Having same issue with the “updated_at”, Updating tags are resulting into customers/update webhook but does not change the “updated_at”. Shopify does not guaranty the order of webhooks so I have to rely on “update_at” to store latest the tags in my system using webhooks.
Is this bug introduced recently or it was like this since beginning.
1 Like
Hi @jason-gadget ,
Thanks for your post. We’ve been able to replicate this behaviour in a test store and internal teams are investigating.
Hope you have a great day
Hi @ShopifyDevSup , we had the same issue that “the updated_at field does not update when only the tags on the customer have been updated”.
As you said in 03-15-2023 “internal teams are investigating”, is there any update?
Hope to get some feedback, thank you so much.
Hope you have a great day.
We are also seeing this behavior in the shopify Api v12.0.1 for the customers endpoint
Thanks for your patience! We’ve added an additional header x-shopify-triggered-at to the customers/update webhook that timestamps all changes to the customer object, including customer tags. It will be formatted in UTC to offer higher precision as well.
It seems roundabout to only check for this header on customer/update webhooks. Is there any plan to fix the updated_at timestamps?
2 Likes
Hi @jason-gadget ,
Thanks for your reply. The fix for the updated_at timestamps on Customers when tags are added or removed is now in place and we’ve confirmed it’s working on a test store.
The new ‘X-Shopify-Triggered-At’ header field was an improvement intended to address what @pratikvii mentioned about needing to rely on the updated_at timestamp to sort out the order of webhooks and applies to all the webhook topics with increased time precision.
Hope you have a great day
Just tested and confirm that the updated_at timestamps are correctly updated when only changing tags.
1 Like