Re: API data of an order / Fulfillments-Data is not changed at article level?

Solved

API data of an order / Fulfillments-Data is not changed at article level?

jknoop
Visitor
2 0 1

 

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.

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
1453 238 511

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

View solution in original post

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 511

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

jknoop
Visitor
2 0 1

Hi @ShopifyDevSup 

look here under "line_items" / "origin_location. 

ShopifyDevSup
Shopify Staff
1453 238 511

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