Case studies · Integrations & data

PrepDD: accounting integrations that stay in sync

NetSuite, Sage Intacct and QuickBooks Online imports that never show half-updated numbers and stop fetching data that hasn't changed.

PrepDD · Full-Stack Engineer, financial integrations · 2022–2023

  • Ruby on Rails
  • PostgreSQL
  • NetSuite
  • Sidekiq
  • GraphQL
  • React
  • TypeScript
  • Sage Intacct
  • QuickBooks Online
  • 3 client scripts → 1 shared import
  • An estimated 85%+ fewer Sage Intacct API calls

Context

PrepDD is a work-management platform for finance and accounting teams. It pulls data from the accounting systems its clients use (NetSuite, Sage Intacct and QuickBooks Online) so teams can prepare and reconcile their numbers.

The challenge

Accounting integrations have to deal with different data models, rate limits, ways of reporting changes and update patterns.

Importing large financial datasets is slow and expensive. Replacing a whole dataset carelessly can show users half-updated numbers. Fetching unchanged records again and again wastes API quota and time. Duplicate or stale records break reconciliation.

When I arrived, each NetSuite client had its own copy of the import script, with credentials in the code. Pages were fetched one at a time, rows were inserted one by one, and each run dropped and rebuilt the reporting table, so users could see empty or half-built data during an import.

What I did

  • I turned three copy-pasted, client-specific NetSuite scripts into one shared, configurable import. Adding a client became a configuration change, not new code, and credentials moved out of the code.
  • I made the Sage Intacct sync fetch only what changed, instead of full refreshes.
  • I removed redundant QuickBooks Online refreshes.
  • I fixed reconciliation totals that could go stale when accountants replaced or removed an Excel file.
  • Alongside the integrations, I built features across the Rails GraphQL API and the React/TypeScript frontend (Apollo Client).

How it works

NetSuite. Extraction is separated from publication. Pages are fetched in parallel and loaded into PostgreSQL in bulk (with COPY) into a new table, which is swapped in only when it is complete; the previous version is kept for rollback. Users never see a half-finished import, and PrepDD is notified when fresh data is ready. Errors go to monitoring.

Sage Intacct. The sync reads the change history and processes only the records that changed, instead of requesting full datasets every time.

QuickBooks Online. Deduplication and refresh rules skip work that doesn’t need to happen.

Excel workpapers. Each extracted value is stored on its own, and totals are recalculated whenever a file is added, replaced or removed, so they can’t go stale.

Result

  • One reusable import for every NetSuite client, safe for users while it runs.
  • An estimated 85%+ fewer Sage Intacct API calls compared with full refreshes. This is an estimate from the design, not a production measurement.