← Back to library

Harden a vendor-PDF to QuickBooks invoice pipeline

Eamonn Cottrell's Claude Code project reads supplier PDFs, categorizes each line and posts matching invoices into QuickBooks Online. He then removed the remaining manual steps: attaching each original PDF, asking him to classify unseen products and remembering the answer, cleaning temporary files, and skipping invoices already processed. A test run handled forty PDFs.

  • OutcomeGet vendor PDFs turned into QuickBooks records with the original attached, new items learned and duplicates blocked.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditEamonn Cottrell
View original
Works with
Claude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You re-key supplier PDFs into QuickBooks regularly
  • An existing script still needs hand-holding
  • You can test against a sandbox or a small batch

Not for: First-time accounting automation with no test environment; Books you cannot easily correct if something posts twice

What do you need, and what do you get?

You need

  • Vendor PDFs
  • QuickBooks Online API access
  • A master item list with categories

You get

  • QuickBooks records with the PDF attached
  • An item list that grows when you classify new products
  • Cleaned-up local files

How does it work, step by step?

  1. Start from what worksOpen the existing project and list the manual steps that remain.
  2. Attach the sourceAdd support for attaching each PDF to its matching record without touching creation logic.
  3. Ask, then rememberWhen a new product appears, prompt for its category and update the master list.
  4. Block duplicatesCheck existing records before creating, and test by running the same batch twice.
  5. Clean up lastDelete local copies and temp files only after attachment succeeds.

The prompt

Our own prompt, inspired by Eamonn Cottrell and written to work in Claude Code. Values in lime are placeholders.

Prompt0 variables
Open this QuickBooks invoice project. Without changing how invoices are created: 1) attach each source PDF to the record it produced; 2) when an item is not in items.csv, stop and ask me for its category, then add it to the file; 3) before creating a record, check QuickBooks for an existing one with the same vendor, number and amount and skip it if found; 4) delete local PDFs and temp CSVs only after the attachment is confirmed. Add a test that runs the same batch twice.

Inspired by Eamonn Cottrell: I Automated Quickbooks w Claude Code. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Deleting local files before confirming the attachment risks losing the original.
  • Run new safeguards on a small batch before trusting a full month.

Our take

Eamonn Cottrell's improvements are the unglamorous ones that turn a demo into something you can trust with real books. Attaching the original PDF to each QuickBooks record preserves the evidence an accountant or auditor will ask for. Asking once about an unseen product and saving the answer stops the same interruption every month. Refusing to post an invoice that was already processed prevents duplicates, which are among the most expensive bookkeeping mistakes. Cleaning temporary files only after a successful post avoids losing the source when something fails midway. Deliberately running the same batch twice and confirming nothing doubles is a test every automation should pass before it touches live data. Work against a QuickBooks sandbox or a copy company file first, and reconcile totals against the supplier statements after each run. Keep a human review of new categories and large amounts. Store API credentials outside the project code, and limit the integration to invoice creation rather than payments or vendor bank details.

Where the time goes back: The last few minutes of manual handling go, and the pipeline becomes safe to rerun.

FAQ

Did duplicate protection work?
He ran the same batch twice on purpose, and the second run skipped existing invoices.
Did he know the accounting API beforehand?
No, he writes that this was his first integration with that system.

Source and credit

Inspired by Eamonn Cottrell. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I Automated Quickbooks w Claude Code
Creator
Eamonn Cottrell
Published on
gotsheet.xyz
Original date
Aug 25, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingWorkflow✓ AI dry run

Cover bills, settles and refunds in one workflow

Each billing event your app sends (invoice, payment or refund) is handled exactly once, with records, PDFs and customer emails kept in step.

Credit: u/cuebicai on r/n8n_ai_agents

An afternoon+
Finance & AccountingWorkflow✓ AI dry run

Match supplier invoices to their purchase orders in Make

Each emailed invoice is read, paired with its purchase order and checked line by line, with matches approved and discrepancies or unclear lines escalated.

Credit: Philippe Larrue (@Philippe_LARRUE)

Under an hour
Finance & AccountingWorkflow✓ AI dry run

Design a local Schedule C ledger with a human review queue

Use a multi-model planning loop to design a simple self-hosted bookkeeping app that maps expenses to Schedule C lines, keeps personal money separate, and queues uncertain categories for you.

Credit: u/michaeldpj on r/ClaudeAI

An afternoon+