Flag bounced Invoice Ninja deliveries with Emailit

Flag an unpaid Invoice Ninja invoice when Emailit confirms its latest delivery bounced for the current billing contact.

18 stepsFinanceOperations

Free to start, no card required.

How it works

  1. When this happens

    Receive an email bounce reference

    Webhook

  2. Step 1 · Code

    Set the billing sender address

  3. Step 2

    Check the bounce reference

    Follows the first path that matches

    • Permanent bounce event identified

      1. Step 3 · Emailit

        Read the sent message from Emailit

      2. Step 4 · Code

        Verify the bounced invoice delivery

      3. Step 5

        Check the authenticated email copy

        Follows the first path that matches

        • Bounced copy from billing sender

          1. Step 6 · Invoice Ninja

            Read the invoice and delivery reference

          2. Step 7 · Code

            Match the invoice’s latest dispatch

          3. Step 8

            Check the unpaid invoice

            Follows the first path that matches

            • Current delivery for an open invoice

              1. Step 9 · Invoice Ninja

                Read the client’s billing contacts

              2. Step 10 · Code

                Match the invited billing recipient

              3. Step 11

                Check the delivery contact

                Follows the first path that matches

                • Current contact received this invoice

                  1. Step 12 · Invoice Ninja

                    Recheck the latest invoice delivery

                  2. Step 13 · Code

                    Check for a payment or newer dispatch

                  3. Step 14

                    Check the latest billing state

                    Follows the first path that matches

                    • Invoice is still open with this copy

                      1. Step 15 · Invoice Ninja

                        Flag the delivery for the billing team

                      2. Step 16 · Invoice Ninja

                        Read the saved delivery flag

                      3. Step 17 · Code

                        Confirm the delivery flag

                    • Otherwise

                      Nothing happens

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Send Emailit email.bounced events to the trigger and enter your billing sender address. On each invoice email set meta.invoice_id to the Invoice Ninja ID, save the returned email ID in the invoice’s custom_value1 and clear custom_value2. Reserve both fields for staff and hide them in customer documents and the portal so the billing team can review delivery failures privately.

Accounts to connect

See all 200 in Finance

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template