Practical writing on payroll compliance infrastructure — products, architecture, and the hard problems in multi-country payroll.
One country-agnostic data contract for importing employee data from any HR system — 12 typed domains, machine-readable JSON Schemas, and automatic country resolution at runtime.
Payroll compliance is built into the engine. AI makes it queryable: statutory Q&A, historical comparisons, and validation support — through structured MCP tools, not chatbot guesswork.
Australia is live — the twelfth country regulation and the first outside Europe and North America. PAYG withholding, Superannuation Guarantee, Medicare Levy, STP Phase 2, and 36 integration tests. Zero changes to the engine.
AI won’t replace payroll professionals who embrace it. How MCP Server, AI-driven case input, and consolidation queries transform payroll from an operational function into a strategic one — without removing the human from the loop.
External EWA providers estimate net pay with flat-rate models. Payroll Engine calculates the exact net — using the same forecast engine that produces the legal payslip. No estimation gap, no compliance risk.
Set up the engine, deploy a country regulation, configure a tenant, enter employee data, run the payroll — a practical walkthrough for providers getting started without writing payroll logic.
Payroll data is among the most sensitive personal data under GDPR. How the engine addresses data minimization, audit trails, retention, role-based access, and data subject rights at the infrastructure level.
Why embedded payroll doesn’t need embedded UI widgets. The regulation defines the fields, the AI conducts the dialog — no form, no frontend code, no widget maintenance.
The calculation engine is MIT-licensed. The country regulations are commercial. This split is intentional — and it’s the core architectural decision.
Payroll consultants understand the law but can’t write code. Token-based valueActions and JSON regulation files close the gap — no IDE required.
WT 7000–7030: a uniform interface across all countries. How regional and global consolidation works — from single-tenant reports to multi-currency aggregation.
Ten provider adapters — bidirectional: importing HR master data into Payroll Engine and exporting computed results to ERP/finance systems, without ever overwriting the HR system’s master data.
Tax rates and contribution ceilings change every year. Why they live in versioned JSON lookups with validFrom dates — not in application code.
200 companies × 5 countries doesn’t mean 1,000 forks. How the three-layer regulation stack lets providers share statutory logic while customizing per tenant.
The Model Context Protocol gives AI agents structured access to payroll data — through a defined, permission-controlled interface. Not a chatbot. A tool protocol for payroll infrastructure.
890 integration tests across 15 countries. Not unit tests — full payrun executions against a live backend. How PayrollEx verifies every regulation before it reaches production.
Building a SaaS payroll product means solving multi-tenancy, regulation isolation, and annual compliance cycles — before writing a single line of product code.
Payroll isn't a feature — it's infrastructure. What that means in practice: the calculation engine, country regulations, consolidation, and why the foundation is open source.
Eight architectural decisions that separate Payroll Engine from conventional payroll systems — time-splitting, four-layer regulations, test-driven compliance, and more.
Every payroll system splits mid-month changes — SAP, Workday, Oracle, Dayforce. So that’s not the innovation. The real one is the second clock: the evaluation date as a calculation input. Why incumbents can’t retrofit it, and what falls out when payroll becomes a function of two time axes.
One calculation engine, eleven country regulations, three regional consolidations. How multi-country payroll works — from isolated regulations to unified reporting.
Most payroll engines are black boxes. Open-source infrastructure provides a different foundation for compliance trust — auditability, reproducibility, and vendor independence.
Building payroll from scratch takes 24+ months per country. Buying a SaaS locks you in. Embedding a compliance engine is the third option. A framework for the decision.
Deel, Remote, and Papaya Global run payroll as a service. PayrollEx provides the engine so platforms can run payroll themselves. A comparison of the two models.
A factual comparison of embedded payroll APIs — country coverage, architecture, data ownership, and when each is the right choice.
Swapping global payroll aggregators rearranges black boxes. The real gap is the layer underneath — a unified data layer that normalizes statutory meaning, not just field names, with period-versioned mapping and a per-number audit trail. Why reconciliation never ends, and what actually fixes it.
The EU Pay Transparency Directive requires salary range disclosures, gender pay gap reporting, and employee access to pay information by June 2026. What payroll infrastructure must deliver — and what changes for multi-country providers.
When a regulation changes, every other calculation must still be correct. Guards, mid-month splits, retroactive correction deltas — and why full-payrun regression suites are the only safe approach.
Running payroll for 200 companies across multiple countries — annual change cycles, data regulation satellites, 3-layer tenant customization, and what happens when January has a bug.
Preview, Forecast, Legal — three job types with different isolation guarantees. What-if scenarios, budget projections, and forecasting across tax-year boundaries.
Sector-level agreements that override legal minimums — IT waiting days, seniority tramo tables, transport plus, and why convenios are the default in Spain and France.
80% Luxembourg, 20% home office — split payroll, A1 certificates, and post-COVID telework thresholds for frontier workers.
Finiquito, PILON, rupture conventionnelle — multi-component settlements where each part has different tax and social security treatment.
Government-mandated reduced hours, fictional SV earnings, proportional base reductions, and the interaction with one-time payments during short-time work.
DSN, RTI, ELStAM, Sistema RED — mandatory electronic declarations that aren’t just output. When government data feeds back into the calculation.
NJ-NY commuter credits, 26 Swiss cantons, Scottish tax codes, and Kirchensteuer splits. From withholding allocation to multi-currency consolidation.
Contribution ceilings differ per branch, per period, and per country. Split BBG, Midijob interpolation, Cuota de Solidaridad, and why AHV is uncapped while ALV isn’t.
Progressive brackets, credit phase-outs, cumulative PAYE, and dual-path impatriate regimes. Why annualization changes everything and how a missing bracket silently shifts all higher income.
Bonuses, 13th month, severance — payments that break the monthly model. How countries annualize, apply flat rates, or attribute to prior months, and why social security ceilings make it worse.
Garnishment isn’t subtraction. Disposable earnings, type-specific caps, priority rules, and the circular dependency between net pay and deductions — across five jurisdictions.
A salary change on the 15th means every downstream formula must split. Naive weighted averages fail with non-linear tax brackets — and the CalendarPeriod × CalendarPeriod trap silently halves your contributions.
Why fixing last month's pay isn't one number. Delta calculations, cascading effects, and why tax follows cash while social security follows accrual.
Building a full country regulation used to take months. With AI-assisted development, the Australian regulation went from empty scaffold to 36 passing tests and STP Phase 2 in days. What changed — and what didn’t.
From stub to payslip — an end-to-end walkthrough building a Dutch transport-sector pension overlay with data satellites, Custom Actions, and integration tests.
The payslip is just the beginning. Server-side report scripts query payrun results and produce employer cost overviews, YTD summaries, and custom analytics.
Ship with proof. Full payrun integration tests — same engine, same execution path as production — for every regulation overlay.
When tokens aren’t enough — C# Custom Actions for lookup arithmetic, time-segmented calculations, and complex decision trees.
Some extensions take a click, others take a regulation. Data stubs activate by configuration — logic stubs require a provider override.
Your bonus must know where it belongs. How collectors wire provider wage types into country-level tax and social security calculations.
Tax rates change every year — your code shouldn’t. How versioned lookup tables and annual data satellites separate compliance updates from calculation logic.
Salary, tax class, pension opt-in — the Case/CaseField model defines what data exists, how it’s validated, and how it changes over time.
Five tokens, three lines of JSON, one working wage type. How valueActions express payroll calculations without C#.
Country, provider, industry, tenant — four layers, one payslip. How baseRegulations and payroll layers compose without forking.