Pushbuild

Invoice approval before QuickBooks

Each supplier invoice waits for your approver's yes or no, from a link in email or a button in Slack, before it is entered in QuickBooks Online. Duplicates are skipped and every result is posted to Slack. Free n8n workflow template.

Works with: Any system (webhook), email, Slack, QuickBooks OnlineSteps: 26 nodesTested on: n8n 2.45 (imports on 1.70 and later)

Want the complete version? Our Invoice intake pack for n8n is a separate, larger set of ready-to-import workflows with a setup guide.

How it runs

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

StepWhat happens
Receive and checkthe 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 twicea bill number QuickBooks already has from this vendor is skipped.
Ask, then waitbills 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 billon 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 alertQuickBooks 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.

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/contact