I posted a comment in an old thread but I don’t think it’s being monitored anymore so I’m opening a new topic here. Link to old thread: https://community.shopify.com/c/shopify-apis-and-sdks/quot-mark-as-fulfilled-quot-is-now-broken-after-a-fulfillment/td-p/1186270
Two of our clients have seen this issue, and I just replicated it on my development store. Basically the “Fulfill Item” button leads to an error, and item can never be manually fulfilled, once a merchant cancels an existing fulfillment request. Here are the steps to reproduce the error:
-
Merchant Requests Fulfillment from the Order page in Shopify Admin.
-
Fulfillment Service Provider accepts fulfillment request via the Shopify REST API endpoint: fulfillment_orders/[ID]/fulfillment_request/accept.json
-
Merchant cancels fulfillment request.
-
Fulfillment Service Provider accepts cancellation request via the Shopify REST API endpoint: fulfillment_orders/[ID]/cancellation_request/accept.json
-
Merchant clicks “Fulfill Item” from shopify admin order page.
-
Merchant enters tracking number and carrier and clicks “Fulfill Item”
-
Error shows in red banner at bottom of page: “An error occurred, please try again”
-
Inspecing the ajax call via Chrome DevTools there is a more descriptive error returned “The fulfillment order is neither in an open nor an in progress state.” Merchant is now stuck and order cannot be manually fulfilled.
The “Fulfill Item” button works just fine if you haven’t already requested and cancelled a fulfillment. It seems that something in steps 1-4 above is putting the order in a different state that is preventing the “Fulfill Item” from working.
Any help you can give would be greatly appreciated!
Darian

