Skip to content

BR-57: Deliver to country code (BT-80) is missing

Official message

[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

EN 16931 (CII) · Error · Message language: English · Version: xrechnung-3.0.2-validator-configuration-2026-08-31

[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

EN 16931 (UBL) · Error · Message language: English · Version: xrechnung-3.0.2-validator-configuration-2026-08-31

[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).

Factur-X / ZUGFeRD EN 16931 · Error · Message language: English · Version: Factur-X 1.08 / ZUGFeRD 2.4
Severity
Error The invoice is invalid and may be rejected by the recipient.
Applies to
EN 16931 (CII), EN 16931 (UBL), Factur-X / ZUGFeRD EN 16931
Affected fields
BG-15, BT-80

What does this mean?

If the invoice contains a deliver to address (BG-15), it must contain a country code (Deliver to country code, BT-80). The delivery address exists, the country code is missing or empty.

Typical causes

Street and city, but no country were given for the different delivery address.
The country appears as a name in the city or an address line instead of as a code.

How to fix the error

Enter the two-letter ISO 3166-1 alpha-2 country code in the delivery address, e.g. DE.
If there is no different delivery address, omit the group.
CII: ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID, UBL: cac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode.
Generate and validate the invoice again.

In E-Rechnungsfreund

In the invoice form ("Experte" view), section "Lieferadresse / abw. Empfänger (BG-13)" (delivery address), select the country in the field "Land (BT-40/55)". If there is no different delivery address, clear the checkbox "Abweichende Lieferadresse angeben" (state a different delivery address).

Example

Wrong

<ram:ShipToTradeParty>
  <ram:Name>Sample Inc, North warehouse</ram:Name>
  <ram:PostalTradeAddress>
    <ram:PostcodeCode>20095</ram:PostcodeCode>
    <ram:LineOne>Hafenstraße 12</ram:LineOne>
    <ram:CityName>Hamburg</ram:CityName>
  </ram:PostalTradeAddress>
</ram:ShipToTradeParty>

Correct

<ram:ShipToTradeParty>
  <ram:Name>Sample Inc, North warehouse</ram:Name>
  <ram:PostalTradeAddress>
    <ram:PostcodeCode>20095</ram:PostcodeCode>
    <ram:LineOne>Hafenstraße 12</ram:LineOne>
    <ram:CityName>Hamburg</ram:CityName>
    <ram:CountryID>DE</ram:CountryID>
  </ram:PostalTradeAddress>
</ram:ShipToTradeParty>
For developers: test expression per syntax

EN 16931 (CII) (CII)

Context: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery

(ram:ShipToTradeParty/ram:PostalTradeAddress and normalize-space(ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID) != '') or not (ram:ShipToTradeParty/ram:PostalTradeAddress)

EN 16931 (UBL) (UBL)

Context: cac:Delivery/cac:DeliveryLocation/cac:Address

exists(cac:Country/cbc:IdentificationCode)

Factur-X / ZUGFeRD EN 16931 (CII)

Technical ID in the source: FX-SCH-A-000170

Context: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery

(ram:ShipToTradeParty/ram:PostalTradeAddress and ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID!='') or not (ram:ShipToTradeParty/ram:PostalTradeAddress)

Related validation rules

  • BR-01: Specification identifier (BT-24) is missing
  • BR-02: Invoice number (BT-1) is missing
  • BR-03: Invoice issue date (BT-2) is missing
  • BR-04: Invoice type code (BT-3) is missing
  • BR-05: Invoice currency code (BT-5) is missing
  • BR-06: Seller name (BT-27) is missing

Last updated:
Explanation of the validation rule, not legal or tax advice.