Hi Community,
We are working on a platform that supports Centers, which are conceptually similar to Locations in Shopify. Our challenge is to map Sale Orders in Shopify uniquely to the corresponding Centers based on a given mapping.
I have the following questions regarding Shopify’s order webhook payload and the location of the sale:
Key Questions:
-
Multiple Locations for a Product & Unfulfilled Orders
- If a product is associated with multiple locations, and an order is not fulfilled, will the locationId still be included in the webhook payload?
-
Location Selection for Random Orders
- If there are multiple locations in a Shopify store, which locationId is associated with an order when a random sale order is created? How can we determine which location is linked to the order in this case?
-
Edge Cases: Missing Location Information
- Are there any corner cases where location information might be omitted or not included in the order webhook payload? If so, under what scenarios does this occur?
-
Webhook Field for Location Information
- In the orders webhook payload, which specific field(s) would be ideal for identifying the location for a given order?
-
Extension to Customers and Orders
- Would the same logic and location information apply when querying Customer data and Order history? If so, are there any differences in how location is tracked for these entities?
Any insights or guidance on these points would be greatly appreciated! We’re trying to better understand how to handle locations effectively within the Shopify ecosystem.
Thanks in advance!