Solved

Origin Location Deprecated

soluship
Shopify Partner
3 0 1

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.

Accepted Solution (1)

Michael_AG
Shopify Staff
47 8 11

This is an accepted solution.

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. 

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 3 (3)

RobZone
Shopify Staff
70 10 22

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.

To learn more visit the Shopify Help Center or the Community Blog.

RobZone
Shopify Staff
70 10 22

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.  

To learn more visit the Shopify Help Center or the Community Blog.

Michael_AG
Shopify Staff
47 8 11

This is an accepted solution.

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. 

 

To learn more visit the Shopify Help Center or the Community Blog.