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.
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
- Employers + administrators
Jurisdiction, role, and branch access context
- NestJS services
Employer history, taxpayer operations, and clearance
- PostgreSQL records
Schedules, transactions, and audit history
Reporting
- Scoped report request
Permission checks and generation limits
- Stored processing state
Report generation and recoverable work
- Exports + drill-downs
Supporting records behind summary figures
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.
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.
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.
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.
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.
Tools behind the work.
TypeScript · NestJS · PostgreSQL · TypeORM · Redis · AWS S3 · AWS SQS · Jest