---
title: "Shipped Shopify orders to sent invoices in FreshBooks | FlowRunner flow"
description: "When a Shopify order on payment terms ships, this flow finds or adds the client in FreshBooks, creates the invoice with the order's lines and emails it."
url: https://flowrunner.ai/flows/freshbooks-shipped-order-to-sent-invoice
date_published: 2026-11-17
date_modified: 2026-11-18T16:18:59-08:00
---

# Shipped Shopify orders to sent invoices in FreshBooks

When a Shopify order on payment terms ships, this flow finds or adds the client in FreshBooks, creates the invoice with the order's lines and emails it.

## The prompt

When an order in our Shopify store has shipped and the customer hasn't paid yet because they're on payment terms, look the customer up in FreshBooks by email and add them as a client if they're new. Check that we haven't already invoiced that order. Then create the FreshBooks invoice with the order's products, shipping, discounts and tax, due in 30 days, with the Shopify order number as the PO number, and email it to the client with the PDF attached.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

## The flow

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/freshbooks-shipped-order-to-sent-invoice.json)

-   [FreshBooks](https://flowrunner.ai/integrations/freshbooks)
-   [Shopify](https://flowrunner.ai/integrations/shopify)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  Order updated in Shopify Checks your Shopify store every 5 minutes for orders that changed.
2.  Shipped and not yet paid? Carries on only when the order has fully shipped and is still waiting for payment, as an order on payment terms is.
3.  Find the client in FreshBooks Reads the full order and looks for a FreshBooks client with the order's email address.
4.  Add the client to FreshBooks A customer FreshBooks does not have yet is added as a client, with the name, company, phone and billing address from the order.
5.  Not invoiced yet? Checks the client's invoices for one that already carries this order number, so an order that changes again in Shopify is never invoiced twice.
6.  Create the invoice Creates the invoice with each product, shipping, discounts and sales tax, so it adds up to the order total. The Shopify order number goes in the PO number and the due date follows your payment terms.
7.  Email the invoice to the client Sends the invoice from FreshBooks to the client's email address with the PDF attached.

## Need a custom order invoicing automation? Our team can build it for you.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=freshbooks-shipped-order-to-sent-invoice)

## Before you turn it on

-   Connect your FreshBooks and Shopify accounts, and enter your Shopify store domain.
-   Change the flow setting Payment terms in days if your invoices are not due in 30 days.

[Everything FlowRunner does with FreshBooks](https://flowrunner.ai/integrations/freshbooks)

---
Markdown version of https://flowrunner.ai/flows/freshbooks-shipped-order-to-sent-invoice. Site index: https://flowrunner.ai/llms.txt
