Is there a way to update the location of order using parameter "location_id" in shopify order API. ( https://shopify.dev/docs/admin-api/rest/reference/orders/order#update-2020-01 )
I tried to update location but it is not updating it. The only way to update the location till now I think is using fulfillment API.
But I want to automatically update location after placement of order or before placement of order without fulfillment.
Let me know if there is any solution for this.
Hey @Roop ,
You cannot update this field for the Order resource as it is used to identify the physical location where the Order was purchased. The "location_id" field for the Order is only present if the Order was placed through Shopify POS location. In this case, the "location_id" will be set to the ID of the Shopify POS location. Orders placed online will always have a "location_id" of null as they do not refer to a physical location.
There is also a "location_id" for the Fulfillment resource and for "Inventory" resource, but they refer to different things. The "location_id" of the Fulfillment resource represents the unique identifier of the location that the fulfillment should be processed for, not necessarily the physical location where the order was purchased.