Cancel already fulfilled orders

Hey, I have the following problem:

  • The Shopify Marketplace Connect app automatically fulfills FBA orders from our default warehouse. The order is also automatically archived.

  • Based on the order tag (e.g. Amazon-US) I would like to assign the fulfillment location Amazon US

  • I believe what I need to do is the following:

  1. Unarchive orders matching the criteria

  2. Cancel the fulfillment

  3. Refulfill them with the correct location

I’ve successfully moved the fulfillment location with Shopify Flow when I manually unarchived + cancelled the fulfillment. However, I wasn’t able to cancel the fulfillment with Shopify Flow. I set up a custom app and was able to send authorized requests via the Send HTTP request. However, this is where my luck ended - I didn’t get any further.

Can somebody help me and teach me what to put in the HTTP request body to cancel all fulfillment orders / fulfillments in a Shopify order that is already fully fulfilled?

If you are calling the Shopify API, use Send Admin API request instead. It is far easier to use…you just need to know the JSON. The JSON structure is also documented and linked to from that action, once you choose the right “mutation”.

I’ll add - be very careful when testing this as you can do a lot of damage to your shop by canceling orders.