# Invoice approval before QuickBooks

**Works with:** Any system (webhook), email, Slack, QuickBooks Online **Steps:** 26 nodes **Tested on:** n8n 2.45 (imports on 1.70 and later)

**Want the complete version?** Our [Invoice intake pack for n8n](https://pushbuild.com/apps/invoice-intake) is a separate, larger set of ready-to-import workflows with a setup guide.

## How it runs

1. New bill (webhook)
2. Map bill
3. Find bill by number
4. Ask approver (email)
5. Ask approver (Slack)
6. Wait for answer

Main path of the workflow, from its JSON file

Every supplier invoice (a bill, in QuickBooks terms) waits for a yes or no from your approver before it is entered in QuickBooks Online. The approver gets an email with Approve and Reject links and the same two buttons in Slack. Duplicates are skipped, small bills can go straight through, and every result and failure is posted to Slack.

## What it does

| Step | What happens |
|---|---|
| **Receive and check** | the bill is read with the `field_*` names in **Config**. Bills with no vendor or number, or lines that don't add up to the total, are stopped with a reason. |
| **Never enter twice** | a bill number QuickBooks already has from this vendor is skipped. |
| **Ask, then wait** | bills under `auto_approve_below` skip the question; the rest go to the approver by email and Slack. The first click counts. Links carry a one-time code, and a wrong code is ignored. |
| **Enter the bill** | on approval the vendor is matched (or created) and the bill entered with its lines, due date and file link. With no answer in `wait_days` days, nothing is entered. |
| **Failure alert** | QuickBooks calls retry 3 times; anything that still fails is posted to Slack. |

## What you need

- An n8n instance that your approver's browser can reach (the Approve link opens your n8n's webhook address)
- A QuickBooks Online company and an Intuit developer app (for the OAuth2 credential)
- An SMTP account for the approval email
- A Slack incoming webhook URL

## Setup

1. Import `workflow.json` into n8n.
2. Create a **QuickBooks Online OAuth2 API** credential and select it on the four QuickBooks steps. Select an **SMTP** credential on **Ask approver (email)**.
3. In **Config**, set `realm_id`, `default_expense_account_id`, `approver_email`, `from_email` and the Slack URL. Leave `qbo_base_url` on the sandbox until you have tested.
4. Set the `field_*` names in **Config** to match your payload. Dotted paths such as `invoice.total` work.
5. Click **Test workflow**, click Approve, and check the bill in your sandbox company.
6. Point your system at **New bill (webhook)**, activate, and switch `qbo_base_url` to `https://quickbooks.api.intuit.com`.

## Notes

- No credentials are included. Every value marked `REPLACE_ME` or `REPLACE_WITH_...` must be set before you activate the workflow.
- `auto_approve_below` is in your QuickBooks currency; 0 asks about every bill.
- Clicking a link opens a short confirmation from n8n. The result (entered, rejected) is posted in Slack.
- QuickBooks bill numbers can be at most 21 characters.

## Importing it

In n8n, open a new workflow, choose the **…** menu at the top right, then **Import from file** and pick the downloaded `workflow.json`. You can also open the file, copy everything and paste it onto an empty canvas. New to n8n? Start with [what n8n is and how templates work](https://pushbuild.com/free/n8n-templates).

Background reading: [QuickBooks automation](https://pushbuild.com/guides/quickbooks-automation.html).

Want it set up and running in your own n8n? [Send us a short brief](https://pushbuild.com/services/workflow-automation.html#contact).

**Pushbuild** · Automate your business with Pushbuild: [pushbuild.com/contact](https://pushbuild.com/contact)

---
As of 2026-11-23. Source: https://pushbuild.com/free/n8n-templates/invoice-approval-gate/
