A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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.
Anyone, please?
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