Hello
My app is focused on creating shipping labels and updating shopify orders with the information.
As we are working on removing deprecated API calls, we came to this issue as below:
When initially creating a fulfillment order, it is successfully fulfilled. However, if the customer cancels the fulfillment and attempts to create it again, an error is encountered. The error message received in this scenario is as follows:
“Fulfillment order {{ORDER ID}} has an unfulfillable status= closed.”
How can we fix this?
1 Like
Hi @KhushiPandya ,
We’ve tested in a standard test store and when a fulfillment has been completed the fulfillment order is closed, then when that completed one is cancelled a new fulfillment order is automatically created that has a different ID.
So a suggestion is to query the order to check for a new fulfillment order id that could be used to proceed with fulfillment.
Hope you have a great day,
Jon551
1 Like
Unable to get it as per the above suggestion
Can you give me some example or steps to achieve it ?
2 Likes
Hey @KhushiPandya ,
This is the query you can use here to query the new fulfillment order ID.
That query should return both the previous ID with the status of closed as well as the new ID with the status of open. You can then use the open fulfillment order ID for the next steps.
If it’s only returning a single fulfillment ID that is marked as closed, then re-requesting fulfillment in the admin will trigger the new fulfillment order ID to be created.
-Kyle G