Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

When retrieving Locations form the API, getting legacy:false value

When retrieving Locations form the API, getting legacy:false value

matanc
Shopify Partner
1 0 0

when looking through the api reference(https://shopify.dev/api/admin-rest/2022-07/resources/location#resource-object) I see the property "legacy" which, according to the docs, is the property to signal if the location has a fulfilment center. I have a store with a location which has a fulfilment center set, but I am getting the legacy:false value from the API.

anyone knows what I need to do on the store settings to change this prop to true?

Reply 1 (1)

JamesG
Shopify Staff
42 10 11

Hey @matanc ,

The "legacy" field indicates wether the location is a FulfillmentService, as in a third party warehouse created through the API, with it's own location, rather than a store location that also fulfils orders.

Cheers,

JamesG | API 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