Order details from Orders API doesn't have the location id listed in location API

Highlighted
New Member
8 0 0

I'm using orders REST API "/admin/api/2020-01/orders.json" to get orders from Shopify. In the order data I'm getting "location_id" field is always null. And "origin_location" field have different location Id which is not listed in locations API. For example, I have only one location listed in my store. So locations API returns one location detail with ID as say "L1". So I expect in order data either "location_id" or "origin_location" will have "L1". But in my case I'm getting null in "location_id" and some other value in "origin_location".

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165
Highlighted
New Member
8 0 0

Hi @scottydont ,

 

If origin_location specifies the place where order is placed, What does location_id field indicates. Till few days before, origin_location Id, I got is matched with the values I got from locations API.

 

So based on your reply, to determine the fulfillment place for each order, I have to use Fulfillment Order API.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hey @vptcalalog_Admi,

 

In regards to an order, location_id is the ID of the physical location where the order was processed. I believe this is null if you don't use POS.

 

So based on your reply, to determine the fulfillment place for each order, I have to use Fulfillment Order API.

That's right. Let me know if you get stuck!

0 Likes
Highlighted
New Member
8 0 0

Hi @scottydont,

 

I tried to use API call ==> "/admin/api/2020-01/orders/#{order_id}/fulfillment_orders.json" in the fulfillmentorder page, as you suggested in your reply. But all I'm getting is an empty array.

Please reply as soon as possible.
0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hey @vptcalalog_Admi,

 

Can you share demo store + order ID details?

0 Likes
Highlighted
New Member
8 0 0

Hi @scottydont ,

 

I shared the details below,

URL: https://valleypt.myshopify.com/admin/api/2020-01/orders/5082881732/fulfillment_orders.json

App ID: bbea9154baa778a8f1b7ae680ac8a907

Order ID: 5082881732

0 Likes
Highlighted
New Member
8 0 0

Hi @scottydont,

 

Is there any update on the issue? This is kind of urgent issue that needs to be fixed as early as possible. Please reply soon.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hi @vptcalalog_Admi,

 

It could be that those test orders are from 2017 - are you able to test this with a fresh order?

 

Also, you'll probably need additional permissions like read_third_party_fulfillment_orders.

 

Let me know how you go.

0 Likes
Highlighted
New Member
8 0 0

Hi @scottydont ,

 

Please check for following store details,

 

URL:https://miari.myshopify.com/admin/api/2020-01/orders/1989418844221/fulfillment_orders.json

App ID: 14948992a2f1d208397ed7ba3699f278

Order ID: 1989418844221

0 Likes