Conversion of a abandoned checkout to draft order using shopify flows

Hello,

In one of my usecase, I am trying to convert an abandoned checkout to a draft order. We want to automate this process so want to do it using flows.
Any suggestions on how to achieve that?

I tried to start a flow on abandoned checkout and then use “Create Draft Order” action. But an error comes when i run the flow. The error displays “order_id which is a required field is missing”. Not sure what to put in order_id. Tried a few variables but nothing worked.

Flow doesn’t have a “Create draft order” action…maybe you are using an App for that. If so, you may want to contact them to inquire how to use it. I suspect it’s to create a draft order after the fact of creating an order, if it requires an order id.

Assuming that doesn’t work, you could try creating a draft order with Send Admin API request with the draftOrderCreate mutation. Visit the docs to figure out what fields are required.