Solved

2022-04 Api Bug?

annahm
Shopify Partner
18 3 15

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. 

Accepted Solutions (2)

Alan
Shopify Staff
129 15 24

This is an accepted solution.

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!

Alan | 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

View solution in original post

annahm
Shopify Partner
18 3 15

This is an accepted solution.

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/c/fulfillment-api-deprecation/frequently-asked-questions/td-p/1564746

 

I used https://shopify.dev/api/admin-rest/2022-07/resources/fulfillment#get-orders-order-id-fulfillments-fu... 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.  

View solution in original post

Replies 2 (2)

Alan
Shopify Staff
129 15 24

This is an accepted solution.

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!

Alan | 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

annahm
Shopify Partner
18 3 15

This is an accepted solution.

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/c/fulfillment-api-deprecation/frequently-asked-questions/td-p/1564746

 

I used https://shopify.dev/api/admin-rest/2022-07/resources/fulfillment#get-orders-order-id-fulfillments-fu... 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.