Covers all questions related to inventory management, order fulfillment, and shipping.
Hi, I'm trying to find a way to split up fulfilmentOrder for a line item in a Shopify order.
An example situation would be:
In the above scenario, the said order will have a fulfilmentOrder attached to it for the line item to be fulfilled at location A. What I wanted to do is to actually split it out (via GraphQL API) so that 1 is assigned to location A and the other to location B, resulting in both locations having 0 inventory at the end and none having negative inventory.
The only GraphQL mutation I can find that might be relevant is fulfilmentOrderMove, but it does not allow splitting an existing fulfilmentOrder. Does anyone know how to achieve this? Many thanks!
Hey @david-dotdev,
In the scenario you described, the recommended workflow is to first create a fulfillment for 1 unit at the assigned location. Once the fulfillment is created, the existing fulfillment_order will have it's fulfillable_quantity updated to 1, at which point it can be moved to the new location using the fulfilmentOrderMove
mutation.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hello, JB can you explain me how to create this fulfillment, because I can see Shopify creates the fulfillment automatically when an order is created, but can't find how to create one with the rest API
To answer myself you can create new fulfillments for and order to split it in several shiptments, here is how I do it: