API integration

Making accounting sync visible and recoverable

Background invoice synchronisation with progress, failure reporting and matching between accounting records and operational orders.

The requirement

An accounting integration needs to explain what happened when it runs. Expired credentials, interrupted requests and unmatched invoices all need a visible state, so staff can tell the difference between a successful sync and one that needs attention.

What I built

  • Implemented background invoice synchronisation with a unique job lock to prevent overlapping runs.
  • Added running, completed and failed states, with timestamps and a summary of what the job processed.
  • Handled API authentication and recorded request failures, with retry settings for jobs that throw an exception.
  • Matched paid invoices to operational orders and removed stale awaiting-payment duplicates where a paid record already exists.

What this makes possible

A sync has an inspectable status and a record of its work. Payment information can be matched back to orders, while failed authentication or requests are reported instead of being mistaken for a successful update.

Why the detail matters

Connecting two APIs is only part of the job. The integration also needs to be supportable when a remote service changes, a token expires or a record cannot be matched.

Got an integration that needs a closer look?

Send me the outline and any deadline. We can agree a useful first piece of work and a realistic timescale.

Talk to Adam about your project