What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shipping Zone API - get last updated date/time?

Shipping Zone API - get last updated date/time?

ToanIMP
Shopify Partner
2 0 0

We are using this API (https://shopify.dev/api/admin-rest/2021-10/resources/shippingzone) to retrieve the shipping settings for our customers' stores. However, we'd like to know if and when the settings are updated by the customers so we can automatically make adjustments to our internal system. 

 

Is there any way that we can get the dates? 

 

Appreciate any help or pointers. 

 

Replies 2 (2)

ToanIMP
Shopify Partner
2 0 0

Anyone, please?

jon551
Shopify Staff
28 7 5

Hi ToanIMP,

 

The closest available option is the 'profiles/update' [webhook topic] which will fire whenever any kind of changes are made to a Delivery Profile, including changes to any of the rate related info within the Shipping Zones in that Delivery Profile. There isn't a 'last updated at' timestamp available for shipping zones at this time.

 

An important thing to note is that the only info this webhook will provide is the Delivery Profile ID number and no additional specific information, so receipt of it might be a good trigger to re-grab all the [ShippingZones via REST] to find the differences. The DeliveryProfile object itself is only available for direct query via GraphQL, here's some more info about it:  [GraphQL Delivery Profile Object - Shopify Dev Docs]

 

Hope you have a great day,

Jon551 | 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