compliance_xml
Generate e-invoicing XML from invoice data for a selected profile without storing the document; pair with compliance validation to check first, then export the XML.
Instructions
The e-invoicing XML for a document, without storing anything.
Takes the same body as /validate-compliance, and the pairing is the point:
check first, then take the XML once it passes. Nothing here validates
against the ruleset — a document missing mandatory fields serialises to XML
missing those elements, which is a more useful artefact to look at than a
refusal, and /validate-compliance is where the refusal belongs.
The syntax is not a parameter. It follows from the profile, because a profile already is a syntax plus a ruleset, and asking a caller for both is asking them to know that Peppol means UBL.
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 |