I’m trying to push back a delivery by a week using Shopify’s API. I’ve been messing with the order UPDATE endpoint, but I’m not getting anywhere. Here’s what I’ve tried:
This didn’t do the trick. Can someone point me to the right API and payload to use? I just need to set the order’s shipping to be delayed for a week. Any help would be awesome!
I’ve worked with Shopify’s API for delaying shipments before, and I can confirm that the order UPDATE endpoint isn’t the way to go. You need to use the Fulfillment API instead. Specifically, you should be looking at the fulfillment delay endpoint.
The endpoint you want is:
POST /admin/api/2023-04/fulfillments/{fulfillment_id}/delay.json
Make sure the fulfillment hasn’t been marked as shipped yet. If it has, you might need to cancel and recreate it. This approach should solve your problem of postponing the delivery by a week.
I’ve encountered a similar issue before. The key point is that trying to delay a delivery using the order update endpoint won’t work because Shopify’s API expects such changes to be handled via the Fulfillment API. Instead, you should target the fulfillment delay endpoint:
POST /admin/api/2023-04/fulfillments/{fulfillment_id}/delay.json
Remember, this method is only applicable if the fulfillment hasn’t been marked as shipped. If it has, you might have to cancel and recreate the fulfillment. I hope this helps resolve your issue.