We copy the workflow, then open a new workflow in your n8n. Click the empty canvas and paste (Ctrl+V, or Cmd+V on a Mac).
How it runs
- New bill (webhook)
- Map bill
- Find bill by number
- Ask approver (email)
- Ask approver (Slack)
- Wait for answer
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
- Import
workflow.jsoninto n8n. - Create a QuickBooks Online OAuth2 API credential and select it on the four QuickBooks steps. Select an SMTP credential on Ask approver (email).
- In Config, set
realm_id,default_expense_account_id,approver_email,from_emailand the Slack URL. Leaveqbo_base_urlon the sandbox until you have tested. - Set the
field_*names in Config to match your payload. Dotted paths such asinvoice.totalwork. - Click Test workflow, click Approve, and check the bill in your sandbox company.
- Point your system at New bill (webhook), activate, and switch
qbo_base_urltohttps://quickbooks.api.intuit.com.
Notes
- No credentials are included. Every value marked
REPLACE_MEorREPLACE_WITH_...must be set before you activate the workflow. auto_approve_belowis 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.
Background reading: QuickBooks automation.
Want it set up and running in your own n8n? Send us a short brief.
Pushbuild · Automate your business with Pushbuild: pushbuild.com/