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

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.

1 Like

Hi @jknoop :waving_hand:

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.

Hi @ShopifyDevSup

look here under “line_items” / "origin_location.

Thank you for clarifying!

Since the line_item.origin_location is due to be deprecated, I would recommend using [fulfillment_order.assigned_location_id](https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillmentorder) instead.

2 Likes