E-invoice rule EN 16931
BR-CO-09: A VAT identifier has to start with a country code from ISO 3166-1 alpha-2…
Paste your XML and see if it has this error
The check marks BR-CO-09 and lists every other finding too. It is free and runs in your browser, the file is never uploaded.
Example message from our sample invoice:
A VAT identifier has to start with a country code from ISO 3166-1 alpha-2, for example IE1234567X. The value QX9 starts with QX, which is not a valid country code (Greece may use EL).
What the rule says
[BR-CO-09]-The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’.
Source of the quotation: EN 16931 schematron (ConnectingEurope/eInvoicing-EN16931, licence EUPL 1.2)
Business terms in the wording: BT-31, BT-63, BT-48
Why the validator reports it
The rule is part of the EN 16931 core. Our checker runs it on every UBL 2.1 invoice and credit note, in the EN 16931, Peppol BIS Billing 3.0 and XRechnung profiles.
Profile: EN 16931, Peppol BIS Billing 3.0, XRechnung 3.x
How we rate it: error
Where we point in the file: /Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
How to fix it
- Open the XML file and find the element
cac:PartyTaxScheme/cbc:CompanyID. - Add or correct the value the way the wording of the rule above asks for.
- Save the file and check it again. The checker runs in your browser, the file is never uploaded.
A correct UBL 2.1 snippet
<cac:PartyTaxScheme
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CompanyID>SK2120000001</cbc:CompanyID>
</cac:PartyTaxScheme>
The snippet is only the part of the document the rule is about, and the values in it are made up. Put it in the right place inside your invoice; the namespaces are written here only so that the snippet reads on its own.
Check the whole file
The checker holds 332 rules. For each file it runs the ones that match the invoice profile and shows the rule code, a plain sentence and the path to the element for every finding. The file is read in your browser and never uploaded. Free, no account.
Related rules
Same business term (BT-31, BT-63, BT-48)
- BR-AE-02 With VAT category AE (VAT reverse charge) the invoice has to carry the…
- BR-AE-03 With VAT category AE (VAT reverse charge) the invoice has to carry the…
- BR-AE-04 With VAT category AE (VAT reverse charge) the invoice has to carry the…
- BR-IC-02 With VAT category K (intra-community supply) the invoice has to carry…
Same group (BR-CO)
- BR-CO-03 The value added tax point date (BT-7, cbc:TaxPointDate) and its code…
- BR-CO-04 Line 1 has no VAT category code (BT-151)
- BR-CO-10 Correct the total or the line amounts
- BR-CO-11 The allowance total does not add up: cbc:AllowanceTotalAmount (BT-107) is…
All rules in the group BR-CO (20)
What our tool does about this error
The checker finds BR-CO-09 in your file and shows where it sits in the XML. If you build the invoice in our generator, the finished XML runs through the same checker before the download and will not download while an error remains.
The checker and the preview cost 0 € and need no account. Downloading the finished XML costs 2.90 € excl. VAT, unlocked in the browser for 24 hours, or 9.90 € excl. VAT for 30 days including the CSV batch.
This page in another language: Deutsch · Slovensky · Česky
Our check is not complete: we do not check the XSD schema and we do not implement every rule, and a file that passes says nothing about whether the buyer or the Peppol network will accept it. The source of each quoted wording is given next to the quotation.
Page content last changed: