Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Create a new Fulfillment api using loaction id param

Create a new Fulfillment api using loaction id param

Ramsam
Shopify Partner
3 0 0

"Create a new Fulfillment API" available in API version 2022 - 04,
using this API we create the fulfillment with "location_id" now Shopify removed this API endpoint on 2022-07 API,

Please mention which API call was used to create the fulfillment order using "location_id" in the latest 2023 -01 API.

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

Hey @Ramsam - if you're creating a fulfillment you can use this API Call in REST or this one in GraphQL. There are a few more answers about how the new Fulfillment Orders framework works here in this post. Briefly though, location IDs are tied to specific fulfillment orders now, rather than the fulfillment object itself.

 

That said, one way you could change the location_id for a fulfillment order would be to use the fulfillmentOrderMove mutation in GraphQL (REST equivalent here). This would change the fulfillment order's location to the one you want to use. This would also depend on inventory availability at the new location.


Hope this helps - let us know if we can clarify anything on our end.

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