FinchContext
Run with

Build ZUS Registration & Absence Reports (ZUA/ZWUA + RSA, KEDU XML)

Skill: Convert HR/payroll events into ZUS insurance registration and absence reports

Region: Poland (Polska) Category: Social security / payroll — ZUS Does: Takes employee start/end events and paid-absence/break data and maps them onto the ZUS ZUA (registration to insurance), ZWUA (deregistration), and RSA (named report of paid benefits and breaks in contributions) documents, packaged inside a KEDU XML for submission through Płatnik / ePłatnik (PUE/eZUS). Spec: ZUS KEDU XML wrapping ZUA / ZWUA / RSA document templates (current Płatnik version)

These complement the monthly DRA + RCA settlement (see build-zus-dra-rca-xml): ZUA/ZWUA keep the insured register correct, and RSA reports absence periods and paid benefits that reduce the contribution base on the matching RCA. All three travel in the same KEDU file.


When this applies


Structure (KEDU → documents)

KEDU (header: płatnik NIP/REGON, producer, document set)
  ZUA  registration:
     insured PESEL (or document type+number), name, DOB
     kod tytułu ubezpieczenia (insurance-title code, 6 chars)
     insurances flagged: emerytalne, rentowe, chorobowe, wypadkowe, zdrowotne
     obowiązek/zgłoszenie dates; NFZ branch; address
  ZWUA deregistration:
     insured identity + title code
     data wyrejestrowania + kod przyczyny wyrejestrowania (cessation reason)
  RSA named report (per insured per period):
     kod tytułu ubezpieczenia
     kod świadczenia/przerwy (benefit/break code, e.g. 151 sick, 311 maternity)
     okres od–do (break/benefit period within the month)
     liczba dni / kwota (days, benefit amount)

Mapping & rules


Worked example (outline)

New hire 2025-06-01, employment contract:
  ZUA  PESEL=90010112345, kod tytułu=011000, insurances: E,R,C,W,Z, data 2025-06-01
Sick leave 2025-06-10..2025-06-16 (7 days), 80% sick pay:
  RSA  kod tytułu=011000, kod świadczenia/przerwy=331 (employer sick pay),
       okres 2025-06-10..2025-06-16, dni=7, kwota=…
  → RCA base for June reduced for the 7 absence days accordingly

Packaged in a KEDU XML and sent via Płatnik/ePłatnik (PUE/eZUS).


Validation checklist


Last updated: 2026-06-02 — ZUS document templates, insurance-title codes, and break/benefit code tables change; confirm the current Płatnik/KEDU schema versions, code tables, and deadlines against current ZUS (zus.pl) guidance before use.