Can I edit the location in fulfillment service?

Solved

Can I edit the location in fulfillment service?

loganaa
Shopify Partner
12 1 0

When I create a fulfillment service, A new Location be created, but the field for this Location like "address1"、"address2"、"city"……etc is null.

 

"address1"null,
        "address2"null,
        "city"null,
        "zip"null,
        "province"null,
        "phone"null,
        "province_code"null,
 

How can I edit this location?

 

thanks for any replies

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 501

This is an accepted solution.

Hey @loganaa - thanks for reaching out! If you have the location ID (which you can find by querying the fulfillmentService object), the quickest way to do this is update the location using the locationEdit mutation in GraphQL.

 

Hope this helps!

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

View solution in original post

Replies 5 (5)

ShopifyDevSup
Shopify Staff
1453 238 501

This is an accepted solution.

Hey @loganaa - thanks for reaching out! If you have the location ID (which you can find by querying the fulfillmentService object), the quickest way to do this is update the location using the locationEdit mutation in GraphQL.

 

Hope this helps!

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

loganaa
Shopify Partner
12 1 0

Thank you for your reply!

kansasauctions
Shopify Partner
4 0 1

Hi @ShopifyDevSup,

 

I'm trying to use this option on my store, but every time I try to edit a location generated by a fulfillment service, I get the message "Location not found."

 

I've tried changing the call to use the store's main location, and it works. It's only on these fulfillment service locations that I can't get the locationEdit mutation to work.

 

Any ideas?

RafaelDeiro
Shopify Partner
2 0 1

Tried this solution, but the GraphQL API returns "Location not found.", however, I can query the location with the same ID and it works 100%, it just doesn't want to update.

 

I printed the results for both the fulfillmentService query and locationEdit mutation: 

Captura de tela 2023-06-05 150747.png

ShopifyDevSup
Shopify Staff
1453 238 501

Hey @RafaelDeiro  That is definitely odd - thanks for getting in touch. Could you please get in touch with our Partner Support team directly on this one (there is a "support menu" that is accessible via the left hand side of your partner dashboard when you're logged in)? 

If you can share an X-Request-ID and a date/time stamp of when the issue with the location mutation occurred with our Partner Support team as well as point to this post here, they can get in touch with one of our technical teams to investigate further as this would likely require some more sensitive store-specific information we'd need to look into this more deeply.

One other thing to confirm if you can when you send that email out is if your app has write_locations permissions via your available access scopes (info on how to check available app scopes on a specific shop here). Generally, we would return a different error if this is the case and fulfillment apps are automatically granted this scope, but I just want to make sure we've covered everything before we escalate to one of our teams internally to investigate. 

 

Hope to hear from you that way soon - once we've looked into this I am happy to post back here with an update for anyone else who may encounter this in the future. 

Al | Shopify Developer Support

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