2022-04 Api Bug?

Is this a bug or am I missing something ?

Looking https://shopify.dev/api/admin-rest/2022-04/resources/fulfillment#top, it will be deprecated soon.

So I am looking at using https://shopify.dev/api/admin-rest/2022-04/resources/fulfillmentorder#top but there is not option to create fulfillment using REST.

Hey @annahm - thanks for getting in touch and for your question - this was a really great one and I was able to do a bit of looking into this with our developers and my team.

You are correct that at the moment the documentation for the FulfillmentOrder resource doesn’t reflect how to create a fulfillment itself, but there is a way to do this through our GraphQL Admin API if you’d like to take a look into that method as an option. One of my colleagues shared this example application that is available publicly, that can be used as a reference for developing a GraphQL fulfillment app for Shopify if you’d like to use that if you decided to migrate to using GraphQL.

Separately, since I do understand you were looking for a way to do this through REST initially, I was also able to get in touch with the team responsible for our developer documents and can confirm they are working on adding a new example for how to accomplish creating a fulfillment through REST - I can’t guarantee a timeline specifically for this, but please keep an eye on the documentation and our release notes, which will reflect any new updates.

Thanks again - especially for your patience while we took a look into this for you. Happy to answer any other questions that might pop-up.

Best!

For anyone else looking for the solution, this is what I ended up doing.

I verified the fulfillment endpoints that are deprecated on https://community.shopify.com/topic/1564746

I used https://shopify.dev/api/admin-rest/2022-07/resources/fulfillment#get-orders-order-id-fulfillments-fulfillment-id to get the fulfillment id. It returns an empty array until you grant the app the right fulfillment permissions.

I used https://shopify.dev/api/admin-rest/2022-07/resources/fulfillment#post-fulfillments to mark the orders as fulfilled and add tracking info. Works for both products that have a tracking ID and the ones that don’t.