Guide

Peppol error BR-DE-17 and invoice type code errors explained

BR-DE-17 is not a Peppol BIS Billing 3.0 rule. The real type code checks are BR-CL-01, P0100, P0101 and P0112. How UK senders fix each one.

Published 7 min readBy

Key points

  • There is no rule called BR-DE-17 in Peppol BIS Billing 3.0: it has no rule page on docs.peppol.eu and does not appear in the published schematron files.
  • The closest Peppol rule is DE-R-017, a German national warning that only runs when both the supplier and the customer have a German postal address, so a UK invoice never triggers it.
  • The fatal type code rules a UK sender can hit are BR-CL-01 (EN 16931 code list), PEPPOL-EN16931-P0100 (invoice codes), PEPPOL-EN16931-P0101 (credit note codes) and PEPPOL-EN16931-P0112 (country restrictions).
  • For a UK seller and UK buyer, codes 384 and 326 fail P0112, and 389 and 325 fail P0100, even though all four pass BR-CL-01.
  • A credit note code in an Invoice, or an invoice code in a CreditNote, fails BR-CL-01 and the matching Peppol profile rule.

BR-DE-17 is not a rule in Peppol BIS Billing 3.0. There is no rule page for it on docs.peppol.eu and the ID does not appear in either published schematron file. If you send UK invoices over Peppol, the invoice type code errors you can actually hit are BR-CL-01, PEPPOL-EN16931-P0100, PEPPOL-EN16931-P0101 and PEPPOL-EN16931-P0112, and each has a simple fix.

This guide shows the exact rule texts, the codes each one rejects and worked UBL examples. For the full meaning of every code, see our invoice type codes explainer.

What we found about BR-DE-17

We checked docs.peppol.eu on 1 December 2026:

  • /rules/BR-DE-17/ and /rules/ubl-tc434/BR-DE-17/ return "404 Not Found".
  • The EN 16931 rule list for Peppol has BR-DEC rules (decimals), but no BR-DE rules.
  • Neither PEPPOL-EN16931-UBL.sch ("Last update: 2026 October hotfix 3.0.22") nor CEN-EN16931-UBL.sch (version 1.3.16) contains the ID.

The closest match is a German national rule, DE-R-017. The BIS says national rules "have been defined by Peppol Authorities in addition to the rules for Peppol BIS in general" and "are affected based on the country of the seller". Its message reads:

If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).

It is flagged warning, not fatal, and its context is (/ubl-invoice:Invoice | /ubl-creditnote:CreditNote)[$supplierCountryIsDE and $customerCountryIsDE]. Both variables read the postal address country code. A UK seller with a UK buyer never triggers DE-R-017. If a report shows "BR-DE-17", it is not a Peppol BIS Billing 3.0 rule ID, so ask whoever produced the report which specification they validated against. We have not checked German national specifications, which are outside our sources.

The four rules a UK sender can hit

All four are fatal, so the document is rejected until it is fixed.

Rule Checks Message (exact)
BR-CL-01 cbc:InvoiceTypeCode and cbc:CreditNoteTypeCode "The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001."
PEPPOL-EN16931-P0100 cbc:InvoiceTypeCode "Invoice type code MUST be set according to the profile."
PEPPOL-EN16931-P0101 cbc:CreditNoteTypeCode "Credit note type code MUST be set according to the profile."
PEPPOL-EN16931-P0112 cbc:InvoiceTypeCode "Invoice type codes 326 and 389 are only allowed when both buyer and seller are German organizations. Invoice type code 384 is only allowed when both buyer and seller are German organizations or both are Slovak organizations."

BR-CL-01 is the wide EN 16931 check. For an Invoice it accepts 50 codes, including 325, 384 and 389. For a CreditNote it accepts 81 83 261 262 296 308 381 396 420 458 502 503 532. The test also rejects any value that still contains a space after normalize-space.

P0100 narrows invoices to 26 codes when the profile is 01 or 02:

71 80 82 84 102 218 219 326 331 380 382 383 384 386
388 393 395 553 575 623 780 817 870 875 876 877

P0101 narrows credit notes to 381 396 81 83 532.

P0112 then restricts three of the P0100 codes by country. Its test is:

not(normalize-space(.) = '326' or normalize-space(.) = '384' or normalize-space(.) = '389')
or ($supplierCountryIsDE and $customerCountryIsDE)
or (normalize-space(.) = '384' and $supplierCountry = 'SK' and $customerCountry = 'SK')

The German test uses the postal address country. The Slovak test uses $supplierCountry and $customerCountry, which take the first two letters of the VAT identifier first and fall back to the postal address. Either way, a GB seller and GB buyer fail.

The Peppol syntax page for cbc:InvoiceTypeCode also lists BR-04: "An Invoice shall have an Invoice type code (BT-3)."

Worked examples

These results come from applying the published rule tests to each value, not from running the files through a validator. Each example is a UK seller and UK buyer using profile urn:fdc:peppol.eu:2017:poacc:billing:01:1.0.

Document Code BR-CL-01 P0100 / P0101 P0112
Invoice 380 Pass Pass Pass
Invoice 384 Pass Pass Fail
Invoice 326 Pass Pass Fail
Invoice 389 Pass Fail Fail
Invoice 325 Pass Fail Pass
Invoice 381 Fail Fail Pass
CreditNote 381 Pass Pass n/a
CreditNote 380 Fail Fail n/a

Note that 389 appears in the BIS code list table marked "(Germany only)", but it is not in the token list of the published P0100 test, so it fails P0100 as the rule is written today.

Example 1: corrected invoice sent as 384. This fails P0112:

<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" ...>
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>INV-1043</cbc:ID>
  <cbc:IssueDate>2026-12-01</cbc:IssueDate>
  <cbc:InvoiceTypeCode>384</cbc:InvoiceTypeCode>
  <!-- other elements omitted -->
</Invoice>

The fix is to credit the original with a CreditNote and issue a new 380 invoice. See credit notes in Peppol and cancelling an e-invoice sent in error.

Example 2: credit note code inside an Invoice. This fails BR-CL-01 and P0100, because 381 is not on either invoice list:

<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" ...>
  <cbc:InvoiceTypeCode>381</cbc:InvoiceTypeCode>
</Invoice>

Send a CreditNote document instead:

<CreditNote xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" ...>
  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
  <cbc:ID>CN-0207</cbc:ID>
  <cbc:IssueDate>2026-12-01</cbc:IssueDate>
  <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>
  <!-- other elements omitted -->
</CreditNote>

The BIS code tables give the "UBL Message type" for every code: Invoice for all invoice codes and CreditNote for all credit note codes. The BIS also says "The function of crediting or debiting is controlled merely by the business document type (e.g. 380 or 381) while the representation of the amount, including its sign, is not affected."

Example 3: the reverse mismatch. A CreditNote with <cbc:CreditNoteTypeCode>380</cbc:CreditNoteTypeCode> fails BR-CL-01 and P0101. Change the code to 381, or, if you meant to send an invoice, change the document.

Example 4: a negative invoice. You do not have to use a credit note. The BIS says the invoice "can function as an alternative to the credit note. Invoice-generating systems may implement either option, while invoice-receiving systems have to support both of them." A negative invoice keeps the Invoice document and a code such as 380.

Step-by-step fix

  1. Read the rule ID in the error. If it is not one of the four above, check it is a Peppol BIS Billing rule at all.
  2. Check the root element. Invoice must carry cbc:InvoiceTypeCode; CreditNote must carry cbc:CreditNoteTypeCode.
  3. Check the value is a bare code: digits only, no letters and no text such as "Invoice".
  4. For invoices, check the code is in the P0100 list. For credit notes, check the P0101 list.
  5. Drop 326, 384 and 389 for UK trading. Peppol says "all invoice types valid in this profile can be processed as a commercial invoice (380) and all credit note types as Commercial credit note (381)", so 380 and 381 are safe defaults.
  6. Send self-billed invoices through the separate self-billing specification. See self-billing and e-invoicing.
  7. If P0100 or P0101 does not fire at all, check your ProfileID. Both rules only run for profiles 01 and 02, and an unknown profile causes its own errors (see R004 to R007).
  8. Validate again before sending. See how to validate a Peppol invoice.

UK position

These are the current Peppol BIS Billing 3.0 rules, version 3.0.22 (see what 3.0.22 changed). The UK data standard for the April 2029 mandate is NOT YET CONFIRMED. The roadmap says the government's approach "will build on established international standards, including those already used within the Peppol framework" and that the UK "may therefore need to introduce a limited number of UK-specific requirements". A public technical consultation on the proposed UK standards is due in spring 2027. Whether the UK will add its own type code rule is not known.

What to do now

  • List the type codes your system sends and map anything outside the allowed lists to 380 or 381.
  • Make sure credit memos go out as CreditNote documents, or as negative invoices, never as an Invoice with 381.
  • If you see "BR-DE-17", ask which specification produced it.

Related: common Peppol validation errors and what the 2029 mandate means.

Frequently asked questions

What is Peppol error BR-DE-17?

BR-DE-17 is not a rule in Peppol BIS Billing 3.0. The Peppol rule about German invoice type codes is DE-R-017, a warning that only applies when both supplier and customer are located in Germany. UK senders should look for BR-CL-01, P0100, P0101 or P0112 instead.

Can a UK business send invoice type code 389 over Peppol BIS Billing?

No. 389 is not in the PEPPOL-EN16931-P0100 list, and P0112 limits it to German buyers and sellers. Self-billed invoices use the separate Peppol BIS Self-Billing specification.

Why does my credit note fail BR-CL-01?

Usually because the document type and the code do not match: 381 sent inside an Invoice, or 380 sent inside a CreditNote. Credit notes must use the UBL CreditNote document with cbc:CreditNoteTypeCode, for example 381.

Is DE-R-017 fatal?

No. In the Peppol schematron DE-R-017 is flagged as a warning, and its rule context only matches documents where both the supplier and the customer postal address country is DE.

Spotted a mistake? Report an error. einvoices.uk is an independent publication and is not affiliated with HMRC. Details of the mandate may change; check the sources and official GOV.UK guidance before acting.