A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello!
We have two warehouses from which we ship:
warehouse CN and warehouse DE
The default warehouse is warehouse CN. But when the order is shipped from warehouse DE, we change the storage location to DE in the order.
In the API data of the order under "fulfillments" / "line_items" / "origin_location" the warehouse CN is displayed, although the items were shipped from warehouse DE.
However, under "fulfillments" / "location_id" the correct ID of the DE warehouse is displayed.
Why is the CN warehouse still displayed on the item level, even though the order was shipped from another warehouse.
Notes on our situation:
How do not use inventory tracking of each storage location.
As default for each order is the warehouse in CN.
The warehouse location from which the order was shipped must be visible in the order.
Solved! Go to the solution
This is an accepted solution.
Thank you for clarifying!
Since the `line_item.origin_location` is due to be deprecated, I would recommend using `fulfillment_order.assigned_location_id` instead.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
Hi @jknoop 👋
It's a little unclear which "origin_location" this is in reference to. Would you please take a look at this page and clarify which property you're referring to? For example, there are `fulfillment.line_items.id`, `fulfillment.location_id`, and `fulfillment.origin_address` fields, but there doesn't seem to be `fulfillment.line_items.origin_location`.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
This is an accepted solution.
Thank you for clarifying!
Since the `line_item.origin_location` is due to be deprecated, I would recommend using `fulfillment_order.assigned_location_id` instead.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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