updated_at flag mysteriously updated across all partner stores

Solved
Highlighted
New Member
1 0 0

We've had a number of customers complaining that our Shopify API integrated application has suddenly imported old Sales Orders dating back as far as 2012.

 

API Call:

...admin/orders.json?status=any&pagenumber=1&limit=250&updated_at_min=2019-03-03

 

Produces every single Sales Order created by the store in question, with an updated_at date listed as between March 7th and 8th 2019. Looking at the Sales Orders themselves nothing has been updated; there is no activity since their original purchase several years ago.

 

Has Shopify made sweeping changes to old sales orders? Or is this issue related to changes we've made at the partner level?

 

 

0 Likes

Success.

Shopify Staff
Shopify Staff
466 35 92

Hey @fraew ,

 

Did some checking and the reason for the change in updated_at on orders was that historical orders were updated with the newer format Discount Applications that provides more granular information for allocation of discounts on an order.  Important to note is that no orders/updated webhooks were sent for these changes.  Perhaps if your system is only scanning for the updated_at flag on a resource and not using webhooks, there may need to be some other checks in place to avoid this sort of thing in the future such as de-duping or also checking created_at for example.

 

Cheers,

Ryan

Developer Experience @ Shopify
0 Likes