validate_invoice_ae
Validates a PINT AE UBL 2.1 invoice against CEN EN16931 base Schematron rules, checking structural integrity and arithmetic totals, and returns per-rule errors and warnings.
Instructions
Validate a PINT AE UBL 2.1 invoice against the CEN EN16931 base Schematron.
Checks the CEN EN16931 base rules (structural + arithmetic/totals,
~50 BR-* rules) via core's bundled, licensing-clean Schematron. Does
NOT check the PINT-AE jurisdiction overlay (ibr-*-ae rules) — the
result's metadata.scope is "en16931-base-only", and
EN16931_BASE_ONLY_SCOPE_WARNING is always included. BR-CO-09 is
expected to fire on every genuine AE invoice (see
EN16931_BASE_KNOWN_LIMITATIONS_WARNING, always included) since UAE
TRNs carry no ISO country prefix. This is not a full PINT AE
conformance check; a document that passes may still be rejected by a
real Peppol Access Point. See
context-library/decisions/peppol-schematron-artifact.md for why.
Returns a structured result with per-rule error and warning messages.
The variant parameter is accepted for interface stability with
v0.1.0 but does not change which rules run — the CEN base rules are
identical for both billing and self-billing profiles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Raw PINT AE UBL 2.1 XML invoice content | |
| variant | No | PINT AE profile variant: 'billing' (default) or 'selfbilling' | billing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||