Skip to content

[Feature Request] Add phive-rules-cius-sk — Slovak CIUS validation rules #55

@mariansbr

Description

@mariansbr

Summary

We would like to propose adding a new module phive-rules-cius-sk for Slovak Country-Specific Implementation Specification (SK CIUS) validation rules, following the same pattern as phive-rules-cius-pt and phive-rules-cius-ro.

Background

Slovakia joined Peppol in 2025 and has published its CIUS specification (SK CIUS v1.4, February 2026) through Finančná správa SR (Slovak Financial Administration). The specification defines additional mandatory fields on top of EN 16931 / Peppol BIS Billing 3.0, required by Slovak VAT law (Zákon 222/2004 Z.z. o DPH).

We are operating a Peppol Access Point for Slovakia and have already completed SK Testbed certification. We use the peppol-sk-tdd library (v0.1.2) for Tax Data Document generation.

SK CIUS Rules

We have created a Schematron file with 19 rules enforcing Slovak-specific cardinality constraints. The rules are based on the official specification published at:
https://www.financnasprava.sk/_img/pfsedit/Dokumenty_PFS/Podnikatelia/Dan_z_pridanej_hodnoty/efaktura/2026/2026.02.19_Peppol_Bis3_v1_4.xlsx

Unconditional mandatory (0..1 → 1..1):

Rule ID BT UBL Element Legal basis
SK-01 BT-7 TaxPointDate §74/1/d zák. 222/2004
SK-02 BT-9 DueDate
SK-03 BT-30 Seller PartyLegalEntity/CompanyID
SK-04 BT-31 Seller PartyTaxScheme/CompanyID (VAT) §74/1/b
SK-05 BT-35 Seller PostalAddress/StreetName §74/1/a
SK-06 BT-37 Seller PostalAddress/CityName §74/1/a
SK-07 BT-38 Seller PostalAddress/PostalZone §74/1/a
SK-08 BT-48 Buyer PartyTaxScheme/CompanyID
SK-09 BT-50 Buyer PostalAddress/StreetName §74/1/b
SK-10 BT-52 Buyer PostalAddress/CityName §74/1/b
SK-11 BT-53 Buyer PostalAddress/PostalZone §74/1/b
SK-12 BT-110 TaxTotal/TaxAmount
SK-13 BT-119 TaxCategory/Percent §74/1/i

Conditional mandatory:

Rule ID BT Condition Legal basis
SK-14 BT-120/121 When tax category is E/G/O/K/AE §74/1/j
SK-15 BT-148 When price AllowanceCharge exists
SK-16 BT-64 When TaxRepresentativeParty exists §74/1/a
SK-17 BT-66 When TaxRepresentativeParty exists §74/1/a
SK-18 BT-67 When TaxRepresentativeParty exists §74/1/a
SK-19 BT-25 For CreditNote type 381

What we provide

We have a ready-to-use Schematron file (SK-CIUS-v1.4.sch) with:

  • Full ISO Schematron (queryBinding="xslt2")
  • UBL 2.1 namespace support (Invoice + CreditNote)
  • 7 patterns, 19 assertions
  • Bilingual error messages (English with Slovak terms)
  • Legal references to Slovak VAT law
  • Unit tests (6 test cases, all passing with ph-schematron 9.1.1)

We are happy to contribute the .sch file, test XML samples, and help with the Maven module structure following the phive-rules-cius-pt pattern.

About us

MRP - Company spol. s r.o., operating Peppol Access Point for Slovakia (AP ID: PSK001029). We are already using several phax libraries in production: phase4 4.3.1, peppol-commons 12.3.11, peppol-sk-tdd 0.1.2, phive-rules-peppol 4.2.2.

Thank you for your excellent work on the Peppol ecosystem!

Metadata

Metadata

Assignees

Labels

format requestAdd support for a new format

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions