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.

Detecting Fulfillment Settings?

Detecting Fulfillment Settings?

gvbrown
Shopify Partner
23 1 8

Is there a way to programmatically detect a storefront's fulfillment settings via the API? 

 

Example - I have some merchants that are setup to autofulfill every line item.  I have others that are set on manual fulfillment.  The behavior of some of our functions would vary slightly in a scenario where a merchant has selected manual fulfillment. 

 

Not finding this information readily available in the API docs... does the property exist via the API? 

Reply 1 (1)

rustcity
Shopify Partner
13 2 2

Fulfillment settings are specific to product & product variants.  It is essentially the "Available at locations" on the inventory.   Each of these "locations" has a location id that may help.

 

For an orders' line_items -- I believe you can check what location_id is fulfilling/handling said line_item.  

 

If you wish to setup custom handling for a line_item --  you may be looking for: 
https://shopify.dev/api/admin-rest/2022-01/resources/fulfillmentservice#resource-object