SYSTEM / 03

PAYE Revenue Management System

Making employer, taxpayer, and revenue-administrator workflows traceable across organisational and jurisdictional boundaries.

I built reporting, employer-history, taxpayer, and access-control capabilities in the NestJS and PostgreSQL backend.

ROLEFullstack Engineer · Barnksforte
PERIOD2025—Present · Barnksforte
ARCHITECTURETransactional / Auditable
ARCHITECTURE / AT A GLANCE

How the parts connect.

Scoped operational requests connect to employer and PAYE records. Reporting adds durable processing, exports, and recovery around that data.

Operational records

  1. Employers + administrators

    Jurisdiction, role, and branch access context

  2. NestJS services

    Employer history, taxpayer operations, and clearance

  3. PostgreSQL records

    Schedules, transactions, and audit history

Reporting

  1. Scoped report request

    Permission checks and generation limits

  2. Stored processing state

    Report generation and recoverable work

  3. Exports + drill-downs

    Supporting records behind summary figures

01 / CONTEXT

The problem and the product.

PRMS supports PAYE administration, employer operations, reconciliation, and reporting. My work at Barnksforte concentrates on the APIs, access rules, historical records, and reports used by employers and revenue administrators.

02 / ROLE & OWNERSHIP

My role and ownership.

  • Implemented employer and branch summaries, PAYE-history endpoints, invoice and schedule retrieval, and scoped roles and permissions.
  • Built national report processing and recovery, CMS reports, individual taxpayer operations, and tax-clearance workflows with supporting tests and migrations.
03 / CONSTRAINTS

What made the work difficult.

  • A report or operation must respect the caller's national, state, employer, and branch access context.
  • Long-running exports need limits, durable state, and recovery paths rather than depending entirely on one request finishing.
04 / ENGINEERING DECISIONS

What mattered technically.

Scoped administration

Made roles, permissions, employer access, and jurisdiction context part of API behaviour. Administrative changes and sensitive operations are paired with audit records.

Explainable employer history

Built PAYE history, employee transaction history, schedule details, and invoice retrieval so administrators can move from summary figures to supporting records.

Recoverable report processing

Added stored report requests, national report processing, report-generation limits, and recovery cleanup. Export workflows support operational reporting without treating every report as a short synchronous request.

Tested workflow boundaries

Added endpoint, migration, and service tests around access, reporting, employer records, and taxpayer workflows. Transaction-aware test setup keeps database scenarios isolated.

05 / RELIABILITY & SECURITY

Correctness beyond the happy path.

  • Permission checks and jurisdiction context constrain access to records and reports.
  • Auditing and redacted database logging preserve operational visibility without treating raw queries as safe diagnostic output.
06 / TECHNOLOGY

Tools behind the work.

TypeScript · NestJS · PostgreSQL · TypeORM · Redis · AWS S3 · AWS SQS · Jest

← ALL SELECTED SYSTEMS