Hey guys!
I am starting to design an app for my own store and I want to get some feedback on the approach I am considering plus clarify a question.
I generate orders on other channels and want to create those Orders in Shopify via API. At a later time I want to create the Fulfillment in Shopify via API as well.
I was considering using the OrderCreate mutations (orderCreate - GraphQL Admin) and later on use the FulfillmentCreate mutation (fulfillmentCreate - GraphQL Admin). However I found in the docs that the FulfillmentOrders get created automatically in the background.
How can I prevent these FulfillmentOrder from being sent to a different fulfillment service? can my app just grab any existing FulfillmentOrder and create a Fulfillment for it?
Thanks
Hey @ChrisGU,
Your idea sounds solid. Fulfillment orders are created when the order is created, however the fulfillment itself isn’t created until it’s selected to fulfill in the admin or when the fulfillmentCreate mutation is used.
To ensure they are not sent to a different fulfillment service, you can create a fulfillment service of your own and make sure they are assigned to your location when you create the order.
Hope that helps.
Hey @ChrisGU
Do you still have some questions around fulfillment orders, or can I mark this as solved?
Hey @KyleG-Shopify! Thank you very much for responding and helping out!
That makes sense I can create a Fulfillment Service and when I create the order I can specify the fulfillment service on each line item and that should ensure it does not get sent to any other fulfillment service right?
Then is time to fulfill it via API - should I pull the existing FulfillmentOrder automatically created and create a Fulfillment agains it?
Yes, you have that right! If you do run in to any snags while you’re testing it though, do let us know 