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).
[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).
[BR-57] Each Deliver to address (BG-15) shall contain a Deliver to country code (BT-80).
- 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
Last updated:
Explanation of the validation rule, not legal or tax advice.