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.
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
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?
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.