How to fetch orders assigned to my app from shopify?

Puri007
Tourist
5 0 0

Hello! I am trying to connect my fulfillment service to a shopify store. I have fetched the orders assigned to my fulfillment service programmatically via AssignedFulfillmentOrder through API. However, to achieve this, the shopify store user has to manually click on "Request Fulfillment" button for every order which is not realistic for a large number of orders.

 

If i automate this via shopify store and mark every order "fulfilled" automatically, then these orders are not available under AssignedFulfillmentOrder API anymore. How should I fetch the orders that were automatically marked "fulfilled" by shopify?

 

Please note that I am not the only fulfillment service connected to the shopify store, I only deal with particular products so automatically fulfilling the orders via shopify is not something that I prefer! Is there any alternative to this solution?

Api version: 2022-10

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1312 215 454

Hi @Puri007 👋


Fulfillment order management apps can use the `fulfillmentOrderSubmitFulfillmentRequest` mutation to request fulfillment to third-party fulfillment service apps. Please keep in mind that this mutation requires very different scopes than those granted to fulfillment service apps. I'd recommend reviewing this guide that highlights the differences.

 

Hope that helps!

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