When I create orders manually from the admin UI, I get an option to choose the shipping method as local delivery. On choosing this, I get options like prepare for delivery, mark as delivered, etc.
From admin rest API /orders.json, I am not able to figure out how to do this. If I don’t add shipping_lines, or add with code as “Local Delivery”, The only option i see is mark as fulfilled. (The delivery flow is not enabled.)
Unfortunately, the delivery actions like “prepare for delivery” and “mark as delivered” are not directly available through the API.
Instead, you can update the fulfillment status of the order to reflect the delivery process. For example, you can use the /admin/api/2022-01/fulfillments.json endpoint to create a fulfillment and set the status to “in_progress” when preparing for delivery or “success” when marking as delivered.
Thanks for your reply, This solution does not work for me. I am getting some success with draft_orders and passing shipping_line but for some reason, Shopify keeps throwing me out as not eligible for check out after creating a few orders even if I am using bogus payment gateway. Working with support on this one.