Need help with LocationID setup in the API

Highlighted
New Member
5 0 0

Hello,
We are having issues with the setup of two warehouses, each with their own inventory and products pointing to one or the other warehouse. 

Attached are two orders one for Warehouse #1 called Regal and the other for Warehouse #2 called Rhiem.  The source code for both orders are showing location ID of 35022962754.  This is a Regal location ID 35022962754.  Rhiem location ID is 35591553090 but the order has Regal location ID instead.  Can anyone help me understand why the Rhiem order is not showing Rhiem location ID?

Screen Shot 2020-05-28 at 3.44.55 PM.pngScreen Shot 2020-05-28 at 3.45.11 PM.png

0 Likes
Highlighted
Shopify Staff
Shopify Staff
458 57 90

Hey @grunx008,

 

The location_id field on the order object corresponds to the location the order was processed at, not where the items are located. Is this app a fulfillmentService, and did you create these orders using the app? This field is usually null for orders that go through the online store, but since a location_id I showing there I believe that corresponds to the fulfillmentService's location.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
New Member
5 0 0

Hello _JB

These were test orders created within the Shopify Admin. So they were both coming in from the same place essentially. We are trying to set up two physical warehouse locations and both seem to be pulling all orders, instead of the sku items designated to them. 

 

We thought the locationID was the source of the problem. Any thoughts? 

0 Likes
Highlighted
Shopify Partner
12 0 3

The location_id on an Order is essentially irrelevant. When an order is created, Shopify will just automatically pick the first location in the ordered list that has inventory available.

 

When you create a fulfillment for this order in Shopify, Shopify will prompt you to choose a location to fulfill from (assuming both locations have inventory). If you wish to manage fulfillment events outside of Shopify, you can create Fulfillments via the API and attach the appropriate location ID.

 

Either way, the location_id associated with this Fulfillment (not the Order) is the relevant identifier as far as the warehouse is concerned.

0 Likes
Highlighted
New Member
5 0 0

We are creating fulfillment for the orders in Shopify by choosing location.  However, when our warehouses pull the orders, they can't distinguish which order is for their individual warehouse.  Instead, all orders are pulled.  What is the way around it?

0 Likes
Highlighted
Shopify Partner
12 0 3

Your fulfillment app should listen to `fulfillment/create` webhooks. The Fulfillment object will contain a `location_id` attribute which represents the location that the fulfillment should be processed at.

 

You can also reconcile by querying all fulfillments in Shopify, but this requires you to ultimately query and iterate through every Order object in Shopify (since a Fulfillment is a child resource). Thus, you will most likely want to time-bound this query (i.e. retrieve all orders from the last 14 days).

0 Likes
Highlighted
New Member
5 0 0

Thank you for the response.

 

The issue remains that when we pull both orders for different warehouse, they both have “fulfillment_service” as manual.  How do we configure the item to have the item specially call out the fulfillment warehouse, i.e. Regal or Rhiem, which is our warehouse locations.  Please see below, to what I am referencing to. 
 
 
 

0 Likes