FROM CACHE - en_header

Orders REST API - Assigned Location ID

james148
Shopify Partner
13 0 14

I understand that we can obtain location id assigned by Shopify to an order line.

The issue is highly circuitous and requires multiple (assuming you're using REST) calls.  You then need to parse the response, find the order line and interleave the order line and fullfillment line objects. WHAT A PAIN!

It would be better and easier if the assigned location id (name/object possibly) were included on the order line object.

This would simplify ERP integrations or any fulfilment integration where an order and order lines are the key transaction/object. Orders-> Shipments -> Invoices

I know this has been requested before, but I am adding my own 2 pence.

Many Thanks

Replies 2 (2)
JoesIdeas
Shopify Expert
1694 146 435

+1 on this, I think it's the most highly requested item is to simply have the assigned location ID in the line items object. Solves so many problems for so many users and developers.

Do you mind sharing the workaround you mentioned to extract the location ID the painful way?

• Creator of Order Automator (automation app to save you and your team time on admin tasks)
• Shopify developer for +10 years
• Contributor on the Speed Boostr blog
• Guy who likes to help people
deepakrawat
Shopify Partner
2 0 0

hey, i don't think they havent updated it yet

 

do you follow the same flow,

fetch orders -> fetch fulfillment_orders -> parse the response based on needs...

 

also would be nice if you could point me to the graph ql solution