Get Draft Order ID from Order

Where in an Order does Shopify keep the Draft Order ID/Draft Order Name when the order was created from a Draft Order?

I’m sending several Draft Order Invoices to customers and tagging the Draft Order.

Tags move over to the Order that’s created when the Invoice is paid, but I can’t for the life of me find where Shopify houses the Draft Order ID or Draft Order Name in the paid Order.

I’m trying to build a flow that when an order is created with my Draft Order Tag, it emails me the Draft Order Name that the order was created from.

Help is appreciated! I feel like I’ve gone through every field in GraphQL Order and can’t find it!

Alternatively, if it’s not in Flow. What about GraphQL? Is the Draft Order Name somewhere in an Order GraphQL field?

1 Like

Hi @aaroncc

Unfortunately, the draft order name is not directly stored in the Shopify order object, whether you’re using order GraphQL API, or Shopify Flow. When an order is created from a draft order, Shopify does not persist the draft order name or ID in the resulting order object. Alternatively, you can use tag or metafield includes draft order name or ID, then when you convert it to orders the information will be transferred as well.

And our Fordeer Invoice App can clearly show the tag and metafields including order metafield or product/variant metafields on invoices in cased you need.

Hope this help!

1 Like

Yeah maybe setup a flow to tag draft orders with “draft-order-” and then you can reference those on the order.