DEV Community

Boban Mitevski
Boban Mitevski

Posted on Originally published at valinvo.bmk-hub.com

XRechnung EndpointID: what goes in BT-34 and BT-49, and the errors when it is wrong

An XRechnung needs two electronic addresses: the seller's (BT-34) and the buyer's (BT-49). Both are required, and when a validator reports PEPPOL-EN16931-R010 or BR-CL-25 on a file you thought was fine, this is almost always the reason. Here is what the field is, where it goes, which scheme code to use, and which errors you get when it is wrong.

What it is

The electronic address says where a party receives e-invoices. It has two parts: a value (an email address, a VAT number, a Leitweg-ID) and a scheme, a code that says what kind of value it is.

It is not a delivery instruction for the file you create. An XRechnung with buyer@example.de in BT-49 still reaches the buyer the way you send it: by email, through a portal or over Peppol.

Where it goes

In UBL it is cbc:EndpointID with a schemeID attribute, inside cac:Party, before cac:PartyIdentification and cac:PartyName. In another position the file fails the XML schema.

<cac:AccountingSupplierParty>
  <cac:Party>
    <cbc:EndpointID schemeID="EM">invoices@example-software.de</cbc:EndpointID>
    <cac:PartyName>…</cac:PartyName>
  </cac:Party>
</cac:AccountingSupplierParty>
Enter fullscreen mode Exit fullscreen mode

In CII (UN/CEFACT) it is ram:URIUniversalCommunication/ram:URIID, after ram:PostalTradeAddress and before ram:SpecifiedTaxRegistration:

<ram:SellerTradeParty>
  <ram:PostalTradeAddress>…</ram:PostalTradeAddress>
  <ram:URIUniversalCommunication>
    <ram:URIID schemeID="EM">invoices@example-software.de</ram:URIID>
  </ram:URIUniversalCommunication>
  <ram:SpecifiedTaxRegistration>…</ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
Enter fullscreen mode Exit fullscreen mode

ram:BuyerTradeParty takes the same element for BT-49.

Which scheme to use

The scheme must be a code from the European Commission's EAS list. The ones you meet most often:

Scheme Value Typical use
EM Email address XRechnung by email or portal upload. Not accepted in Peppol BIS.
9930 German VAT number German companies on Peppol.
0204 Leitweg-ID German public bodies on Peppol.
0088 GLN Companies that already use GLNs in EDI.
0208 Belgian enterprise number Belgian companies on Peppol.

If you send over Peppol, use the identifier under which the receiver is registered there. Your access point looks the receiver up by exactly this scheme and value. If you send an XRechnung by email or portal, an email address with EM passes the official rules.

Three fields people mix up

  • BT-49, buyer electronic address (cbc:EndpointID): this article.
  • BT-10, buyer reference (cbc:BuyerReference): for German public buyers this holds the Leitweg-ID. It is separate and required. A Leitweg-ID in BT-10 does not fill BT-49.
  • BT-43, seller contact email (cac:Contact/cbc:ElectronicMail): a person or team for questions. It can be the same mailbox as BT-34, but both elements must be there.

The errors you get

We removed or changed the element in an official XRechnung test invoice and validated it against the XRechnung 3.0.2 rules, in UBL and CII:

Rule Cause Fix
PEPPOL-EN16931-R020 BT-34 is missing. Add the seller's cbc:EndpointID with a schemeID.
PEPPOL-EN16931-R010 BT-49 is missing. Add the buyer's cbc:EndpointID with a schemeID.
BR-62 / BR-63 The element is there, the schemeID is not (seller / buyer). Add schemeID, e.g. EM.
BR-CL-25 The scheme is not on the EAS list, e.g. EMAIL instead of EM. Use the exact code. Codes are case-sensitive.

The two PEPPOL- IDs are not a mistake: XRechnung 3.0 reports a missing address under the same IDs as Peppol BIS.

Two more apply only to Peppol BIS Billing 3.0: PEPPOL-EN16931-CL008 (the scheme is not in Peppol's shorter list; EM is the usual case) and PEPPOL-COMMON-R043 (scheme 0208 with a value that is not a valid Belgian enterprise number: ten digits, no BE prefix, no dots).

If you don't know the buyer's address

Ask the buyer. It is their identifier, and a guessed one helps nobody. For an XRechnung delivered by email or portal, the email address the buyer gave you for invoices, with EM, satisfies the rules. For Peppol, the buyer or their access point tells you scheme and value.

Don't put a placeholder in the field to get past validation. The file would pass, and the buyer's system may still refuse it or file it under the wrong party.

The full page, with the German version, is at https://valinvo.bmk-hub.com/xrechnung-endpointid. To see which of these rules your own file triggers, the validator on the same site is free and needs no sign-up.

Checked in November 2026 against the XRechnung 3.0.2 and Peppol BIS Billing 3.0 rules. I help make Valinvo, a validator and API for these formats, so I'm biased.

Top comments (0)