> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upflow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 🗂️ Workflow type and hierarchy

> Choose between customer-level and invoice-level workflows in Upflow, and decide which level to chase when customers have a parent and child hierarchy.

**Goal:** Decide what each workflow follows: a whole customer account or a single invoice, and which level of a customer hierarchy.

## What you'll decide

* Whether to run customer-level workflows, invoice-level workflows, or both
* Which level to chase when customers have a parent and child hierarchy

### Customer-level or invoice-level?

Upflow has two types of workflow. The type decides what a workflow follows, so choose it before anything else.

| **Type** | **How it works** |
| :- | :- |
| **Customer-level** | One workflow per customer, covering all their unpaid invoices together. Timing follows the **carrying invoice**: the customer's oldest unpaid invoice. If two invoices share a due date, the one with the higher total carries. When the carrying invoice is paid, the next oldest takes over. |
| **Invoice-level** | One workflow per invoice. It follows that invoice alone, regardless of the customer's other unpaid invoices. Actions can be timed from the issue date, the due date, or both. |

Note that in customer-level workflows, if an invoice older than the current carrying invoice is imported after the workflow has started, it becomes the carrying invoice and the workflow restarts from its due date.

**We recommend customer-level workflows for chasing overdue invoices.** A customer with five overdue invoices gets one sequence of reminders instead of five, and a single sequence is easier to evaluate.

**Use invoice-level workflows when:**

* **You want to remind customers before the due date.** An invoice-level workflow makes sure every invoice gets its own pre-due reminder. A customer-level workflow follows only the oldest unpaid invoice, so a newer invoice coming due doesn't get a reminder of its own.
* **The person who approves payment changes from invoice to invoice,** for example by project, entity, or purchase order. Invoice-level reminders can send to an email address stored in an invoice custom field.

**You can run both.** A common setup is customer-level workflows for overdue invoices, plus an invoice-level workflow with a single reminder shortly before the due date.

> [!WARNING]
>
> If a customer has a customer-level workflow and their invoices also have invoice-level workflows, both send reminders. Adapt the content, tags, and timing at each level so the customer doesn't receive the same message twice. Pausing an invoice's collection doesn't pause the customer's: you [pause that separately](https://docs.upflow.io/en-us/collection-and-collaboration/run-your-collection/pause-a-customers-collection.md) on the customer page.

If you assign workflows automatically, use [customer smart rules](https://docs.upflow.io/en-us/collection-and-collaboration/smart-rules/customer-smart-rules.md) for customer-level workflows and [invoice smart rules](https://docs.upflow.io/en-us/collection-and-collaboration/smart-rules/invoice-smart-rules.md) for invoice-level workflows.

Learn more:

* [Customer-level workflows](https://docs.upflow.io/en-us/collection-and-collaboration/workflows-basics/customer-level-workflow-trigger.md)
* [Invoice-level workflows](https://docs.upflow.io/en-us/collection-and-collaboration/workflows-basics/invoice-level-workflow-trigger.md)

### Parent and child customers

Some billing tools group customers into a hierarchy: a **parent** account with **child** accounts underneath, for example a group and its subsidiaries. By default, the children's invoices, amounts, and references also appear at the parent level: on the parent's customer page, in its customer portal, and in its collection tags.

That means if you chase both levels with no adjustment, the customer can receive two reminders for the same invoice: one at the child level and one at the parent level.

You don't have to choose one level for all your customers. Decide hierarchy by hierarchy: some groups want to be chased at the parent level, others at the child level.

**For each hierarchy, we recommend picking one level to chase and setting the other to "No workflow".**

* **Chase the parent** when one team pays for every entity, for example a group with centralized accounts payable. Assign a workflow to the parent and set every child to No workflow. Because the children's invoices roll up to the parent, the parent's reminders still show the full picture.
* **Chase the children** when each entity pays its own invoices and has its own contacts. Assign a workflow to each child and set the parent to No workflow. Each child's reminders show only that child's data.

**Chase both levels of the same hierarchy only when the parent and children pay separately and have different contacts.** In that case, give the parent and the children different workflows, so the content can account for the parent's reminders including the children's invoices.

To set children to No workflow: in the Customers list, search for the parent's name, filter by **Type = Standard**, select the children, then go to **Actions > Assign a workflow > No workflow**.

Learn more: [Send collection reminders with a parent/children hierarchy](https://docs.upflow.io/en-us/collection-and-collaboration/workflows-basics/parent-children-hierarchy-reminders.md)

## Key takeaways

* Use customer-level workflows for overdue invoices. Use invoice-level workflows for pre-due reminders, or when the approver changes from invoice to invoice.
* If you run both types, adapt their content and timing so customers don't get the same message twice.
* For each parent and child hierarchy, chase one level and set the other to No workflow.

Next: [**Cadence and escalation**](https://docs.upflow.io/en-us/guides/workflow-best-practices/cadence-and-escalation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.