compliance_check
Validate an invoice against a chosen e-invoicing ruleset before sending, without rendering or storing a PDF, to catch mandatory-field and rule errors early.
Instructions
Check a document against an e-invoicing ruleset without rendering it.
Costs no renders: nothing is stored and no PDF is produced, so a caller can check every invoice they are about to send rather than discovering the problem from a rejection weeks later.
Two tiers run, and both are reported. The mandatory-field check names a field of the request you can go and change. Schematron then serializes the document and runs the published rules at a pinned version over the result — the same artefacts an access point runs — so a finding here quotes the rule id a rejection notice would quote.
Read valid together with fully_checked: valid says nothing fatal was
found, and rulesets says what actually ran to find it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| profile | Yes | Which ruleset to hold the document to. Rulesets differ: a document valid under one can be rejected by another, so there is no default. | |
| document_type | No | invoice |