Fulfillment location wrong in order and fulfillment JSON

FelixU
New Member
2 0 0

At the moment we are wrestling with receiving the correct fulfillment location via API.

Following is an example, where the Shopify order history shows „USA (Shopify Fulfillment Network)“ as the fulfillment location.
It s shown in the top as well as in the order history feed.


Bildschirmfoto 2021-05-04 um 15.48.28.png
Bildschirmfoto 2021-05-04 um 15.48.15.png

But API returns the default fulfillment location.
To confirm I looked into: store-name.myshopify.com/admin/orders/order12345.json
It shows "origin_location" as the default location, not the fulfillment location according to order history page.
Could you please help us understand, why API is returning the default location and not the location it was actually fulfilled from?
Same is also true for our other locations, which use other 3PLs instead of SFN.

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
310 42 53

Hey @FelixU 

Could you pass us the x-request-id response header for the API call showing the default locations used instead of the expected location ID?

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

0 Likes
FelixU
New Member
2 0 0

We got an answer from Shopify Plus Specialists team and it seems, that "origin_location" is not used to set the location of fulfillment. Each fulfillment has a "location_id" and we have to map the data we need, e.g. country code against that "location_id".

0 Likes