[Bug]: Send Order Invoice

Hey,

I’m trying to use the send email invoice action, but getting an error with a fulfilled order, saying it cannot be sent because the order is closed.
However the documentation says that this action can be used with order fulfilled events https://help.shopify.com/en/manual/shopify-flow/reference/actions/send-order-invoice and the underlying graphql mutation doesn’t specify that this cannot be used when the order is closed.

It would be really helpful to be able to still send these invoices, even if the order is closed as a post purchase record of what was sold particularly in B2B contexts please.

Is this turned on? https://screenshot.click/22-58-kocb5-gxhfv.png

I can’t tell much from the description and error message…if you could provide a workflow or workflow run id then I could see if we have logs and look at the state of the order

Thanks for the quick reply Paul, yes thats turned on at the moment. :slight_smile: I presume thats why it can’t be then sent?

Possibly, especially if the order is already paid (or maybe partially paid).

Would help to get more details about the merchant shop or the workflow run ID (the part that ends in :v2)

Hey Paul,

Yes I’ve not set it live on the merchant store yet as ran into this on my test store testing-jordan-store the run is flow/activity/01KVQ48KG0147GC0RD0R2GP002:019eee42-8ba6-7594-894d-87a397312ded:v2

Yeah, that order has a weird sequence of events before it’s fulfilled (which causes Flow to run). It’s already paid so when you mark it as fulfilled it’s going to archive it.

I’m not sure of the process for this merchant, but I don’t think marketing something as paid, and then sending an invoice is going to work

Maybe try fulfilling an order that isn’t paid and verifying that works for you?

Hey Paul,

Thank you for investigating. Yeah I think the the order was archived at the same time, was a bit of a gotcha as the graphql docs didn’t mention it being a limitation.
I’m going to use Shopify Messaging to send the email that way instead.
Thank you for looking into it.