Origin Location Deprecated

https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource

Please check the above link. Those parameters are deprecated in version 2022-10. So how can i get the origin address of an order. Please assist me if any one knows.

Since an order can have multiple fulfillments, having one origin field was inadequate. You can get the origin locations of each fulfillment from the fulfillment resource.

An order may consist of multiple fulfillment orders, and each of them may have different original locations. Since invention of fulfillment orders, referencing to Order.location was not a precise method. Please query of all related FulfillmentOrder instances and examine their assignedLocation attributes.

Please note that assignedLocation indicates the location where the fulfillment order is expected to be fulfilled. If the fulfillment order is moved, the assignedLocation field will indicate the final location.

1 Like

Note that this advice only applies if the order is already fulfilled. As mentioned by Michael_AG, if your app is fulfilling orders, use the FulfillmentOrder.