[Graphql] DraftFulfillment location is different from the one shown on the order

Highlighted
Tourist
5 0 2

When querying the DraftFulfillment, and getting the location of the "fulfillmentService" of a "lineItem":

DraftFulfillment > lineItems > fulfillmentService > location > name

The location get is different from the one shown on the order.

The order:

shopify-orders-example-2.png

Api response example for the same order:

api-response-example.png


 The location shown in the api response is different from the one shown on the order, why ?

I'm trying to get the location squared in red in the first picture, does anyone know how please ?

I don't want to use the fulfillmentOrder api since I don't want my app to meet the following requirements:

 

  • All fulfillment requests must be rejected
  • All in-progress fulfillment orders that were previously accepted must either have their fulfillment orders closed or their fulfillments created.

See https://help.shopify.com/en/api/guides/managing-fulfillments-with-fulfillmentorders

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @renan ,

 

If you are still seeing this issue, would you mind sharing with me the myshopify.com URL of your Shopify store and the Order ID with this problem? From that I can investigate to determine if this is a bug, or if this is expected behaviour.

 

If you prefer, you can DM me this information instead if you would like to keep it private.

 

 

 

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

1 Like
Highlighted
New Member
6 0 0

I'm experiencing the exact same thing. Was there a solution for this problem?

Shop url: https://bouncewear-sendcloud.myshopify.com/

GraphQL:

screenshot.pngscreenshot (1).png

0 Likes
Highlighted
Highlighted
New Member
6 0 0

So basically, if you need the assigned location. Stop using Graphql and use the Rest API.

0 Likes
Highlighted