How to send an invoice email based on order amount?

Topic summary

A user attempted to create a Shopify Flow that sends an invoice email when an order exceeds a certain amount threshold.

Initial Problem:

  • Testing with a draft order triggered a looping error: “No outstanding balance exist”
  • The invoice action only functions when there’s an unpaid balance, making it unsuitable for already-paid orders

Solution Found:

  • The original poster resolved the issue by adapting a post-purchase marketing automation template instead of using Flow’s invoice action
  • This approach successfully sends emails based on order amount for already-paid orders
  • A screenshot shows the working automation blocks

Ongoing Issue:

  • Another user (Adnan333) encounters the same “No outstanding balance exist” error
  • They want to send the email to a third party (an agent) rather than the customer
  • No solution has been provided for this specific use case yet
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.


Hi,

I have created a basic Flow that check the amount of the order and if higher of a certain amount it should send an invoice or an email.

I tried to test such Flow creating a draft order with amount higher then the threshold but unfortunately it get stuck with such error(in a loop never ending):

“Retrying
Ran into transient error: GraphQL Response User Errors: “No outstanding balance exist””

Can you take a screenshot of the workflow run page that shows that error?

I think that the invoice action is designed to only work when there is an outstanding balance, but not sure which action is causing that error, or your logic

I thought the screenshot was attached.

Indeed as you said as there was not balance outstanding then that error.

In the end I was able to use a template post purchase marketing automation flow with some “adjustment”.

Now another question arise, how I stop that flow keep retrying?

I achieved the wanted result, send an email base don the order amount(already paid) with some adapt of a post purchase template automation flow(that isn’t the Flow)

I have attached the block

2 Likes

Hello is there no way to send the email ?
I do get this error Mutation had user errors: “No outstanding balance exist”

I want to do this because I would send this email to another person like a agent