BR-TMP-2
BT-124 "External document location" muss eine absolute URL mit gültigem Schema enthalten.
Official rule text
[BR-TMP-2] BT-124 "External document location" muss eine absolute URL mit gültigem Schema enthalten.
Where the rule applies
| Rule set | Document type | Severity |
|---|---|---|
| XRechnung with the CEN EN 16931 rules (3.0.2) KoSIT, CEN | EN16931 XRechnung (UBL Invoice), EN16931 XRechnung Extension (UBL Invoice), EN16931 XRechnung CVD (UBL Invoice), EN16931 XRechnung (UBL CreditNote), EN16931 XRechnung CVD (UBL CreditNote), EN16931 XRechnung (CII), EN16931 XRechnung Extension (CII), EN16931 XRechnung CVD (CII) | fatal |
Fatal and error findings make the invoice invalid (valid: false); warnings and information do not.
Business terms concerned (EN 16931)
BT-124
Technical check
- Syntax
- UBL · XRechnung with the CEN EN 16931 rules (3.0.2)
- Context
/ubl:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference | /cn:CreditNote/cac:AdditionalDocumentReference/cac:Attachment/cac:ExternalReference- Test (must be true)
matches(cbc:URI, $XR-URL-REGEX)
- Syntax
- CII · XRechnung with the CEN EN 16931 rules (3.0.2)
- Context
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument[ram:TypeCode = '916']- Test (must be true)
not(exists(ram:URIID)) or (matches(ram:URIID, $XR-URL-REGEX))
How the API reports this rule
Every finding of POST /v1/validate carries the rule id, severity, message, location (XPath) and rule set, and links this page (docUrl):
{
"severity": "fatal",
"ruleId": "BR-TMP-2",
"message": "[BR-TMP-2] BT-124 \"External document location\" muss eine absolute URL mit gültigem Schema enthalten.",
"xpath": "/…",
"source": "schematron:xrechnung@3.0.2",
"docUrl": "https://einvoice-api.eu/rules/br-tmp-2.html"
}Check an invoice against this rule and every other rule of the rule set – in the browser, without sign-up.
Rule text and severity are taken unchanged from the official rule set; this page is generated from the API's configuration. Not legal advice.